Code Monkey home page Code Monkey logo

bikes-for-refugees's Introduction

bikes-for-refugees

Exercise for HTML & CSS - lesson 1

Set up

Clone this repository onto your machine. Remember the git cheat-sheet if you get stuck!

Open up the repository you just cloned (again, check the git cheat-sheet if you need help!)

You're now ready to code!

Exercise

The aim of the exercise is for your webpage to look like the following screenshot:

Bike For Refugees: final design

Open the index.html file in your browser, and compare it to the image of the final result. What's different?

Exercise 1) Use semantic markup

Where necessary, replace the <div>s with semantic HTML tags. This will not render differently in the browser, but it's good practice to use semantic markup when you can!

Exercise 2) Fix the broken images

Some of the links to images are broken. The images you need are in the images folder - please replace any broken image links with the correct paths. It's also good practice to include a description of the image in the alt attribute.

Make sure to add some CSS to make the images look the same as in the design!

Exercise 3) Style buttons

There are 3 buttons on the page: can you style them correctly so they follow the design? Remember, re-use styles as much as possible by using CSS classes.

Exercise 4) Add spacing

  • Add more space inside the hero section so that more of the image is visible.
  • Add more space below the hero section to move the 'Learn more' section down.
  • Use the padding property to add some more horizontal space between the navigation links in the header.

Exercise 5) Fix the positioning

Compare what you can see in your browser with the design provided. Can you spot the differences in layout? Use CSS Flexbox to move elements around so they are positioned correctly.

Also add borders and spacing if required to match the design.

Bonus: hover effects

Add a hover effect using CSS, so that:

  1. The links in the top menu navigation become orange on hover
  2. The colours of the buttons are inverted on hover

Submit your work

Once you've finished, open a pull request so your work can be reviewed by a mentor.

As always, you can check the git cheatsheet if you get stuck!

bikes-for-refugees's People

Contributors

lucymac avatar bonboh avatar chrisowen101 avatar claudiamatosa avatar illicitonion avatar jackhclee avatar chifambawalter 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.