Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
JortWillemsen committed Dec 22, 2023
1 parent 8d20155 commit 142430e
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 31 deletions.
52 changes: 52 additions & 0 deletions src/components/footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
---
<footer class="footer">
<div class="info">
<div class="left">
Tungstun<br>
Wereldtuinenlaan 49<br>
3452RZ Utrecht
</div>
<div class="middle">
T - 06 5892 4036<br>
E - jort@tungstun.nl<br>
I - www.tungstun.nl
</div>
<div class="right">
NL32 ASNB 0267 4649 91<br>
BTW NL003391342B15<br>
K.v.K 80087639
</div>
</div>
</footer>

<style lang="scss">
.footer {
color: #c8c8c8;
width: 100vw;
height: 250px;
background-color: #0e0e0e;
display: flex;
align-items: center;
justify-content: center;

@media (max-width: 1200px) {
height: 350px;
}
}

.info {

@media (max-width: 1200px) {
flex-direction: column;
height: 300px;
width: 100%;
}

display: flex;
text-align: center;
width: 50%;
justify-content: space-between;
font-size: 20px;
}
</style>
20 changes: 3 additions & 17 deletions src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,9 @@ const Header = ({ title }: { title?: string }) => {
<h1 className={`${styles.page_title}`}>{title}</h1>
<div className={`${styles.menu} ${menuOpen && styles.menu__open}`}>
<nav className={`${styles.menu__links}`}>
<a
href="/projects"
className={`${styles.glitch}`}
data-text="pr0j3cts"
>
projects
</a>
<a
href="/photography"
className={`${styles.glitch}`}
data-text="ph0t0gr4phy"
>
photography
</a>
<a href="/contact" className={`${styles.glitch}`} data-text="conta6-">
contact
</a>
<a href="/projects">projects</a>
{/* <a href="/photography">photography</a>
<a href="/contact">contact</a> */}
</nav>
<div
className={`${styles.menuButton}`}
Expand Down
9 changes: 7 additions & 2 deletions src/components/page/page.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import Header from "../header/header.tsx";
import Footer from "../footer.astro";
interface Props {
title: string;
children: any;
Expand All @@ -13,6 +14,7 @@ const { title, children } = Astro.props;
<div class="container">
<slot />
</div>
<Footer />
</div>

<style lang="scss">
Expand All @@ -21,9 +23,11 @@ const { title, children } = Astro.props;
box-sizing: border-box;
max-width: 1200px;
margin-top: 100px;
height: 100%;
height: fit-content;
min-height: calc(100vh - 100px);
width: 100%;
color: #c8c8c8;
margin-bottom: 30px;

@media (max-width: 1200px) {
margin-top: 70px;
Expand All @@ -35,6 +39,7 @@ const { title, children } = Astro.props;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
height: fit-content;
min-height: 100vh;
}
</style>
26 changes: 14 additions & 12 deletions src/components/project/project.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,21 @@ const { title, link, picture, description } = Astro.props;
transition: 0.3s ease-in-out;
padding: 10px;
border-radius: 11px;
}

.container:hover > .grid {
& > .title,
& > .description {
filter: invert(1);
}
}
@media (min-width: 1200px) {
&:hover {
transform: scale(1.1);
background-color: white;
padding: 0;

.container:hover {
transform: scale(1.1);
background-color: white;
padding: 0;
& > .grid {
& > .title,
& > .description {
filter: invert(1);
}
}
}
}
}

.grid {
Expand Down Expand Up @@ -87,7 +89,7 @@ const { title, link, picture, description } = Astro.props;
}

.description {
display: -webkit-box;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
Expand Down

0 comments on commit 142430e

Please sign in to comment.