-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
262 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,25 +106,43 @@ | |
<p>Five nights at freddy's</p> | ||
</main> | ||
<footer> | ||
<h3>This is a footer</h3> | ||
<div class="mainContainer"> | ||
<div id="footerTitle"> | ||
<h1><span>I am a footer.</span></h1> | ||
<p class="randomTextShort">Random Text</p> | ||
</div> | ||
<div class="contentContainer"> | ||
<div> | ||
<h2>Contact me:</h2> | ||
<p><a href="mailto:[email protected]">[email protected]</a></p> | ||
</div> | ||
<div> | ||
<h2>Sitemap:</h2> | ||
<p><a href="/sitemap.xml">hejok254.github.io/sitemap.xml</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
<hr /> | ||
<p>It is very much useless at the moment</p> | ||
<br /> | ||
<p>Trust me, there's nothing interesting here</p> | ||
<a href="https://github.com/HEJOK254" | ||
><img | ||
src="/resources/images/logos/github-mark-white.svg" | ||
title="My Github" | ||
alt="GitHub logo" | ||
class="footerLogo" | ||
/></a> | ||
<a href="https://github.com/HEJOK254" | ||
><img | ||
src="/resources/images/logos/discord-mark-white.svg" | ||
title="My Discord" | ||
alt="Discord logo" | ||
class="footerLogo" | ||
/></a> | ||
<div class="bottomPanel"> | ||
<a href="https://github.com/HEJOK254" class="footerIcon"> | ||
<img | ||
src="/resources/images/logos/github-mark-white.svg" | ||
title="My Github" | ||
alt="GitHub logo" /> | ||
</a> | ||
<a href="https://dly.to/OTxm9NjIiVv" class="footerIcon"> | ||
<img | ||
src="/resources/images/logos/daily-dev-white.svg" | ||
title="My Daily.dev Profile (barely used)" | ||
alt="Daily.dev logo" /> | ||
</a> | ||
<a href="https://discord.gg/8qzctfPrBW" class="footerIcon"> | ||
<img | ||
src="/resources/images/logos/discord-mark-white.svg" | ||
title="GameBot Discord Server" | ||
alt="Discord logo" /> | ||
</a> | ||
</div> | ||
</footer> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,146 @@ | ||
:root { | ||
--footer-title-size: 4rem; | ||
--footer-mobile-title-size: 3.5rem; | ||
--footer-small-title-size: 1.25rem; | ||
--footer-icon-size: 2rem; | ||
} | ||
|
||
footer { | ||
padding: 16px; | ||
padding: 0; | ||
bottom: 0; | ||
border-top-left-radius: 8px; | ||
border-top-right-radius: 8px; | ||
text-align: center; | ||
text-align: left; | ||
background-color: black; | ||
overflow: hidden; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
.mainContainer { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; | ||
align-items: flex-end; | ||
box-sizing: border-box; | ||
padding: 4rem; | ||
width: 100%; | ||
|
||
@media screen and (max-width: 791px) { | ||
padding: 1rem; | ||
} | ||
|
||
div { | ||
padding: 2rem; | ||
padding-top: 1rem; | ||
} | ||
|
||
.contentContainer { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
padding: 0; | ||
} | ||
|
||
#footerTitle { | ||
flex-grow: 1; | ||
|
||
/* I have no idea how to make it scale properly lol */ | ||
.randomTextShort { | ||
color: lightgray; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
max-width: 35vw; | ||
|
||
@media screen and (max-width: 791px) { | ||
max-width: 80vw; | ||
} | ||
} | ||
} | ||
} | ||
|
||
h1 { | ||
color: white; | ||
font-size: var(--footer-title-size); | ||
font-weight: 500; | ||
margin: 0; | ||
margin-bottom: 0.5rem; | ||
padding: 0; | ||
|
||
/* Shorten and scale down the title on mobile displays */ | ||
@media screen and (max-width: 791px) { | ||
span { | ||
display: none; | ||
} | ||
&::after { | ||
content: "I'm a footer."; | ||
font-size: var(--footer-mobile-title-size); | ||
} | ||
} | ||
} | ||
|
||
h2 { | ||
color: white; | ||
font-size: var(--footer-small-title-size); | ||
font-weight: 400; | ||
margin: 0; | ||
margin-bottom: 0.1rem; | ||
padding: 0; | ||
} | ||
|
||
p { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.bottomPanel { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
margin: 1rem; | ||
|
||
* { | ||
margin: 0 1rem; | ||
padding: 0; | ||
} | ||
} | ||
} | ||
|
||
.footerIcon { | ||
--accent-color: white; | ||
img { | ||
vertical-align: middle; | ||
width: var(--footer-icon-size); | ||
height: var(--footer-icon-size); | ||
} | ||
padding: 0; | ||
margin: 0; | ||
border: none; | ||
} | ||
|
||
footer hr { | ||
background-color: aliceblue; | ||
border: none; | ||
border-radius: 2px; | ||
height: 2px; | ||
height: 1px; | ||
width: 80%; | ||
} | ||
|
||
footer a.button { | ||
background-color: #1e20ad; | ||
padding: 8px; | ||
border-radius: 8px; | ||
color: aliceblue; | ||
footer a { | ||
--accent-color: lightgray; | ||
color: var(--accent-color); | ||
text-decoration: none; | ||
} | ||
border-bottom: 2px dotted lightgray; | ||
|
||
/* Sick glow effect controlled by --accent-color */ | ||
@media (hover: hover) { | ||
transition: all 0.8s ease; | ||
|
||
.footerLogo { | ||
width: 32px; | ||
height: 32px; | ||
padding: 8px; | ||
&:hover { | ||
filter: drop-shadow(0 0 0.75rem var(--accent-color)); | ||
} | ||
} | ||
} |