GithubHelp home page GithubHelp logo

map's Introduction

Background & Objectives

Build a results page with a sticky map like in the lecture. For this exercise, notice we have not imported Bootstrap anywhere in the index.html! You will need to implement this layout in the layout/map.css file without using Bootstrap:

Starting the challenge

  1. Make sure you understand the code in index.html, and the design we give you for navbar and cards in components/navbar.css and components/card.css. If you don't understand it fully, raise a ticket and someone will explain it!
  2. Go back to the lecture to rehearse how you can build a layout using flexbox and position: sticky.
  3. Don't cheat by inspecting the code! ๐Ÿ”Ž The goal of this challenge is to teach you how to build a layout by yourself. Take your time to think, ask teachers if you're stuck, but don't cheat ๐Ÿ˜‰!

To display the MapBox map, you will need to get a MapBox API key and make sure you add your own key to the url in the src attribute of the #map image element.

To test your code and view your page in the browser, launch a web server (don't just open the HTML file in your browser) using the command below:

serve

As you can see we already coded the card component for you, so all you have to do is:

  • Build a grid of .cards around the .cards.
  • Build a horizontal layout to have the .cards on the left and the #map on the right.

[Tip] Draw the HTML structure before you get started!

NB: don't forget to hard refresh your browser (cmd + shift + r) to clear your browser's cache if your page doesn't seem to display your current code!

New CSS organization

Notice that we now have two folders in our CSS:

  • components to code all our graphical components.
  • layouts to code the different layouts of our website.

As usual, style.css is importing all the other stylesheets and is then linked in the HTML.

map's People

Contributors

jfromijn 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.