Browse Source

new style

36C3
nek0 2 years ago
parent
commit
4ffb29b596
  1. 39
      site/css/default.css
  2. 35
      site/images/Chaoszone.black.svg
  3. BIN
      site/images/Chaoszone_crest.36c3.svg
  4. 1
      site/images/FAHRPLAN.svg
  5. 31
      src/Main.hs
  6. 2
      templates/archive.html
  7. 2
      templates/default.html

39
site/css/default.css

@ -1,28 +1,38 @@
body {
color: white;
background-color: black;
background-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%,rgba(0,0,0,0.9) 100%), url(/images/Chaoszone.svg);
background-size: contain;
background-attachment:fixed;
background-repeat:no-repeat;
background-position: center;
font-family: 'MontserratLight';
color: black;
font-family: 'Sans';
font-size: 20px;
font-weight: normal;
font-style: normal;
margin: 0 2rem 0;
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-attachment:fixed;
background-repeat:no-repeat;
background-position: center;
}
header {
border-bottom: 2px solid white;
margin-bottom: 30px;
padding: 12px 0px 12px 0px;
font-family: 'MontserratBlack';
font-size: 30px;
margin-left: 15rem;
margin-left: 25rem;
}
h1, h2, h3, h4, h5 {
@ -40,7 +50,7 @@ a:hover {
}
#logo, #logo img {
max-width: 13rem;
max-width: 23rem;
}
#logo {
@ -84,12 +94,15 @@ nav li a:first-child {
}
article {
padding-left: 15rem;
margin-left: 25rem;
}
article img {
max-width: 100%;
}
footer {
border-top: solid 2px white;
color: #555;
font-size: 12px;
margin-top: 30px;
padding: 12px 0px 12px 0px;

35
site/images/Chaoszone.black.svg
File diff suppressed because it is too large
View File

BIN
site/images/Chaoszone_crest.36c3.svg

After

Width: 1024  |  Height: 1024  |  Size: 180 KiB

1
site/images/FAHRPLAN.svg
File diff suppressed because it is too large
View File

31
src/Main.hs

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

2
templates/archive.html

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

2
templates/default.html

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

Loading…
Cancel
Save