Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NW6/NoheTekelmariyam/html-css/bike-for-refugees/week1 #480

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
69 changes: 35 additions & 34 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<title>Bikes for Refugees</title>
</head>

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

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

<div>
<nav class="nav">
<ul class="navigation__list">
<li class="navigation__item">
<a class="navigation__link" href="#">Home</a>
Copy link

Choose a reason for hiding this comment

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

These links do not become orange on hover, can you try to make that happen? thanks

Copy link
Author

Choose a reason for hiding this comment

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

alright i will do it. Thanks for your feedback!

Expand All @@ -45,15 +44,15 @@
<a class="navigation__link" href="#">Contact Us</a>
</li>
</ul>
</div>
</nav>

<button>Donate Now</button>
<button class="donate-button">Donate Now</button>

</div>
</header>

<div class="content">
<div class="main">
<div class="alert">
<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>
Expand All @@ -64,15 +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="donate-button">Donate a bike today</button>
<button class="volunteer-button">Volunteer</button>
</div>

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

Choose a reason for hiding this comment

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

Screenshot 2023-09-26 at 09 14 31

Can you create some space about the learn more section?

Copy link
Author

Choose a reason for hiding this comment

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

yes i can


<div>
<div class="article">
<div class="section">
<article class="article" id="article-one">

<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 +84,9 @@ <h3 class="article__title">Why do refugees need bikes?</h3>
Learn more
</a>
</p>
</div>
</article >

<div class="article">
<article class="article" id="article-flex">
<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 +99,20 @@ <h3 class="article__title">How can I help?</h3>
Learn more
</a>
</p>
</div>
</div>
</article>
</article>
</div>
</div>
</div>
</main>

<div class="sidebar">
<sidebar 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-fundrase-logo-picture"
/>
<div class="article__content">
<h3 class="article__title">
Expand All @@ -123,26 +123,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-picture"
/>
<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=" one man riding a bike"
/>
<div class="article__content">
<h3 class="article__title">
Expand All @@ -153,7 +153,7 @@ <h3 class="article__title">
to Damascus.
</p>
</div>
</div>
</article>

<a
href="https://www.facebook.com/BikesforRefugeesScotland/events/?ref=page_internal"
Expand All @@ -164,16 +164,17 @@ <h3 class="article__title">
All Facebook events
</a>
</div>
</div>
</sidebar>

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

68 changes: 64 additions & 4 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ p {

.navigation__item {
padding: 0.5rem 0;
margin-left: 1.5em;

}

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


/* Text styles */

.text-highlight {
Expand All @@ -94,7 +95,27 @@ p {


/* Buttons */
.volunteer-button{
background-color: white;
color: #c05326;
border: none;
border-radius: 3px;
padding: 4px 6px;
cursor: pointer;
}
.donate-button{
color: white;
background-color: #c05326;
border: none;
border-radius: 3px;
padding: 4px 6px;
cursor: pointer;
}
.donate-button:hover{
color: #c05326;
background-color: white;

}
/* INSERT BUTTON STYLES HERE */


Expand All @@ -120,21 +141,23 @@ p {
/* hero */

.hero {
background-image: url("header-bike.jpg");
background-image: url("../images/header-bike.jpg");
background-color: var(--grey-light);
padding: 100px;
}

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

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


/* Headings */

.heading-underline {
Expand All @@ -145,6 +168,8 @@ p {
font-size: 1rem;
font-weight: 600;
text-transform: uppercase;


}

.heading-underline:before {
Expand All @@ -163,29 +188,53 @@ p {

.article {
margin-bottom: 1rem;
border: 1.5px solid rgb(215, 210, 210);
border-radius: 5px;
padding : 1em 2em;


}




.article__title {
margin-bottom: 0.5rem;
font-size: 1rem;
font-weight: 700;



}

.article__title-link {
text-decoration: none;
color: var(--orange-dark);





}

.article__summary {
margin-top: 0;
margin-bottom: 1rem;


}

.article__thumbnail {
float: left;
object-fit: contain;
width: 5rem;
margin-top: 1em;


}
.article__content{
margin-left: 6em;
}

.article__read-more {
margin-top: 0;
}
Expand All @@ -209,6 +258,7 @@ p {

.facebook-link {
color: var(--orange-dark);
margin-left: 12em;
}

/* Sidebar */
Expand All @@ -217,8 +267,18 @@ p {
display: flex;
flex-direction: column;
min-width: 350px;
margin-left: 2em;

}
.section{
display: flex;


}
#article-one
{
margin-right: 70px;
}
/* Footer */

.footer {
Expand Down