Skip to content

Commit

Permalink
All: Change footer to JS module
Browse files Browse the repository at this point in the history
  • Loading branch information
elaineleung committed Nov 8, 2023
1 parent 64bdedc commit 62f5caf
Show file tree
Hide file tree
Showing 42 changed files with 300 additions and 311 deletions.
9 changes: 2 additions & 7 deletions blogrlandingpage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,10 @@ <h4 class="fw-medium">Connect</h4>
</nav>
</div>
<div class="attribution / fs-small clr-neutral-300">
<div class="attibution-content">
<span>
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by
<a href="https://twitter.com/elaineclleung">Elaine</a>.</span>
<span class="block-footer">
Other <a href="https://elaineleung.github.io/frontendmentor/">Frontend Mentor Challenges</a> by Elaine</span>
</div>

</div>
</footer>
</body>
<script src="index.js"></script>
<script src="../public/js/footer.js" type="module"></script>
</html>
9 changes: 5 additions & 4 deletions blogrlandingpage/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,6 @@ body {
padding-inline: 1rem;
padding-block: 1.5rem;
}
.footer .attribution-content {
margin-top: auto;
justify-self: flex-end;
}

@media (min-width: 50em) {
.footer {
Expand Down Expand Up @@ -950,6 +946,11 @@ body {
}
.footer .attribution {
padding-block: 3.45rem 0.5rem;
flex-direction: row;
justify-content: center;
}
.footer .attribution > * + * {
margin-left: 0.2rem;
}
}
.col-2 {
Expand Down
2 changes: 1 addition & 1 deletion blogrlandingpage/stylesheet.css.map

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

13 changes: 9 additions & 4 deletions blogrlandingpage/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,10 @@ body {
flex-direction: column;
padding-inline: 1rem;
padding-block: 1.5rem;
&-content {
margin-top: auto;
justify-self: flex-end;
}
// &-content {
// margin-top: auto;
// justify-self: flex-end;
// }
}
}

Expand Down Expand Up @@ -1021,6 +1021,11 @@ body {

.attribution {
padding-block: 3.45rem 0.5rem;
flex-direction: row;
justify-content: center;
> * + * {
margin-left: 0.2rem;
}
}
}
}
Expand Down
12 changes: 2 additions & 10 deletions calculatorapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,9 @@ <h2>Theme</h2>
</div>

<footer class="footer / fs-footer">
<div class="footer__attribution container">
<span>
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by
<a href="https://twitter.com/elaineclleung">Elaine</a>.
</span>
<span class="block-footer">Other
<a href="https://elaineleung.github.io/frontendmentor/">Frontend Mentor Challenges</a>
by Elaine
</span>
</div>
<div class="attribution container"></div>
</footer>
</body>
<script src="index.js"></script>
<script src="../public/js/footer.js" type="module"></script>
</html>
28 changes: 16 additions & 12 deletions calculatorapp/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,16 @@ body {
padding-block: 0.7rem;
}
}
.footer {
width: 100%;
footer {
font-size: var(--fs-footer);
font-weight: 400;
padding-block: 1rem 0.5rem;
width: 100%;
}
.footer .block-footer {
display: none;
footer .attribution {
display: flex;
flex-direction: column;
padding-inline: 1rem;
}

[data-theme=light] {
Expand Down Expand Up @@ -535,14 +539,18 @@ body {
.header .labels-wrapper {
margin-bottom: 0.25rem;
}
.footer {
footer {
padding-block: 1rem 0.5rem;
}
.footer .container {
footer .container {
width: 100%;
}
.footer .block-footer {
display: inline;
footer .attribution {
flex-direction: row;
justify-content: center;
}
footer .attribution > * + * {
margin-left: 0.2rem;
}
}
.wrapper {
Expand Down Expand Up @@ -581,10 +589,6 @@ body {
font-size: var(--fs-small);
}

.fs-footer {
font-size: var(--fs-footer);
}

.fs-keys {
font-size: var(--fs-keys);
}
Expand Down
Loading

0 comments on commit 62f5caf

Please sign in to comment.