made scss more responsive for desktops

This commit is contained in:
2024-02-01 12:50:31 +01:00
parent 7a70ba654c
commit 6e785a5e1a
7 changed files with 122 additions and 113 deletions

View File

@@ -1,5 +1,6 @@
--- ---
const year = new Date().getFullYear(); const year = new Date().getFullYear();
import "../styles/footer.scss";
--- ---
<footer> <footer>
@@ -7,16 +8,3 @@ const year = new Date().getFullYear();
>Sourcecode</a >Sourcecode</a
> >
</footer> </footer>
<style lang="scss">
footer {
display: inline-flexbox;
align-items: center;
text-align: center;
margin: 5vh;
bottom: 0;
a {
color: white;
}
}
</style>

View File

@@ -6,6 +6,7 @@ const routes = {
Docs: "/docs", Docs: "/docs",
Blog: "/blog", Blog: "/blog",
}; };
import "../styles/navbar.scss";
--- ---
<header> <header>
@@ -34,14 +35,14 @@ const routes = {
} }
</nav> </nav>
<div> <div>
<a href="https://github.com/vaporvee" <a href="https://github.com/vaporvee" target="_blank"
><img ><img
src="/github-mark.svg" src="/github-mark.svg"
alt="My GitHub account" alt="My GitHub account"
class="social" class="social"
/></a /></a
> >
<a href="https://www.linkedin.com/in/yannik-ain/" <a href="https://www.linkedin.com/in/yannik-ain/" target="_blank"
><img ><img
src="/linkedin-icon.svg" src="/linkedin-icon.svg"
alt="My Linkedin account" alt="My Linkedin account"
@@ -50,43 +51,3 @@ const routes = {
> >
</div> </div>
</header> </header>
<style lang="scss">
nav {
justify-self: flex-start;
display: inline-flex;
}
.navbar-entry {
display: flex;
flex-direction: column;
align-items: center;
}
.highlighter {
margin-top: -2vh;
}
header {
padding-top: 2.5vh;
padding-bottom: 2.5vh;
margin-inline: 2.5vw;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
margin-right: 2.5vw;
width: 40px;
}
a {
color: white;
text-decoration: none;
text-align: center;
margin-inline: 0.9vw;
}
.active {
font-family: "Satoshi-Bold";
color: #7eca9c;
}
.social {
width: 22px;
}
</style>

View File

@@ -10,6 +10,7 @@ const yannikAge = new Date().getFullYear() - 2004; // 31/12/2003
description="This is my personal website with my projects, docs and other useful stuff." description="This is my personal website with my projects, docs and other useful stuff."
> >
<main> <main>
<div class="home-main-box">
<div class="home-title-box"> <div class="home-title-box">
<h1 class="home-title" style="font-size: 6vw;">vaporvee</h1> <h1 class="home-title" style="font-size: 6vw;">vaporvee</h1>
<h2 <h2
@@ -19,9 +20,9 @@ const yannikAge = new Date().getFullYear() - 2004; // 31/12/2003
Making video games Making video games
</h2> </h2>
<img <img
class="using-engines"
src="/using_engines.svg" src="/using_engines.svg"
alt="engines I'm using" alt="engines I'm using"
width="275px"
/> />
</div> </div>
<div class="content"> <div class="content">
@@ -31,18 +32,18 @@ const yannikAge = new Date().getFullYear() - 2004; // 31/12/2003
>in Germany</b >in Germany</b
>.<br /> >.<br />
I mostly code in C++, Godot Engine's GDScript and C#.<br /> I mostly code in C++, Godot Engine's GDScript and C#.<br />
I am mostly self taught but i cant really say when i began to learn I am mostly self taught but i cant really say when i began to
game developement.<br /> learn game developement.<br />
Currently i already work at a game studio and i also have my own Currently i already work at a game studio and i also have my
game side projects and tools.<br /> own game side projects and tools.<br />
This website will mostly have <a href="/docs">docs</a>, This website will mostly have <a href="/docs">docs</a>, <a
<a href="/tutorials">tutorials</a>, and showcasing of my href="/tutorials">tutorials</a
<a href="/projects">projects</a>. Maybe also some other stuff >, and showcasing of my <a href="/projects">projects</a>.
all around the creative process of game developement or Maybe also some other stuff all around the creative process
completely unrelated stuff like cooking recepies in my <a of game developement or completely unrelated stuff like
href="/blog">blog</a cooking recepies in my <a href="/blog">blog</a> ;)
> ;)
</p> </p>
</div> </div>
</div>
</main> </main>
</Layout> </Layout>

11
src/styles/footer.scss Normal file
View File

@@ -0,0 +1,11 @@
footer {
display: inline-flexbox;
align-items: center;
text-align: center;
margin: 5vh;
bottom: 0;
a {
color: white;
}
}

View File

@@ -1,6 +1,13 @@
.home-title-box { main {
position: absolute; background-image: url("/diagonal_lines_home.png");
margin-top: 12vh; padding-inline: 10vw;
}
.home-main-box {
padding-block: 8vh;
display: flex;
justify-content: space-between;
align-items: center;
} }
.home-title { .home-title {
@@ -9,21 +16,17 @@
font-family: "Tanker-Regular"; font-family: "Tanker-Regular";
} }
main { .home-title-box {
background-image: url("/diagonal_lines_home.png"); justify-self: flex-start;
height: 73vh; margin-right: 5vw;
margin-left: -1vw;
width: 90.4vw;
flex-shrink: 0;
padding-left: 10vw;
}
.using-engines {
display: inline-flex;
} }
.content { .content {
position: absolute; justify-self: flex-end;
margin-left: 45vw; margin: 0;
margin-right: 8vw; max-width: 450px;
}
.using-engines {
width: 21vw;
} }

View File

@@ -18,12 +18,9 @@ h1 {
.content { .content {
background-color: $highlight-primary; background-color: $highlight-primary;
border-radius: 25px; border-radius: 25px;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); box-shadow: 0px 4px 4px 0px #00000040;
display: flex; display: flexbox;
padding: 1.8vw; padding: 2vw;
justify-content: center;
align-items: center;
flex-shrink: 0;
margin: 4vw; margin: 4vw;
} }
@@ -32,6 +29,10 @@ b {
color: $accent; color: $accent;
} }
a { .content {
a {
color: $link; color: $link;
text-decoration: underline;
margin: 0;
}
} }

44
src/styles/navbar.scss Normal file
View File

@@ -0,0 +1,44 @@
nav {
justify-self: flex-start;
display: inline-flex;
}
.navbar-entry {
display: flex;
flex-direction: column;
align-items: center;
}
.highlighter {
margin-top: -10px;
}
header {
padding-top: 2.5vh;
padding-bottom: 2.5vh;
margin-inline: 2.5vw;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
margin-right: 2.5vw;
width: 40px;
}
a {
color: white;
text-decoration: none;
text-align: center;
margin-inline: 0.9vw;
}
.active {
font-family: "Satoshi-Bold";
color: #7eca9c;
}
.social {
width: 22px;
}