Tilføj julekalender-notits

This commit is contained in:
Niels G. W. Serup 2024-11-10 12:09:37 +01:00
parent 6f612c243b
commit ee9db4873b
No known key found for this signature in database
GPG Key ID: 38EEEBCE67324F19
4 changed files with 8 additions and 1 deletions

View File

@ -149,7 +149,7 @@ generateSite = do
-- Handle images -- Handle images
imgDir <- inject "img" imgDir <- inject "img"
makeDir $ joinPaths outputDir imgDir makeDir $ joinPaths outputDir imgDir
forM_ ["mad-icon.png", "mad-logo.png"] $ \name -> forM_ ["mad-icon.png", "mad-logo.png", "julekalender.png"] $ \name ->
joinPaths imgDir (inject name) `copyTo` outputDir joinPaths imgDir (inject name) `copyTo` outputDir
-- Handle fonts -- Handle fonts

BIN
img/julekalender.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -128,3 +128,9 @@ p.image {
max-width: 100%; max-width: 100%;
} }
} }
#julekalender {
height: 100px;
background-image: url('img/julekalender.png');
background-position: center;
}

View File

@ -8,6 +8,7 @@
<title>Niels' mad</title> <title>Niels' mad</title>
</head> </head>
<body> <body>
<div id="julekalender"></div>
<header><a href="/">&nbsp;Niels'&nbsp;mad&nbsp;</a></header> <header><a href="/">&nbsp;Niels'&nbsp;mad&nbsp;</a></header>
<nav> <nav>