Skip to content

Commit

Permalink
some extras
Browse files Browse the repository at this point in the history
  • Loading branch information
Mast3rwaf1z committed Aug 25, 2024
1 parent 249b31f commit 107d776
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/Helpers/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ uuidExists :: String -> IO Bool
uuidExists uuid = do
conn <- open db_file
visits <- query conn "SELECT uuid FROM visits WHERE uuid = ?" (Only (uuid :: String)) :: IO [Only String]
putStrLn $ show (length visits)
putStrLn uuid
close conn
return (not ((length visits) > 0))

Expand Down
1 change: 1 addition & 0 deletions app/Layout.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ layout content = [hsx|
("Sources", "/sources"),
("Old Site", "https://about.skademaskinen.win")
]}
<title>Skademaskinen</title>
<body>
<div class="mainmatter">
<hr>
Expand Down
1 change: 1 addition & 0 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ handleRequest ("api":args) request = do
return (responseBuilder status200 [("Content-Type", "text/plain")] $ mconcat $ map copyByteString [BU.fromString value])
handleRequest ["contact"] request = do return (serve (layout contact))
handleRequest ("projects":project) request = do return (serve (layout (projects project)))
handleRequest ["favicon.ico"] request = do return (serveFile "static/favicon.ico")
handleRequest [] request = do return (serve (layout index))
handleRequest x request = do return (page404 x)

Expand Down
4 changes: 2 additions & 2 deletions app/Pages/Contact/Contact.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ contact = [hsx|
{row ["Type", "Address"]}
{row ["Email", "mast3r@skade.dev"]}
{row ["University Email", "tjen19@student.aau.dk"]}
{row ["Matrix", "mast3r@skade.dev"]}
{row ["Matrix", "@mast3r:skade.dev"]}
{row ["Discord", "mast3r_waf1z"]}
</table>

<h2>Socials</h2>
Links to my socials
<br>
{link_image "LinkedIn" "/static/contact/LinkedIn.png" "https://www.linkedin.com/in/thomas-m%C3%B8ller-j-a76601a6/"}
|]
|]
Binary file added static/favicon.ico
Binary file not shown.

0 comments on commit 107d776

Please sign in to comment.