add nsfw warning dialog
This commit is contained in:
parent
d671a4c01e
commit
c807895244
12 changed files with 346 additions and 102 deletions
30
make-pages/NsfwWarning.hs
Normal file
30
make-pages/NsfwWarning.hs
Normal file
|
@ -0,0 +1,30 @@
|
|||
{-# OPTIONS_GHC -fdefer-typed-holes #-}
|
||||
|
||||
module NsfwWarning (script, dialog) where
|
||||
|
||||
import BuilderQQ
|
||||
|
||||
script :: Bool -> Builder
|
||||
script False = ""
|
||||
script True = [b|<script src=/script/nsfw-warning.js></script>|]
|
||||
|
||||
dialog :: Bool -> Builder
|
||||
dialog False = ""
|
||||
dialog True = [b|@0
|
||||
<div class=dialog id=nsfw-dialog>
|
||||
<div class=dialog-inner>
|
||||
<h1>cw: lewd</h1>
|
||||
|
||||
<img class=dialog-icon src=/style/stop_hand.svg>
|
||||
|
||||
<div class=dialog-message>
|
||||
are you an adult? <br> if not please don't look!
|
||||
</div>
|
||||
|
||||
<div class=dialog-buttons>
|
||||
<button id=nsfw-yes class=yes>yes i am and i wanna see</button>
|
||||
<button id=nsfw-no class=no>no i’m not</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|]
|
Loading…
Add table
Add a link
Reference in a new issue