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
93 changes: 47 additions & 46 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 class="header">

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

<div>
<nav>
<ul class="navigation__list">
<li class="navigation__item">
<a class="navigation__link" href="#">Home</a>
Expand All @@ -45,34 +45,34 @@
<a class="navigation__link" href="#">Contact Us</a>
</li>
</ul>
</div>
</nav>

<button>Donate Now</button>
<button class="btn_donate">Donate Now</button>

</div>
</header>

<div class="content">
<div class="main">
<main class="content">
<section class="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>
</div>

<div class="hero">
<section class="hero">
<h1>Bikes for Refugees</h1>
<p>
Providing donated bikes and accessories to refugees and asylum
seekers in Scotland.
</p>
<button>Donate a bike today</button>
<button>Volunteer</button>
</div>
<button class="btn_header_donate">Donate a bike today</button>
<button class="btn_header_volunteer">Volunteer</button>
</section>

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

<div>
<div class="article">
<section>
<article class="article">
<h3 class="article__title">Why do refugees need bikes?</h3>
<p class="article__summary">
Many refugees are placed in housing in areas where there are
Expand All @@ -85,9 +85,9 @@ <h3 class="article__title">Why do refugees need bikes?</h3>
Learn more
</a>
</p>
</div>
</article>

<div class="article">
<article class="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,80 +100,81 @@ <h3 class="article__title">How can I help?</h3>
Learn more
</a>
</p>
</div>
</div>
</div>
</div>
</article>
</section>
</section>
</section>

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

<div class="article">
<img
<section class="article">
<img
class="article__thumbnail"
src="spring-fundraisers_thumbnail.jpg"
alt=""
src="images/spring-fundraisers_thumbnail.jpg"
alt="Spring blossom branch"
/>
<div class="article__content">
<article class="article__content">
<h3 class="article__title">
<a class="article__title-link" href="#">Join us for our Spring fundraisers</a>
</h3>
<p class="article__summary">
Riders needed now to help raise awareness and funds for BfR and
Médecins Sans Frontières.
</p>
</div>
</div>
</article>
</section>

<div class="article">
<section class="article">
<img
class="article__thumbnail"
src="bikes-for-refugees_logo.jpg"
alt=""
src="images/bikes-for-refugees_logo.jpg"
alt="Logo for Bikes for Refugees Scotland"
/>
<div class="article__content">
<article 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>
</section>

<div class="article">
<section class="article">
<img
class="article__thumbnail"
src="edinburgh-damascus_thumbnail.png"
alt=""
src="images/edinburgh-damascus_thumbnail.png"
alt="Sign direction"
/>
<div class="article__content">
<article class="article__content">
<h3 class="article__title">
<a class="article__title-link" href="#">Help us cycle 4,797km</a>
</h3>
<p class="article__summary">
We need you to help us cycle 4797km, the distance of Edinburgh
to Damascus.
</p>
</div>
</div>
</article>
</section>

<a
href="https://www.facebook.com/BikesforRefugeesScotland/events/?ref=page_internal"
target="_blank"
class="facebook-link"
rel="noopener"
>
<span class="fa fa-facebook-square"></span>
All Facebook events
</a>
</div>
</div>
</aside>
</main>

<div class="footer">
<div class="footer__content">
<footer class="footer">
<section 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>
</section>
</footer>
</body>
</html>
87 changes: 82 additions & 5 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ p {
.navigation__list {
display: flex;
list-style: none;

}

.navigation__item {
padding: 0.5rem 0;
padding: 0.5rem 1rem;
}

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

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


/* Text styles */

Expand All @@ -95,14 +101,55 @@ p {

/* Buttons */

/* INSERT BUTTON STYLES HERE */
.btn_donate, .btn_header_donate {
background-color: var(--orange-dark);
color: var(--white);
font-weight: 600;
border: none;
border-radius: 4px;
padding: 8px 10px;
text-align: center;
margin: 4px 2px;
cursor: pointer;
}

.btn_header_volunteer {
background-color: var(--white);
color: var(--orange-dark);
font-weight: 600;
border: none;
border-radius: 4px;
padding: 8px 10px;
text-align: center;
margin: 4px 2px;
cursor: pointer;
}


.btn_header_volunteer:hover {
background-color: var(--grey-light);
border-color: var(--grey-light);
color: var(--grey-dark);
}
.btn_donate:hover {
background-color: var(--grey-light);
border-color: var(--grey-light);
color: var(--grey-dark);
}
.btn_header_donate:hover {
background-color: var(--grey-light);
border-color: var(--grey-light);
color: var(--grey-dark);
}


/* Content */

.content {
display: flex;
flex-direction: column;
flex-direction: row;
gap: 2rem;
padding: 2rem;
}

/* Alert */
Expand All @@ -114,24 +161,31 @@ p {
font-size: 0.85rem;
line-height: 1.3;
padding: 1.5rem 1rem;
margin-bottom: 2rem;
margin-bottom: 3rem;
}

/* hero */

.hero {
background-image: url("header-bike.jpg");
background-image: url("../images/header-bike.jpg");
background-color: var(--grey-light);
padding: 80px 40px;
margin-bottom: 50px;
margin-top: 50px;

}

.hero h1 {
margin-bottom: 1rem;
font-size: 2.5rem;
color: var(--white);

}

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


Expand Down Expand Up @@ -161,8 +215,24 @@ p {

/* Article */

.sidebar .article {
margin-bottom: 1rem;
border: 1px solid var(--grey-light);
border-radius: 4px;
padding: 1rem 1.5rem;
gap: 1rem;
display: flex;

}

.article {
margin-bottom: 1rem;
border: 1px solid var(--grey-light);
border-radius: 4px;
padding: 1rem 1.5rem;
gap: 1rem;
justify-content: center;

}

.article__title {
Expand Down Expand Up @@ -211,12 +281,19 @@ p {
color: var(--orange-dark);
}

/* Main */
.main {
flex: 3;
}

/* Sidebar */

.sidebar {
display: flex;
flex: 1;
flex-direction: column;
min-width: 350px;
gap: 1.5rem;
}

/* Footer */
Expand Down