Embed Logo from assets

This commit is contained in:
Gregor Kleen 2019-05-01 21:09:36 +02:00
parent 19b7b1e9a5
commit d017196245
2 changed files with 5 additions and 7 deletions

View File

@ -4,7 +4,7 @@
module Foundation where
import Import.NoFoundation
import Import.NoFoundation hiding (embedFile)
import Database.Persist.Sql (ConnectionPool, runSqlPool)
import Text.Hamlet (hamletFile)
@ -85,6 +85,8 @@ import Data.Bits (Bits(zeroBits))
import Network.Wai.Parse (lbsBackEnd)
import Data.FileEmbed (embedFile)
instance DisplayAble b => DisplayAble (E.CryptoID a b) where
display = display . ciphertext
@ -1239,6 +1241,7 @@ siteLayout' headingOverride widget = do
navbar = $(widgetFile "widgets/navbar/navbar")
asidenav :: Widget
asidenav = $(widgetFile "widgets/asidenav/asidenav")
where logo = preEscapedToMarkup $ decodeUtf8 $(embedFile "assets/logo.svg")
footer :: Widget
footer = $(widgetFile "widgets/footer/footer")
alerts :: Widget

View File

@ -3,12 +3,7 @@ $newline never
<div .asidenav__logo>
<a href="/" .asidenav__logo-link>
<div .asidenav__logo-lmu >
$# TODO: logo is supposed to be loaded from /assets/logo.svg and placed here
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="80" height="80" fill="white" stroke="currentColor" stroke-width="2" />
<path d="M6.28906 73.7111V46.4124H8.85405V71.6958H16.7322V73.7111H6.28906Z" fill="currentColor" />
<path d="M19.4804 73.7111V46.4124H28.0914L32.0305 67.8483H32.5801L36.6108 46.4124H45.3135V73.7111H40.0003V50.443H39.5422L34.8703 73.7111H29.5571L24.7936 50.443H24.2439V73.7111H19.4804Z" fill="currentColor" />
<path d="M48.7945 64.0008V46.4124H58.0468V65.0085C58.0468 66.9322 59.6452 67.872 61.3446 67.8483C63.0171 67.8249 64.5508 66.749 64.5508 65.0085V46.4124H73.8031V64.0008C73.8031 66.1078 73.6565 74.2412 61.3446 74.3523C49.0327 74.4635 48.7945 66.0161 48.7945 64.0008Z" fill="currentColor" />
#{logo}
<span .asidenav__logo-uni2work>UNI2WORK