Pre release changes
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
}
|
||||
|
||||
.lists > section {
|
||||
margin-bottom: 1em;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.no-wrap {
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
main {
|
||||
position: relative;
|
||||
max-width: 700px;
|
||||
max-width: 30em;
|
||||
padding: 2em;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
|
@ -21,9 +21,10 @@ export async function get(req, res) {
|
||||
const parsedAttributes = fm(fileContent)
|
||||
|
||||
const lineOfTextRegExp = /^(?:\w|\[).+/gm
|
||||
const sentenceRegExp = /(?:\w|\[).[.?!]/
|
||||
const lines = parsedAttributes.body
|
||||
.match(lineOfTextRegExp)
|
||||
.slice(0, 4)
|
||||
.slice(0, 2)
|
||||
.join('\n')
|
||||
|
||||
const preview = marked(lines)
|
||||
|
@ -17,13 +17,19 @@
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
max-width: 420px;
|
||||
margin: 0 0 1em 0;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0px 0px 8px 1px #2d3935;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 1em auto;
|
||||
}
|
||||
|
||||
.motto {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
@ -32,7 +38,7 @@
|
||||
|
||||
<header class="index-header">
|
||||
<figure class="profile-pic">
|
||||
<img alt="Borat" src="great-success.png" />
|
||||
<img alt="My eye" src="eye.png" />
|
||||
</figure>
|
||||
|
||||
<p class="motto">
|
||||
@ -43,7 +49,7 @@
|
||||
|
||||
<p>
|
||||
Hey, welcome to my personal website. My name is
|
||||
<strong>Michal Vanko</strong>
|
||||
<strong>Michal Vanko</strong>
|
||||
and I'm a
|
||||
<em>
|
||||
<a href="https://en.wikipedia.org/wiki/Programmer">programmer</a>
|
||||
|
@ -32,11 +32,6 @@
|
||||
text-shadow: 2px 2px 1px #c8c4b7;
|
||||
}
|
||||
|
||||
#personal-information :global(h3),
|
||||
#personal-information :global(h2) {
|
||||
margin: 1em 0 0.5em;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
|
Reference in New Issue
Block a user