Giter Club home page Giter Club logo

favourite-cities's Introduction

This is page shows the 4 cities I have lived where I have called my home. This is a personal side-project built to practice front-end and UI skills. I use Vanilla JavaScript and a touch of jQuery.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • View the current time in 2 different time-zone, as well as the current weather in that specific city
  • Rearrange the pins by clicking and dragging on the fingerprint icon

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vanilla JavaScript
  • jQuery

What I learned

I was under the impression that one could get the time using the Time.now method, however in Vanilla JavaScript it is a bit more complicated than that.

I still haven't learnt how to make my code DRY-er. I have a feeling that

I was impressed to see that the drag-and-drop UX is not as complex as one would imagine and relied heavily on HTML more than anything else.

<div class="boxes" id="draggable" ondrop="drop(event)" ondragover="allowDrop(event)">

Continued development

I still need to perfect the following details:

  • live reload
  • unix time converter
  • only allow one drag per click.

I would also like to add a an if statement to enable some icons showing weather display.

Useful resources

  • Stackoverflow - This helped me try out jQuery and understand that all the boxes needed a specific id.

Author

favourite-cities's People

Contributors

kristacalleja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.