Add some dark styles

This commit is contained in:
Michal Vanko 2019-09-10 21:23:50 +02:00
parent 3fc5ad4d90
commit 5e6971692e
5 changed files with 75 additions and 17 deletions

View File

@ -3,7 +3,7 @@
</script> </script>
<style> <style>
nav { /* nav {
border-bottom: 1px solid rgba(255,62,0,0.1); border-bottom: 1px solid rgba(255,62,0,0.1);
font-weight: 300; font-weight: 300;
padding: 0 1em; padding: 0 1em;
@ -15,7 +15,7 @@
} }
/* clearfix */ /* clearfix */
ul::after { /* ul::after {
content: ''; content: '';
display: block; display: block;
clear: both; clear: both;
@ -39,22 +39,48 @@
background-color: rgb(255,62,0); background-color: rgb(255,62,0);
display: block; display: block;
bottom: -1px; bottom: -1px;
} } */
a { /* a {
text-decoration: none; text-decoration: none;
padding: 1em 0.5em; padding: 1em 0.5em;
display: block; display: block;
} */
nav {
position: sticky;
top: 0;
background: rgb(31, 22, 94);
z-index: 1;
padding: 0.5em;
box-shadow: 0px 2px 4px #090808;
}
nav a {
padding: 0.4em 0.5em;
text-decoration: none;
}
nav a:hover {
text-decoration: underline
} }
</style> </style>
<nav> <nav>
<ul> <!-- <ul> -->
<!-- <li><a class='{segment === undefined ? "selected" : ""}' href='.'>home</a></li> --> <!-- <li><a class='{segment === undefined ? "selected" : ""}' href='.'>home</a></li> -->
<li><a class='{segment === "portfolio" ? "selected" : ""}' href='portfolio'>portfolio</a></li> <!-- <li><a class='{segment === "portfolio" ? "selected" : ""}' href='portfolio'>portfolio</a></li> -->
<!-- for the blog link, we're using rel=prefetch so that Sapper prefetches <!-- for the blog link, we're using rel=prefetch so that Sapper prefetches
the blog data when we hover over the link or tap it on a touchscreen --> the blog data when we hover over the link or tap it on a touchscreen -->
<!-- <li><a rel=prefetch class='{segment === "blog" ? "selected" : ""}' href='blog'>blog</a></li> --> <!-- <li><a rel=prefetch class='{segment === "blog" ? "selected" : ""}' href='blog'>blog</a></li> -->
</ul> <!-- </ul> -->
<div class="page-navigation">
<a href="portfolio#personal-information">About</a>
<a href="portfolio#skills">Skills</a>
<a href="portfolio#work-history">Work History</a>
<a href="portfolio#projects">Projects</a>
<a href="portfolio#education">Education</a>
</div>
</nav> </nav>

View File

@ -5,18 +5,30 @@
</script> </script>
<style> <style>
.app-content {
background: linear-gradient(176deg, rgb(31, 22, 94) 0%,rgb(67, 117, 236) 100%);
background-attachment: fixed;
color:#f2f0f0;
}
main { main {
position: relative; position: relative;
max-width: 56em; max-width: 56em;
background-color: white;
padding: 2em; padding: 2em;
margin: 0 auto; margin: 0 auto;
box-sizing: border-box; box-sizing: border-box;
} }
:global(::selection) {
background: #0dd0d0;
}
</style> </style>
<div class="app-content">
<Nav {segment}/> <Nav {segment}/>
<main> <main>
<slot></slot> <slot></slot>
</main> </main>
</div>

View File

@ -1,3 +1,9 @@
<script context="module">
export async function preload() {
return this.redirect(302, 'portfolio')
}
</script>
<style> <style>
h1, figure, p { h1, figure, p {
text-align: center; text-align: center;

View File

@ -15,6 +15,16 @@
export let content export let content
</script> </script>
<style>
:global([id])::before {
content: '';
display: block;
height: 3em;
margin-top: -3em;
visibility: hidden;
}
</style>
<svelte:head> <svelte:head>
<title>{content.title}</title> <title>{content.title}</title>
</svelte:head> </svelte:head>
@ -23,11 +33,11 @@
<h2>Software Developer</h2> <h2>Software Developer</h2>
<section class="personal-information"> <section id="personal-information">
{@html content.body} {@html content.body}
</section> </section>
<section class="work-history"> <section id="work-history">
<h2>Work experience</h2> <h2>Work experience</h2>
<section class="work-history-prelude"> <section class="work-history-prelude">
{@html content.workHistoryPrelude} {@html content.workHistoryPrelude}
@ -41,7 +51,7 @@
</ul> </ul>
</section> </section>
<section class="projects"> <section id="projects">
<h2>Projects</h2> <h2>Projects</h2>
<ul> <ul>
{#each content.projects as project} {#each content.projects as project}
@ -52,7 +62,7 @@
</ul> </ul>
</section> </section>
<section class="education"> <section id="education">
<h2>Education</h2> <h2>Education</h2>
<ul> <ul>
{#each content.education as work} {#each content.education as work}

View File

@ -1,3 +1,7 @@
html {
scroll-behavior: smooth;
}
body { body {
margin: 0; margin: 0;
font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;