new style

This commit is contained in:
nek0 2019-12-19 22:36:36 +01:00
parent 941d11bbe0
commit 4ffb29b596
7 changed files with 87 additions and 27 deletions

View File

@ -1,19 +1,29 @@
body { body {
color: white; color: black;
background-color: black; font-family: 'Sans';
background-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%,rgba(0,0,0,0.9) 100%), url(/images/Chaoszone.svg); font-size: 20px;
font-weight: normal;
font-style: normal;
padding: 0 2rem 0;
display: flex;
min-height: 100vh;
flex-direction: column;
}
body::before {
z-index: -1;
content: ' ';
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: #800000;
background-image: linear-gradient(to bottom, rgba(128,0,0,0.9) 0%,rgba(128,0,0,0.9) 100%), url(/images/Chaoszone.black.svg);
background-size: contain; background-size: contain;
background-attachment:fixed; background-attachment:fixed;
background-repeat:no-repeat; background-repeat:no-repeat;
background-position: center; background-position: center;
font-family: 'MontserratLight';
font-size: 20px;
font-weight: normal;
font-style: normal;
margin: 0 2rem 0;
display: flex;
min-height: 100vh;
flex-direction: column;
} }
header { header {
@ -22,7 +32,7 @@ header {
padding: 12px 0px 12px 0px; padding: 12px 0px 12px 0px;
font-family: 'MontserratBlack'; font-family: 'MontserratBlack';
font-size: 30px; font-size: 30px;
margin-left: 15rem; margin-left: 25rem;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
@ -40,7 +50,7 @@ a:hover {
} }
#logo, #logo img { #logo, #logo img {
max-width: 13rem; max-width: 23rem;
} }
#logo { #logo {
@ -84,12 +94,15 @@ nav li a:first-child {
} }
article { article {
padding-left: 15rem; margin-left: 25rem;
}
article img {
max-width: 100%;
} }
footer { footer {
border-top: solid 2px white; border-top: solid 2px white;
color: #555;
font-size: 12px; font-size: 12px;
margin-top: 30px; margin-top: 30px;
padding: 12px 0px 12px 0px; padding: 12px 0px 12px 0px;

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

1
site/images/FAHRPLAN.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -56,18 +56,29 @@ main = do
defaultCtx defaultCtx
>>= relativizeUrls >>= relativizeUrls
match "site/index.md" $ do create ["index.html"] $ do
route $ myRoute `composeRoutes` setExtension "html" route idRoute
compile $ do compile $ do
posts <- fmap (take 5) . recentFirst =<< loadAll "site/posts/*" post <- fmap head . recentFirst =<< (loadAll "site/posts/*"
let indexCtx = listField "posts" postCtx (return posts) <> :: Compiler [Item String])
constField "title" "Home" <> let indexCtx =
constField "date" "%B %e, %Y" <>
defaultCtx defaultCtx
getResourceBody makeItem (itemBody post)
>>= applyAsTemplate indexCtx >>= relativizeUrls
>>= renderPandoc
>>= loadAndApplyTemplate "templates/default.html" defaultCtx -- match "site/index.md" $ do
>>= relativizeUrls -- route $ myRoute `composeRoutes` setExtension "html"
-- compile $ do
-- posts <- fmap (take 5) . recentFirst =<< loadAll "site/posts/*"
-- let indexCtx = listField "posts" postCtx (return posts) <>
-- constField "title" "Home" <>
-- defaultCtx
-- getResourceBody
-- >>= applyAsTemplate indexCtx
-- >>= renderPandoc
-- >>= loadAndApplyTemplate "templates/default.html" defaultCtx
-- >>= relativizeUrls
create ["archive.html"] $ do create ["archive.html"] $ do
route idRoute route idRoute

View File

@ -1,3 +1,3 @@
Here you can find all my previous posts: Here you can find all previous posts:
$partial("templates/post-list.html")$ $partial("templates/post-list.html")$

View File

@ -15,7 +15,7 @@
<div class="wrapper"> <div class="wrapper">
<div id="logo"> <div id="logo">
<a href="/"> <a href="/">
<img src="/images/Chaoszone_crest.svg" alt="ChaosZone"> <img src="/images/Chaoszone_crest.36c3.svg" alt="ChaosZone">
</a> </a>
</div> </div>