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
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/bikes-for-refugees.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 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,33 +45,33 @@
<a class="navigation__link" href="#">Contact Us</a>
</li>
</ul>
</div>
</nav>

<button>Donate Now</button>

</div>
</header>

<div class="content">
<main class="content">
<div 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">
<h1>Bikes for Refugees</h1>
<p>
<h1 class="part1">Bikes for Refugees</h1>
<p class="part2">
Providing donated bikes and accessories to refugees and asylum
seekers in Scotland.
</p>
<button>Donate a bike today</button>
<button>Volunteer</button>
<button class="part3">Donate a bike today</button>
<button class="part3">Volunteer</button>
</div>

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

<div>
<article>
<div class="article">
<h3 class="article__title">Why do refugees need bikes?</h3>
<p class="article__summary">
Expand Down Expand Up @@ -101,17 +101,17 @@ <h3 class="article__title">How can I help?</h3>
</a>
</p>
</div>
</div>
</article>
</div>
</div>

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

<div class="article">
<div class="article2">
<img
class="article__thumbnail"
src="spring-fundraisers_thumbnail.jpg"
src="images/spring-fundraisers_thumbnail.jpg"
alt=""
/>
<div class="article__content">
Expand All @@ -125,10 +125,10 @@ <h3 class="article__title">
</div>
</div>

<div class="article">
<div class="article2">
<img
class="article__thumbnail"
src="bikes-for-refugees_logo.jpg"
src="images/bikes-for-refugees_logo.jpg"
alt=""
/>
<div class="article__content">
Expand All @@ -138,10 +138,10 @@ <h3 class="article__title">
</div>
</div>

<div class="article">
<div class="article2">
<img
class="article__thumbnail"
src="edinburgh-damascus_thumbnail.png"
src="images/edinburgh-damascus_thumbnail.png"
alt=""
/>
<div class="article__content">
Expand All @@ -163,17 +163,17 @@ <h3 class="article__title">
<span class="fa fa-facebook-square"></span>
All Facebook events
</a>
</div>
</div>
</aside>
</main>

<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>
91 changes: 86 additions & 5 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ button {
color: var(--grey-dark);
font-size: 1rem;
}
button {
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
color: var(--white);
font-size: 1rem;
background-color: var(--orange-dark);
border: none;
outline: none;
border-radius: 3px;
}

button:hover {
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
color: var(--orange-dark);
font-size: 1rem;
background-color: var(--white);
border: none;
outline: none;
border-radius: 3px;
}

h1,h2,h3,h4,h5,h6 {
margin-top: 0;
Expand Down Expand Up @@ -66,7 +85,7 @@ p {
}

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

.navigation__link {
Expand Down Expand Up @@ -103,6 +122,7 @@ p {
.content {
display: flex;
flex-direction: column;
align-items: stretch;
}

/* Alert */
Expand All @@ -120,10 +140,38 @@ p {
/* hero */

.hero {
background-image: url("header-bike.jpg");
background-image: url("../images/header-bike.jpg");
background-color: var(--grey-light);
color: var(--white);
/*background-position: 100%;*/
height: 360px;
background-size: cover;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
padding-left: 35px;
flex-direction: row;
}

.part1 {
position: relative;
top: 50px;
}
.part2 {
position: relative;
top: -10px;
}

.part3 {
position: relative;
bottom: 80px;
}

.part4 {
position: relative;
top: 50px;
}
.hero h1 {
margin-bottom: 1rem;
font-size: 2.5rem;
Expand Down Expand Up @@ -161,10 +209,16 @@ p {

/* Article */

.article {
article {
margin-bottom: 1rem;
display: flex;
gap: 10px;
}
.article {
border: 2px solid var(--grey-light);
border-radius: 3px;
padding: 1rem;
}

.article__title {
margin-bottom: 0.5rem;
font-size: 1rem;
Expand All @@ -184,6 +238,7 @@ p {
.article__thumbnail {
object-fit: contain;
width: 5rem;
padding-left: 10px;
}

.article__read-more {
Expand All @@ -209,14 +264,18 @@ p {

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

/* Sidebar */

.sidebar {
display: flex;
/*display: flex;*/
flex-direction: column;
min-width: 350px;
position: relative;
top: -300px;

}

/* Footer */
Expand All @@ -237,6 +296,10 @@ p {
font-size: 0.85rem;
}

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

/* Media queries */

@media screen and (min-width: 992px) {
Expand All @@ -248,3 +311,21 @@ p {
padding-right: 2rem;
}
}
aside {
display: flex;
justify-content: flex-end;
flex-direction: row;
row-gap: 1rem;
}

/*for the images and the texts on the right side*/
.article2 {
display: flex;
gap: 1rem;
border: 2px solid var(--grey-light);
border-radius: 3px;
}
.footer {
position: relative;
top: 25px;
}