Skip to content

Commit

Permalink
Merge pull request Women-Coding-Community#205 from WomenCodingCommuni…
Browse files Browse the repository at this point in the history
…ty/revert-202-revert-195-update-colours-homepage

chore: Use new layout colours and figma re-design - Step 1
  • Loading branch information
lilyndk authored May 11, 2024
2 parents 2726c5d + 55201c9 commit a0eded1
Show file tree
Hide file tree
Showing 28 changed files with 1,034 additions and 380 deletions.
4 changes: 2 additions & 2 deletions _data/announcement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
date: 01.05.2024
image:
path: "/assets/images/announcements/stock-unsplash-computer-typing.jpg"
alt: Image decorative
alt: hands typing on a laptop keyboard
link:
path: /mentors
title: Join now
Expand All @@ -13,4 +13,4 @@
date: 30.04.2024
image:
path: "/assets/images/announcements/stock-copilot-designer_celebrate.jpg"
alt: Image decorative
alt: confetti illustration
9 changes: 0 additions & 9 deletions _includes/banner.html

This file was deleted.

4 changes: 2 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="footer">
<footer class="site-footer">
<div class="container">
<div class="row justify-content-between">
<div class="col-12 col-md-8">
Expand Down Expand Up @@ -50,7 +50,7 @@ <h2>Follow Us</h2>
</div>
</div>
</div>
</div>
</footer>

<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
Expand Down
12 changes: 12 additions & 0 deletions _includes/hero.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<header class="container hero">
<div class="row">
<div class="col-12 col-md-5 col-xl-4 hero-body">
<h1>Women Coding Community</h1>
<hr>
<p>Empowering Women in Their Tech Careers</p>
</div>
<div class="col-12 col-md-7 col-xl-8 hero-media">
<div class="hero-image"></div>
</div>
</div>
</header>
4 changes: 1 addition & 3 deletions _includes/icons/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions _includes/page-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<header class="page-header">
<h1>{{ page.title }}</h1>
</header>
5 changes: 4 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
{% seo %}
{% include head.html %}
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
{% include navbar.html %}
{{ content}}
<main id="main-content">
{{ content}}
</main>
{% include footer.html %}
</body>
</html>
266 changes: 266 additions & 0 deletions _sass/custom/_card-home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
// TEMPORARY: To be refactored to not only apply to homepage

.home {
.card {
padding: 0;
height: 100%;
border: 1px solid $border-color;

.btn {
max-width: fit-content;
}
}

.card,
.card-deck > .card:first-child,
.card-deck > .card:last-child {
border-radius: $border-radius;
}

.card-deck {
> * {
height: 100%;
}
}

.card-date {
color: $text-secondary;
font-size: $font-label-m;
}

.card-s {
.card-title {
font-size: 1.3rem;
margin-bottom: 0.25rem;
}

.card-subtitle {
font-weight: 400;
margin-top: 0;
margin-bottom: 0.6rem;
font-size: 1.1rem;
}

p {
font-size: $font-body-m;
}

.card-img-top {
border-radius: 100%;
}

.card-body {
padding: map-get($spacers, 3);
display: flex;
height: 100%;
flex-direction: column;
}
}

.card-m {
.card-body {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 2rem 3rem 2rem;
}

.card-title {
@include font-headline-l;
text-align: center;
}

p {
@include font-body;
text-align: center;
}
}

.card-l {
.card-title {
font-size: $font-display-s;
}

.card-body {
justify-content: center;
padding: map-get($spacers, 5);
}

p {
@include font-body;
text-align: left;
}
}

.card-horizontal {
display: flex;
flex-direction: row;
border-radius: $border-radius;

.card-title {
text-align: left;
}

.card-body {
display: flex;
flex-direction: column;
text-align: left;
flex: none;
}

.card-media {
flex: none;
padding-left: 0;

img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 0 $border-radius $border-radius 0;
}
}
}

@include media-breakpoint-up(sm) {
.card-deck {
.card-horizontal {
flex-direction: row;
}
}

.card-horizontal {
.card-media {
img {
max-height: 100%;
}
}
}
}

.announcements {
.card-deck {
margin-right: auto;
margin-left: auto;
flex-direction: column;
}

.card-horizontal {
border: none;
background: transparent;
margin: 0 1rem;
&:not(:only-child) {
margin-bottom: map-get($spacers, 5);
}

p {
font-size: $font-body-m;
}

.card-media {
img {
border-radius: 0;
}
}
}

.card-body {
padding: 0 map-get($spacers, 3);
}

.card-title {
margin: map-get($spacers, 1) 0 map-get($spacers, 3) 0;
}
}

.mission {
.card-horizontal {
.card-media {
img {
border-radius: 0;
}
}
.card-title {
margin-top: 0;
}
}
}

.programmes {
.card-deck {
width: 100%;
text-align: center;
}

.card {
border: none;
margin: 0 0 map-get($spacers, 3) 0;
padding: map-get($spacers, 3);

figure {
margin: 0;
}
}
}

.support {
.card-l {
border: none;
.card-body {
padding: 0;
}
}
}

@include media-breakpoint-down(sm) {
.mission {
.card-horizontal {
flex-direction: column;
.card-body {
padding: map-get($spacers, 3) 0;
}
}
}
}

@include media-breakpoint-up(md) {
.mission {
.card-horizontal {
.card-body {
padding: map-get($spacers, 3);
}
}
}
}

@include media-breakpoint-up(lg) {
.announcements {
.card-body {
flex: 1 1 auto;
}

.card-deck {
flex-direction: row;
}
}

.announcements {
.card {
img {
max-height: 100%;
}
}

.card-body {
padding: 0 map-get($spacers, 5) 0 map-get($spacers, 3);
}
}

.mission {
.card-horizontal {
.card-body {
padding-left: map-get($spacers, 4);
}
}
}
}
}
Loading

0 comments on commit a0eded1

Please sign in to comment.