Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 32 additions & 34 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>

<body>
<div class="header">
<header>

<a href="#">
<img
Expand All @@ -31,7 +31,7 @@
</a>

<div>
<ul class="navigation__list">
<nav class="navigation__list">
<li class="navigation__item">
<a class="navigation__link" href="#">Home</a>
</li>
Expand All @@ -44,15 +44,14 @@
<li class="navigation__item">
<a class="navigation__link" href="#">Contact Us</a>
</li>
</ul>
</div>
</nav>
</div>
<button class="button" id="donate_button">Donate Now</button>

<button>Donate Now</button>

</div>
</header>

<div class="content">
<div class="main">
<main>
<div class="alert">
You've helped us give <span class="text-highlight">72</span> bikes
to refugees and asylum seekers so far. <strong>Thank you!</strong>
Expand All @@ -64,16 +63,15 @@ <h1>Bikes for Refugees</h1>
Providing donated bikes and accessories to refugees and asylum
seekers in Scotland.
</p>
<button>Donate a bike today</button>
<button>Volunteer</button>
<button class="button" id="donate_a_bike">Donate a bike today</button>
<button class="button" id="volunteer">Volunteer</button>
</div>

<div>
<h2 class="heading-underline">Learn more</h2>

<div>
<div class="article">
<h3 class="article__title">Why do refugees need bikes?</h3>
<div class="articles">
<article>
<h3 class="article__title">Why do refugees need bikes?</br></h3>
<p class="article__summary">
Many refugees are placed in housing in areas where there are
few jobs. Bikes provide low-cost transportation so that they
Expand All @@ -85,9 +83,9 @@ <h3 class="article__title">Why do refugees need bikes?</h3>
Learn more
</a>
</p>
</div>
</article>

<div class="article">
<article>
<h3 class="article__title">How can I help?</h3>
<p class="article__summary">
We need lots of bikes and bike accessories! If you have an
Expand All @@ -100,19 +98,19 @@ <h3 class="article__title">How can I help?</h3>
Learn more
</a>
</p>
</div>
</article>
</div>
</div>
</div>
</main>

<div class="sidebar">
<aside class="sidebar">
<h2 class="heading-underline">Upcoming events</h2>

<div class="article">
<article class="article">
<img
class="article__thumbnail"
src="spring-fundraisers_thumbnail.jpg"
alt=""
src="images/spring-fundraisers_thumbnail.jpg"
alt="spring-fundraisers_thumbnail"
/>
<div class="article__content">
<h3 class="article__title">
Expand All @@ -123,26 +121,26 @@ <h3 class="article__title">
Médecins Sans Frontières.
</p>
</div>
</div>
</article>

<div class="article">
<article class="article">
<img
class="article__thumbnail"
src="bikes-for-refugees_logo.jpg"
alt=""
src="images/bikes-for-refugees_logo.jpg"
alt="bikes-for-refugees_logo"
/>
<div class="article__content">
<h3 class="article__title">
<a class="article__title-link" href="#">Bike dropoff event in Edinburgh on May 11</a>
</h3>
</div>
</div>
</article>

<div class="article">
<article class="article">
<img
class="article__thumbnail"
src="edinburgh-damascus_thumbnail.png"
alt=""
src="images/edinburgh-damascus_thumbnail.png"
alt="edinburgh-damascus_thumbnail"
/>
<div class="article__content">
<h3 class="article__title">
Expand All @@ -153,7 +151,7 @@ <h3 class="article__title">
to Damascus.
</p>
</div>
</div>
</article>

<a
href="https://www.facebook.com/BikesforRefugeesScotland/events/?ref=page_internal"
Expand All @@ -163,17 +161,17 @@ <h3 class="article__title">
<span class="fa fa-facebook-square"></span>
All Facebook events
</a>
</div>
</aside>
</div>

<div class="footer">
<footer class="footer">
<div class="footer__content">
<p>
<strong>Bikes for Refugees Scotland is a volunteer-led project to help
people explore and make connections with their local communities.</strong>
</p>
<p>Website by Code Your Future</p>
</div>
</div>
</footer>
</body>
</html>
86 changes: 80 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,21 @@ p {
.header__logo {
max-height: 90px;
width: auto;
position: relative;
top: 50px;
left: 70px;
}

/* Navigation */

.navigation__list {
display: flex;
list-style: none;
margin-left: 35%
}

.navigation__item {
padding: 0.5rem 0;
padding-right: 2rem;
}

.navigation__link {
Expand All @@ -76,6 +80,10 @@ p {
text-decoration: none;
}

.navigation__link:hover {
color: var(--orange-dark);
}


/* Text styles */

Expand All @@ -94,8 +102,43 @@ p {


/* Buttons */

.button{
background-color: var(--orange-dark);
color: var(--white);
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
text-decoration: none;
font-weight: 400;
text-align: center;
}

.button:hover {
background-color: var(--orange-light);
color: var(--orange-dark);
}

/* INSERT BUTTON STYLES HERE */
#donate_button {
margin-left: 85%;
top: -2rem;
position: relative;
}

#donate_a_bike {
margin-left: 4%;
}

#volunteer {
background-color: var(--white);
color: var(--orange-dark);
}

#volunteer:hover {
background-color: var(--orange-dark);
color: var(--white);
}



/* Content */
Expand All @@ -115,23 +158,36 @@ p {
line-height: 1.3;
padding: 1.5rem 1rem;
margin-bottom: 2rem;
margin-right: 2rem;
}

/* hero */

.hero {
background-image: url("header-bike.jpg");
background-color: var(--grey-light);
background-image: url("../images/header-bike.jpg");
height: 20rem;
background-size: cover;
background-repeat: no-repeat;
padding: 5px;
margin-bottom: 5rem;
margin-right: 2rem;
}

.hero h1 {
margin-bottom: 1rem;
font-size: 2.5rem;
color: var(--white);
padding-top: 10%;
padding-left: 2rem;

}

.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
color: var(--white);
padding-left: 2rem;

}


Expand All @@ -145,6 +201,8 @@ p {
font-size: 1rem;
font-weight: 600;
text-transform: uppercase;
margin-right: 2rem;

}

.heading-underline:before {
Expand All @@ -162,7 +220,21 @@ p {
/* Article */

.article {
margin-bottom: 1rem;
margin-bottom: 1rem;
padding: 1rem;
border: 1px solid var(--grey-light);
display: flex;
font-size: 14px;
}
.articles {
display: flex;
margin-right: 1rem;
}

.articles > article {
border: 1px solid var(--grey-light);
margin-right: 1rem;
padding: 1rem;
}

.article__title {
Expand All @@ -183,7 +255,8 @@ p {

.article__thumbnail {
object-fit: contain;
width: 5rem;
width: 5rem;
margin-right: 2rem;
}

.article__read-more {
Expand All @@ -209,6 +282,7 @@ p {

.facebook-link {
color: var(--orange-dark);
text-align: right;
}

/* Sidebar */
Expand Down