Skip to content

Commit

Permalink
Background now is a background
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianMcC committed Nov 20, 2024
1 parent 01b5998 commit 217f709
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>Maximilian</h1>
</div>

<div class="half right">
<p>erhm</p>
<h1>erhm</h1>
</div>
</div>

Expand Down
4 changes: 4 additions & 0 deletions public/style/general.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
body, html {
height: 100%;
}

* {
box-sizing: border-box;
margin: 0;
Expand Down
4 changes: 4 additions & 0 deletions public/style/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ $background-secondary: rgb(30, 30, 30);
$foreground-primary: #fdfae9;
$accent: #FF00FF;

body, html {
height: 100%;
}

* {
box-sizing: border-box;
margin: 0;
Expand Down
9 changes: 8 additions & 1 deletion public/style/home.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
html, body {
body, html {
height: 100%;
}

Expand All @@ -21,13 +21,20 @@ span#explanation:hover {
body {
background-color: rgb(24, 24, 24);
color: #fdfae9;
overflow: hidden;
}

.layout {
height: 100%;
position: relative;
}
.layout .background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -999999;
}
.layout .background svg {
width: 100%;
Expand Down
8 changes: 8 additions & 0 deletions public/style/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
body {
background-color: $background-primary;
color: $foreground-primary;

overflow: hidden;
}

.layout {
height: 100%;
position: relative;

// Fancy as SVG background
.background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -999999;

svg {
width: 100%;
Expand Down

0 comments on commit 217f709

Please sign in to comment.