-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mobile fixes for footer, comittee and faq
- Loading branch information
Marit Radder
authored and
Marit Radder
committed
Jan 11, 2024
1 parent
af29d99
commit c104961
Showing
4 changed files
with
118 additions
and
50 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
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 |
---|---|---|
|
@@ -11,32 +11,34 @@ import * as style from "./style.scss"; | |
*/ | ||
export const Footer: FunctionalComponent = () => { | ||
const scrollToDiv = (target: any) => { | ||
if (document.getElementById(target)){ | ||
window.scrollTo({top: document.getElementById(target).offsetTop}) | ||
if (document.getElementById(target)) { | ||
window.scrollTo({ top: document.getElementById(target).offsetTop }) | ||
} | ||
} | ||
|
||
return ( | ||
<footer> | ||
<section class={style.footer}> | ||
<div> | ||
<p>Site</p> | ||
<a onClick={() => scrollToDiv('home')}>Home</a> | ||
<a onClick={() => scrollToDiv('aboutus')}>About us </a> | ||
<a onClick={() => scrollToDiv('timetable')}>Timetable</a> | ||
<a onClick={() => scrollToDiv('photos')}>Pictures</a> | ||
<a onClick={() => scrollToDiv('themes')}>Themes</a> | ||
<a onClick={() => scrollToDiv('faq')}>FAQ</a> | ||
<a onClick={() => scrollToDiv('sponsors')}>Sponsors</a> | ||
<div class={style.container}> | ||
<div class={style.innercontainer}> | ||
<p>Site</p> | ||
<a onClick={() => scrollToDiv('home')}>Home</a> | ||
<a onClick={() => scrollToDiv('aboutus')}>About us </a> | ||
<a onClick={() => scrollToDiv('timetable')}>Timetable</a> | ||
<a onClick={() => scrollToDiv('photos')}>Pictures</a> | ||
<a onClick={() => scrollToDiv('themes')}>Themes</a> | ||
<a onClick={() => scrollToDiv('faq')}>FAQ</a> | ||
<a onClick={() => scrollToDiv('sponsors')}>Sponsors</a> | ||
</div> | ||
<div class={style.innercontainer}> | ||
<p>Contact</p> | ||
<a title="Send us an email!" | ||
href="mailto:[email protected]" | ||
target="_blank" | ||
rel="noopener"> [email protected] </a> | ||
</div> | ||
</div> | ||
<div> | ||
<p>Contact</p> | ||
<a title="Send us an email!" | ||
href="mailto:[email protected]" | ||
target="_blank" | ||
rel="noopener"> [email protected] </a> | ||
</div> | ||
</section> | ||
</footer> | ||
</section> | ||
</footer> | ||
); | ||
} |
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,27 +1,48 @@ | ||
@import "./src/variables"; | ||
@import "./src/mixins"; | ||
|
||
|
||
.footer { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
margin-bottom: 20px; | ||
gap: 16px; | ||
|
||
.container { | ||
display: flex; | ||
width: 80%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
flex-direction: column; | ||
gap: 16px; | ||
} | ||
|
||
p { | ||
color: $primary-color; | ||
font-family: "Krona-One"; | ||
font-size: 34px; | ||
margin: 10px 0; | ||
font-size: 16px; | ||
margin: 0; | ||
} | ||
|
||
a { | ||
font-family: "Krona-One"; | ||
font-size: 34px; | ||
font-size: 16px; | ||
text-decoration: none; | ||
color: #fff; | ||
margin: 10px 0; | ||
} | ||
|
||
> div { | ||
.innercontainer { | ||
display: flex; | ||
flex-direction: column; | ||
width: 30%; | ||
} | ||
} | ||
|
||
@include breakpoint(md) { | ||
.footer .container { | ||
flex-direction: row; | ||
gap: 0; | ||
} | ||
} | ||
|