implement footer

This commit is contained in:
Michi 2025-03-12 18:42:13 +01:00
parent a8753d42b2
commit 2207010f06
5 changed files with 106 additions and 2 deletions

View file

@ -1,16 +1,20 @@
- name: Instagram - name: Instagram
link: https://instagram.com/michivonah link: https://instagram.com/michivonah
icon: ai-instagram-fill icon: ai-instagram-fill
footer: True
- name: LinkedIn - name: LinkedIn
link: https://in.michivonah.ch link: https://in.michivonah.ch
icon: ai-linkedin-box-fill icon: ai-linkedin-box-fill
footer: True
- name: GitHub - name: GitHub
link: https://github.com/michivonah link: https://github.com/michivonah
icon: ai-github-fill icon: ai-github-fill
footer: True
- name: Mail - name: Mail
link: mailto:info@michivonah.ch link: mailto:info@michivonah.ch
icon: ai-envelope icon: ai-envelope
footer: False

View file

@ -1 +1,2 @@
contact-me = 'Kontaktiere mich' contact-me = 'Kontaktiere mich'
legal = 'Rechtliches'

View file

@ -1 +1,2 @@
contact-me = 'Contact me' contact-me = 'Contact me'
legal = 'Legal'

View file

@ -1,2 +1,23 @@
<div class="footer">
<div class="footer-part">
<p>&#169; {{ dateFormat "2006" now }}</p>
<a href="#" alt='{{ T "legal" }}' title='{{ T "legal" }}'>{{ T "legal" }}</a>
<div class="sm-icons">
{{ range .Site.Data.socialmedia }}
{{ if .footer }}
<a href="{{ .link }}" alt="{{ .name }}" title="{{ .name }}"><i class="{{ .icon }}"></i></a>
{{ end }}
{{ end }}
</div>
</div>
<div class="footer-part">
<select>
{{ range $.Site.Home.AllTranslations }}
<option>{{ .Language.LanguageName }}</option>
{{ end }}
</select>
</div>
</div>
</body> </body>
</html> </html>

View file

@ -545,3 +545,80 @@ nav.small img{
.scroll-top i{ .scroll-top i{
stroke-width: 3px; stroke-width: 3px;
} }
/* FOOTER */
.footer{
width: 100%;
height: auto;
padding: 10px 80px 10px 40px;
box-sizing: border-box;
background: var(--primary);
color: var(--color);
font-size: 1rem;
display: flex;
flex-direction: row;
justify-content: space-between;
align-content: center;
align-items: baseline;
background-image: url("assets/projects/sprinkle.svg");
background-size: cover;
background-repeat: repeat-x;
background-position: center;
}
.footer-part, .sm-icons{
display: flex;
flex-direction: row;
justify-content: space-around;
align-content: center;
align-items: center;
}
@media screen and (max-width:490px){
.footer, .footer-part{
width: calc(100% + 20px);
flex-direction: column-reverse;
}
.sm-icons{
flex-direction: row;
}
.sm-icons i{
font-size: 1.4rem;
}
}
.footer a{
margin: 10px;
font-size: 1rem;
color: var(--color);
text-decoration: none;
transition: var(--baseTransition);
}
.footer a:hover{
color: var(--color);
text-decoration: none;
}
@media (pointer: fine){
.footer a:hover:has(i){
transform: scale(1.4);
}
.footer a:hover:not(:has(i)){
transform: scale(1.1);
}
}
.footer select{
background: var(--color);
color: var(--primary);
margin: 10px 5px;
padding: 5px 16px;
border-radius: var(--baseRadius);
transition: var(--baseTransition);
border: 1px solid var(--primary);
outline: none;
}