finished footer

This commit is contained in:
quentin 2025-03-03 18:07:27 +01:00
parent 7326b6dd86
commit 8325c2b1cd
2 changed files with 99 additions and 57 deletions

View File

@ -10,8 +10,6 @@
<div id="root"></div> <div id="root"></div>
<script type="module" src="/src/main.tsx"></script> <script type="module" src="/src/main.tsx"></script>
<footer> <footer>
<div class="footer-grid">
<div class="left"></div>
<div class="middle"> <div class="middle">
<h2>Let's keep in touch !</h2> <h2>Let's keep in touch !</h2>
<p>If these projects or my profile interests you feel free to contact me through any of the social links on the right.</p> <p>If these projects or my profile interests you feel free to contact me through any of the social links on the right.</p>
@ -21,18 +19,18 @@
<p><b>Mail: </b><a class="link" href="mailto:pro@quentin-leblanc.ch">pro@quentin-leblanc.ch</a></p> <p><b>Mail: </b><a class="link" href="mailto:pro@quentin-leblanc.ch">pro@quentin-leblanc.ch</a></p>
</div> </div>
<div></div> <div></div>
<div></div>
<div class="socials"> <div class="socials">
<a href="https://www.linkedin.com/in/quentin-leblanc-7b6043176/" target="_blank"><img class="social" src="src/assets/icons/linkedin.svg" alt="Quentin's LinkedIN"/></a> <a href="https://www.linkedin.com/in/quentin-leblanc-7b6043176/" target="_blank"><img class="social" src="src/assets/icons/linkedin.svg" alt="Quentin's LinkedIN"/></a>
</div> </div>
<div></div>
<div class="socials"> <div class="socials">
<a href="https://git.quentin-leblanc.ch/quentin" target="_blank"><img class="social" src="src/assets/icons/git-alt.svg" alt="Quentin's Git"/></a> <a href="https://git.quentin-leblanc.ch/quentin" target="_blank"><img class="social" src="src/assets/icons/git-alt.svg" alt="Quentin's Git"/></a>
</div> </div>
<div></div>
<div class="socials"> <div class="socials">
<a href="https://www.instagram.com/th3wh1t3q/" target="_blank"><img class="social" src="src/assets/icons/square-instagram.svg" alt="Quentin's Instagram"/></a> <a href="https://www.instagram.com/th3wh1t3q/" target="_blank"><img class="social" src="src/assets/icons/square-instagram.svg" alt="Quentin's Instagram"/></a>
</div> </div>
</div> <div></div>
</div> </div>
</footer> </footer>
</body> </body>

View File

@ -2,6 +2,7 @@
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
font-size: 1rem;
color-scheme: light dark; color-scheme: light dark;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);
@ -12,15 +13,23 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
--color-lightgreen: lightgreen; --color-lightgreen: lightgreen;
--color-lightred: #FF7F7F; --color-lightred: #FF7F7F;
padding: 0;
margin: 0;
}
:before, :after {
padding: 0;
margin: 0;
} }
body { body {
width: 100vw;
height: 100vh;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: flex; display: flex;
flex-direction: column;
place-items: center; place-items: center;
min-width: 320px;
min-height: 100vh;
} }
h1 { h1 {
@ -45,45 +54,20 @@ button:focus-visible {
} }
footer { footer {
position: absolute; flex-grow: 0;
flex-shrink: 0;
bottom: 0; bottom: 0;
display: flex;
flex-direction: row;
width: 100%; width: 100%;
} display: flex;
.footer-grid {
display: grid;
grid-template-columns: 1fr 2fr 1fr; grid-template-columns: 1fr 2fr 1fr;
} }
.footer-grid .middle h2,p { footer .middle {
text-align: center; margin-left: 50px;
} }
.footer-grid .right { footer .middle h2,p {
display: grid; text-align: left;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
}
.footer-grid .right .mail-to {
grid-column-end: span 7;
display: flex;
flex-direction: row;
}
.mail-to p {
margin: 0;
}
.footer-grid .right .socials {
width: 32px;
height: 32px;
align-self: start;
} }
a { a {
@ -94,6 +78,35 @@ a:hover {
text-decoration: underline; text-decoration: underline;
} }
.mail-to p {
margin: 0;
}
footer .right {
width: 100%;
display: grid;
margin-right: 50px;
grid-column-gap: 0;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
}
footer .right .mail-to {
grid-column-end: span 7;
display: flex;
flex-direction: row;
}
footer .right .socials {
width: 32px;
height: 32px;
align-self: start;
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root { :root {
color: #213547; color: #213547;
@ -133,4 +146,35 @@ a:hover {
} }
} }
@media (max-width: 720px) {
:root {
font-size: clamp(0.75rem, -0.61rem + 0.86vw , 1rem);
}
footer .right {
margin-left: 2%;
display: grid;
padding: 0;
overflow: scroll;
grid-column-gap: 0;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
}
footer .right .socials {
width: clamp(16px, 0.6rem + 0.86vw, 32px);
height: clamp(16px, 0.6rem + 0.86vw, 32px);
align-self: start;
}
}
@media (max-width: 256px) {
:root {
font-size: 0.75rem;
}
}