summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ec38670..7ad56c2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -36,6 +36,56 @@ impl page::Page for Vec<Story> {
}
Ok(())
}
+
+ fn content_style() -> Markup {
+ html!(
+ """
+h2 {
+ font-size: 1.8rem;
+ margin-bottom: 2rem;
+ color: #2F3C57;
+}
+
+hr {
+ margin: 1rem;
+}
+
+
+.story-card {
+ text-align: left;
+ font-size: 1.2rem;
+ ul {
+ display: flex;
+ justify-content: start;
+ list-style: none;
+ flex-wrap: wrap;
+
+ li {
+ font-size: 1rem;
+ padding: 0.8rem;
+ margin: 0.8rem;
+ background-color: #2F3C57;
+ color: #ffd1a3;
+ outline: 0.2rem solid #2F3C57;
+
+ a {
+ text-decoration: underline #E1CCEB;
+ color: #E1CCEB;
+ }
+ }
+ }
+
+ hr {
+ margin: 2rem 0;
+ }
+ padding: 3rem;
+ margin: 3rem;
+ background-color: #ffd1a3;
+ border-bottom: 0.1rem dotted black;
+ }
+ """
+ )
+ }
}
#[derive(Deserialize, Debug)]