Skip to content

Commit

Permalink
add social media bar component
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoparsec committed Jul 3, 2024
1 parent 8f7ac52 commit c0cb79f
Show file tree
Hide file tree
Showing 14 changed files with 108 additions and 18 deletions.
5 changes: 5 additions & 0 deletions lib/assets/images/icons/social-bsky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/assets/images/icons/social-linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/assets/images/icons/social-mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/assets/images/icons/social-x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/assets/images/icons/social-youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions lib/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ Application specific code
@import "../../components/profile/profile";
@import "../../components/quote/quote";
@import "../../components/rating/rating";
@import "../../components/table/table";
@import "../../components/testimonial/testimonial";
@import "../../components/social-media-bar/social-media-bar";
@import "../../components/status/status";
@import "../../components/stripe/stripe";
@import "../../components/table/table";
@import "../../components/testimonial/testimonial";
@import "../../components/teaser/teaser";
@import "../../components/text/text";

Expand Down
12 changes: 5 additions & 7 deletions lib/components/footer/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
flex-direction: column;
align-items: flex-start;

> * + * {
margin-top: $spacer-md;
.footer__headline,
.footer__linkarea {
margin-top: $spacer-lg;
}

/* stylelint-disable-next-line order/order */
@include for-tablet-landscape-up {
> * + * {
margin-top: $spacer-2xl;
}
.social-media-bar {
margin-top: $spacer-md;
}
}

Expand Down
40 changes: 35 additions & 5 deletions lib/components/footer/footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,36 @@ description: Footer
<div class="footer__top">
<div class="footer__top__content">
<div class="footer__top__content__right">
<img class="footer__logo" src="/snippet/images/logos/soc_logo.svg" alt="Software Creators Academy Logo" />
<div class="footer__linkarea">
<img class="footer__logo" src="/snippet/images/logos/soc_logo.svg"
alt="Software Creators Academy Logo" />
<h2 class="footer__headline">Folge uns auf</h2>
<ul class="social-media-bar">
<li class="social-media-bar__item">
<a href="#" class="social-media-bar__link" title="Twitter">
<span class="icon icon--twitter icon--brand-primary"></span>
<span class="sr-only">Twitter</span>
</a>
</li>
<li class="social-media-bar__item">
<a href="#" class="social-media-bar__link" title="Mastodon">
<span class="icon icon--mastodon icon--brand-primary"></span>
<span class="sr-only">Mastodon/span>
</a>
</li>
<li class="social-media-bar__item">
<a href="#" class="social-media-bar__link" title="Linkedin">
<span class="icon icon--linkedin icon--brand-primary"></span>
<span class="sr-only">Linkedin</span>
</a>
</li>
<li class="social-media-bar__item">
<a href="#" class="social-media-bar__link" title="Bsky">
<span class="icon icon--bsky icon--brand-primary"></span>
<span class="sr-only">Bluesky</span>
</a>
</li>
</ul>
<div class="footer__linkarea m-t-lg">
<ul class="footer__links">
<li class="footer__link"><a href="#">Trainings</a></li>
<li class="footer__link"><a href="#">Trainer:innen</a></li>
Expand All @@ -25,11 +53,13 @@ description: Footer
</div>
</div>
<div class="footer__top__content__left">
<h2>Newsletter</h2>
<p>Frische Architektur direkt in deinem Postfach. Melde dich jetzt an und erfahre alle zwei Monate als erste(r) von neuen Angeboten und Themen</p>
<h2 class="footer__headline">Newsletter</h2>
<p>Frische Architektur direkt in deinem Postfach. Melde dich jetzt an und erfahre alle zwei Monate als
erste(r) von neuen Angeboten und Themen</p>
<form class="form" action="#" method="post" target="_blank">
<div class="form__field">
<label class="form__label" for="cr_form-input--text8475472">Wie heißt Du? <abbr title="required">*</abbr></label>
<label class="form__label" for="cr_form-input--text8475472">Wie heißt Du? <abbr
title="required">*</abbr></label>
<input class="form__input" type="text" name="1121423" id="cr_form-input--text8475472" />
</div>
<div class="form__field">
Expand Down
20 changes: 20 additions & 0 deletions lib/components/icons/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,23 @@
.icon--idea {
@include icon-before("icons/light-bulb-shine.svg", $brand-black, 2rem);
}

.icon--linkedin {
@include icon-before("icons/social-linkedin.svg", $brand-black, 1.5rem);
}

.icon--mastodon {
@include icon-before("icons/social-mastodon.svg", $brand-black, 1.5rem);
}

.icon--youtube {
@include icon-before("icons/social-youtube.svg", $brand-black, 1.5rem);
}

.icon--twitter {
@include icon-before("icons/social-x.svg", $brand-black, 1.5rem);
}

.icon--bsky {
@include icon-before("icons/social-bsky.svg", $brand-black, 1.6rem);
}
12 changes: 12 additions & 0 deletions lib/components/link/_link.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.link-unstyled,
%link-unstyled {
color: inherit;
text-decoration: none;
border-bottom: 0;

&:hover,
&:focus {
background-color: initial;
}
}

p a,
a:not([class]) {
color: $brand-text;
Expand Down
4 changes: 4 additions & 0 deletions lib/components/profile/_profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
grid-template-columns: 1fr;
}

.img-text__image {
max-width: 50%;
}

.img-text__heading {
@extend %heading-font-bold;

Expand Down
16 changes: 16 additions & 0 deletions lib/components/social-media-bar/_social-media-bar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.social-media-bar {
@extend %list-unstyled;

display: grid;
grid-gap: $spacer-sm;
grid-template-columns: 1fr 1fr 1fr 1fr;
align-content: center;
}

.social-media-bar__item {
display: inline-block;
}

.social-media-bar__link {
@extend %link-unstyled;
}
4 changes: 0 additions & 4 deletions lib/fundamentals/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ main {
flex: 1;
}

.sr-only {
@include visually-hidden();
}

img,
video {
max-width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions lib/fundamentals/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
border: 0;
}

.sr-only {
@include visually-hidden();
}

/* stylelint-disable declaration-no-important */
.m-t-sm {
margin-top: $spacer-sm !important;
Expand Down

0 comments on commit c0cb79f

Please sign in to comment.