Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
46 changes: 22 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@
</head>

<body>
<div class="header">

<header> <!-- changed-->
<a href="#">
<img
src="images/bikes-for-refugees_logo.jpg"
alt="Logo for Bikes for Refugees Scotland"
class="header__logo"
/>
</a>

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

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

</div>
</header>

<div class="content">
<main> <!---- div class="content"--->
<div class="main">
<div class="alert">
You've helped us give <span class="text-highlight">72</span> bikes
Expand All @@ -64,14 +62,14 @@ <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_orange">Donate a bike today</button>
<button class="button_white">Volunteer</button>
</div>

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

<div>
<div class="learn_more">
<div class="article">
<h3 class="article__title">Why do refugees need bikes?</h3>
<p class="article__summary">
Expand Down Expand Up @@ -108,11 +106,11 @@ <h3 class="article__title">How can I help?</h3>
<div class="sidebar">
<h2 class="heading-underline">Upcoming events</h2>

<div class="article">
<img
<div class="article side" >
<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 @@ -125,11 +123,11 @@ <h3 class="article__title">
</div>
</div>

<div class="article">
<div class="article side">
<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">
Expand All @@ -138,11 +136,11 @@ <h3 class="article__title">
</div>
</div>

<div class="article">
<div class="article side">
<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 @@ -164,16 +162,16 @@ <h3 class="article__title">
All Facebook events

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really close to being done - good job.

One thing missing is - can you find a way to have the "all facebook events" link be aligned to the right? Currently it's on the left.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for review, I have aligned the facebook link.

</a>
</div>
</div>
</main> <!---- /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>
70 changes: 60 additions & 10 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ p {
margin-bottom: 0;
}

.header,
.content,
.footer {
header, /* ! */
main, /* .content */
footer { /* .footer */
padding: 0 1.5rem;
max-width: 1200px;
margin: 0 auto;
}

/* Header */

.header {
header { /* ! */
display: flex;
align-items: center;
justify-content: space-between;
Expand All @@ -67,6 +67,7 @@ p {

.navigation__item {
padding: 0.5rem 0;
margin:0 15px;
}

.navigation__link {
Expand Down Expand Up @@ -100,11 +101,15 @@ p {

/* Content */

.content {
main { /* .content */
display: flex;
flex-direction: column;
}

.learn_more{
display: flex;
}

/* Alert */

.alert {
Expand All @@ -120,8 +125,12 @@ p {
/* hero */

.hero {
background-image: url("header-bike.jpg");
background-color: var(--grey-light);
background-image: url("/images/header-bike.jpg");
background-color: var(--grey-light);padding: 10px;
color: white;
height: 260px;
padding: 70px 40px 0px 40px;
margin-bottom: 50px;
}

.hero h1 {
Expand Down Expand Up @@ -221,7 +230,7 @@ p {

/* Footer */

.footer {
footer { /* .footer */
margin-top: 2rem;
}

Expand All @@ -231,7 +240,7 @@ p {
padding-bottom: 2rem;
}

.footer p {
footer p { /* .footer p */
padding-bottom: 1rem;
text-align: center;
font-size: 0.85rem;
Expand All @@ -240,11 +249,52 @@ p {
/* Media queries */

@media screen and (min-width: 992px) {
.content {
main { /* .content */
flex-direction: row;
}

.main {
padding-right: 2rem;
}
}
.article.side{
display:flex;
/*-justify-content: space-between;-*/

}
.article img {
margin-right: 10px;
}

.article {
border: 1px solid grey;
border-radius: 5px;
padding: 10px;
margin: 5px;
}
.button_orange{
color: white;
background-color:orange;
border:none ;
border-radius: 5px;
padding: 5px 10px;
}
.button_white{
color: orange;
background-color: white;

border:none;
border-radius: 5px;
padding: 5px 10px;
}
.navigation__link:hover{
color: orange;
}
.button_orange:hover{
color: orange;
background-color: white;
}
.button_white:hover{
color: white;
background-color:orange;
}