Skip to content

Commit

Permalink
chore(Help): Add icons for help modal
Browse files Browse the repository at this point in the history
  • Loading branch information
gremid committed Jan 3, 2025
1 parent 5cf45b5 commit 2cfa698
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 4 deletions.
9 changes: 9 additions & 0 deletions public/fontawesome.min.css

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions public/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,29 @@
url('fonts/source-sans-pro-v21-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('fonts/source-sans-pro-v21-latin-ext_latin-700italic.svg#SourceSansPro') format('svg'); /* Legacy iOS */
}

/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
@font-face {
font-family: 'Font Awesome 6 Brands';
font-display: block;
font-weight: 400;
src: url("fonts/fa-brands-400.woff2") format("woff2"), url("fonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
font-family: 'Font Awesome 6 Free';
font-display: block;
font-weight: 900;
src: url("fonts/fa-solid-900.woff2") format("woff2"), url("fonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
font-family: 'Font Awesome 6 Free';
font-display: block;
font-weight: 400;
src: url("fonts/fa-regular-400.woff2") format("woff2"), url("fonts/fa-regular-400.ttf") format("truetype");
}
Binary file added public/fonts/fa-brands-400.ttf
Binary file not shown.
Binary file added public/fonts/fa-brands-400.woff2
Binary file not shown.
Binary file added public/fonts/fa-regular-400.ttf
Binary file not shown.
Binary file added public/fonts/fa-regular-400.woff2
Binary file not shown.
Binary file added public/fonts/fa-solid-900.ttf
Binary file not shown.
Binary file added public/fonts/fa-solid-900.woff2
Binary file not shown.
Binary file added public/fonts/fa-v4compatibility.ttf
Binary file not shown.
Binary file added public/fonts/fa-v4compatibility.woff2
Binary file not shown.
12 changes: 8 additions & 4 deletions src/dwds/livestream/html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,25 @@
[:tspan.lemma :font-bold :text-xl]
[:tspan.source :fill-dwds-grey-1]]
[:header :absolute :top-0 :left-0 :p-4]
[:footer :absolute :bottom-0 :left-0 :p-4
[:p.network-error :w-fit :text-dwds-white :font-bold]]]
[:footer :text-dwds-white
[:p.info :absolute :bottom-0 :left-0 :p-6 :text-4xl :hidden]
[:p.network-error :absolute :bottom-0 :right-0 :p-6 :w-fit :font-bold]]]
([page-title & contents]
[:<> {:lang "de"}
[:head
[:meta {:charset "UTF-8"}]
[:meta {:name "viewport", :content "width=device-width, initial-scale=1.0"}]
[:link {:rel "stylesheet" :href (str cp "fonts.css")}]
[:link {:rel "stylesheet" :href (str cp "fontawesome.min.css")}]
[:link {:rel "stylesheet" :href (str cp "styles.css")}]
[:title (str title "" page-title)]]
[:body
[:header [:a {:href "https://www.dwds.de/"} [:img {:src (str cp "d.png")}]]]
[:footer [:p.network-error {:style "display: none"}
"Verbindung unterbrochen! Lade in Kürze neu…"]]
[:main contents]
[:footer
[:p.info [:a {:href ""} [:i.fa-solid.fa-question]]]
[:p.network-error {:style "display: none"}
"Verbindung unterbrochen! Lade in Kürze neu…"]]
[:script (str "var cp = \"" cp "\";")]
[:script {:src (str cp "js/main.js")}]]]))

Expand Down

0 comments on commit 2cfa698

Please sign in to comment.