mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 11:33:41 +02:00
v9.0-pre
This commit is contained in:
parent
1209187148
commit
702d08964b
3 changed files with 37 additions and 13 deletions
|
@ -62,7 +62,7 @@ body .modal.active ~ main .screen {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: var(--padding);
|
padding: var(--padding);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
box-shadow: 0 3px 30px 0 rgba(var(--palette-contrast),.2);
|
box-shadow: 0 3px 30px 0 rgba(33,33,33,.2);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
*::selection {
|
*::selection {
|
||||||
background-color: var(--swatch-highlight);
|
background-color: var(--swatch-contrast);
|
||||||
color: var(--swatch-accent);
|
color: var(--swatch-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ body.menuActive main {
|
||||||
.screen {
|
.screen {
|
||||||
--background-pattern:
|
--background-pattern:
|
||||||
linear-gradient(90deg, var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center,
|
linear-gradient(90deg, var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center,
|
||||||
linear-gradient(var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center, var(--swatch-accent);
|
linear-gradient(var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center, var(--swatch-contrast);
|
||||||
--background-pattern-size: calc(var(--padding) + 2px) calc(var(--padding) + 2px);
|
--background-pattern-size: calc(var(--padding) + 2px) calc(var(--padding) + 2px);
|
||||||
|
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
@ -331,12 +331,26 @@ header .logo {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* WIP */
|
||||||
|
.screen.menu .content > .narrow {
|
||||||
|
align-items: flex-start;
|
||||||
|
max-width: 900px;
|
||||||
|
gap: var(--padding);
|
||||||
|
}
|
||||||
|
|
||||||
/* -- Media queries -- */
|
/* -- Media queries -- */
|
||||||
|
|
||||||
|
@media (max-width: 570px) {
|
||||||
|
.screen.menu .content > .narrow {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Wide-screen */
|
/* Wide-screen */
|
||||||
@media (min-aspect-ratio: 14/9) and (min-height: 300px) {
|
@media (min-aspect-ratio: 14/9) and (min-height: 300px) {
|
||||||
/* -- Cornerstones -- */
|
/* -- Cornerstones -- */
|
||||||
|
|
||||||
|
.narrow,
|
||||||
header {
|
header {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -358,9 +372,12 @@ header .logo {
|
||||||
|
|
||||||
/* -- Screens -- */
|
/* -- Screens -- */
|
||||||
|
|
||||||
.screen {
|
.screen.menu,
|
||||||
|
.screen.landingpage {
|
||||||
width: 50vw;
|
width: 50vw;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
background: var(--background-pattern);
|
||||||
|
background-size: var(--background-pattern-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark .screen {
|
body.dark .screen {
|
||||||
|
@ -381,9 +398,6 @@ header .logo {
|
||||||
--swatch-inverted: rgb(var(--palette-inverted));
|
--swatch-inverted: rgb(var(--palette-inverted));
|
||||||
--swatch-contrast: rgb(var(--palette-contrast));
|
--swatch-contrast: rgb(var(--palette-contrast));
|
||||||
--swatch-accent: rgb(var(--palette-accent));
|
--swatch-accent: rgb(var(--palette-accent));
|
||||||
|
|
||||||
background: var(--background-pattern);
|
|
||||||
background-size: var(--background-pattern-size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen.menu .content {
|
.screen.menu .content {
|
||||||
|
@ -395,7 +409,7 @@ header .logo {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: clamp(var(--padding),5vw,10vh);
|
padding: clamp(var(--padding),5vw,5vh);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
@ -408,17 +422,23 @@ header .logo {
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen.menu .wide .logo {
|
.screen.menu .wide .logo {
|
||||||
--size: clamp(20px,3.5vw,10vh);
|
--size: clamp(20px,3.5vw,5vh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen.menu .wide h1 {
|
.screen.menu .wide h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: clamp(20px,3vw,10vh);
|
font-size: clamp(20px,3vw,5vh);
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen.menu .wide h1 span {
|
||||||
|
background: var(--swatch-contrast);
|
||||||
|
color: var(--swatch-background);
|
||||||
|
padding: 0 var(--padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen.menu .wide p {
|
.screen.menu .wide p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: clamp(20px,2vw,2vh);
|
font-size: clamp(16px,5vw,2vh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen.menu .wide nav {
|
.screen.menu .wide nav {
|
||||||
|
|
|
@ -48,16 +48,20 @@
|
||||||
<div class="wide">
|
<div class="wide">
|
||||||
<div class="logo"></div>
|
<div class="logo"></div>
|
||||||
<div class="group">
|
<div class="group">
|
||||||
<h1>victor westerlund</h1>
|
<h1><span>victor westerlund</span></h1>
|
||||||
<p>I create things with code. The things I've created for the public reside as open-source repositories on GitHub, the rest you'll be lucky to hear about some day.</p>
|
<p>I create things with code. The things I've created for the public reside as open-source repositories on GitHub, the rest you'll be lucky to hear about some day.</p>
|
||||||
<p>Other topics (seemingly irrelevant to programming) I find facinating include but is in no way limited to astronomy, psychology, sociology, economics, ...</p>
|
<p>Other topics (seemingly irrelevant to programming) I find facinating include but is in no way limited to astronomy, psychology, sociology, economics, ...</p>
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
<nav>
|
||||||
<p class="button" data-action="newCard" data-value="contact_signal">signal</p>
|
<p class="button" data-action="newCard" data-value="contact_signal">signal</p>
|
||||||
<p class="button" data-action="newCard" data-value="contact_email">email</p>
|
<p class="button" data-action="newCard" data-value="contact_email">email</p>
|
||||||
<p class="button">github →</p>
|
<a href="https://github.com/VictorWesterlund" target="_blank"><p class="button">github →</p></a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="narrow center">
|
||||||
|
<p>I create things with code. The things I've created for the public reside as open-source repositories on GitHub, the rest you'll be lucky to hear about some day.</p>
|
||||||
|
<p>Other topics (seemingly irrelevant to programming) I find facinating include but is in no way limited to astronomy, psychology, sociology, economics, ...</p>
|
||||||
|
</div>
|
||||||
<div class="button phantom" data-action="newCard" data-value="contact">
|
<div class="button phantom" data-action="newCard" data-value="contact">
|
||||||
<p>contact me</p>
|
<p>contact me</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue