diff --git a/assets/app.css b/assets/app.css index 7cf81d9..8a9d381 100644 --- a/assets/app.css +++ b/assets/app.css @@ -49,6 +49,20 @@ body > header { border: 3px solid #000; } +.landing { + margin: 0; + width: auto; + max-width: none; +} + +.home-h1 { + height: 85vh; + display: flex; + place-items: center; + text-align: center; + margin: 0; +} + body > header > div { grid-area: banner; padding: 0.5em; @@ -61,6 +75,11 @@ body > header > strong { display: flex; place-items: center; border-right: 3px solid #000; + + > a { + text-decoration: none; + color: inherit; + } } @media (max-width: 700px) { @@ -199,6 +218,21 @@ pre { border: 0; } +.source { + font-size: small; + background-color: #eee; + color: #888; + padding: 0.5em; + margin-top: 1rem; +} + +blockquote { + font-style: italic; + border-left: 6px solid #aaa; + margin-left: 0; + padding-left: 1.5em; +} + .breadcrumbs { > .trail > span::after { content: "/"; @@ -210,6 +244,11 @@ pre { } } +h3.note { + font-size: 1.5em; + font-weight: normal; +} + .head { background: #ff7c14; border: 10px solid #c0430d; @@ -331,7 +370,7 @@ body > footer { } } -.bookmarks { +.bookmarks, .notes { display: flex; flex-direction: column; gap: 4em; @@ -340,10 +379,11 @@ body > footer { .bookmark { h3 { font-weight: normal; - font-size: 1.5em; + font-size: 1.25em; line-height: 1.33; margin-top: 0; - margin-bottom: 0.25em; + font-weight: bold; + margin-bottom: 1rem; } footer { @@ -357,6 +397,25 @@ body > footer { } } +.bookmark-date { + font-size: 1rem; + background-color: #000; + color: #fff; + padding: 0.5em; + position: absolute; + top: -6px; + right: -6px; +} + +#leaflet { + aspect-ratio: 5 / 4; +} + +figure { + padding: 0; + margin: 2em 0; +} + .article { img { max-width: 100%; @@ -413,3 +472,88 @@ body > footer { transform: scale(0.8); } } + +.links { + display: flex; + flex-direction: column; + gap: 3em; +} + +.line { + margin-top: 1rem; + display: flex; + align-items: end; + justify-content: space-between; +} + +.permalink { + border: 4px solid blue; + padding: 0.5em; + text-decoration: none; +} + +.events { + display: flex; + flex-direction: column; + gap: 4em; +} + +.event { + display: grid; + grid-template-areas: "heading poster" "text poster"; + grid-template-columns: 1fr 25%; + grid-template-rows: auto 1fr; + gap: 1em; + + > img { + grid-area: poster; + max-width: 100%; + } + + > div { + grid-area: text; + + :first-child { + margin-top: 0; + } + } + + > h3 { + font-size: 1.5em; + text-wrap: balance; + grid-area: heading; + margin: 0; + } + + &:nth-child(even) { + grid-template-areas: "poster heading" "poster text"; + grid-template-columns: 25% 1fr; + } +} + +.home-section { + padding: 1em 0; + background: var(--bg); + + &.articles-color { + --bg: #FF7C14; + } + + &.events-color { + --bg: #C0430D; + } + + > * { + display: block; + width: 40rem; + margin: 1em auto; + } +} + +.home-articles { + display: flex; + gap: 1.5rem; + font-size: 1.5em; + margin-bottom: 3rem; +} + diff --git a/lib/mse25_web/components/layouts/app.html.heex b/lib/mse25_web/components/layouts/app.html.heex index 04b166b..3dce75b 100644 --- a/lib/mse25_web/components/layouts/app.html.heex +++ b/lib/mse25_web/components/layouts/app.html.heex @@ -1,7 +1,9 @@
- madr.se + + madr.se +
-
-
18 apr
-
Behemoth
-
5 jun
-
Sweden Rock Festival
-
+ + + + + +
diff --git a/lib/mse25_web/controllers/item_html/event.html.heex b/lib/mse25_web/controllers/item_html/event.html.heex index f84af3a..57f7b3d 100644 --- a/lib/mse25_web/controllers/item_html/event.html.heex +++ b/lib/mse25_web/controllers/item_html/event.html.heex @@ -1,4 +1,4 @@ -
+

<%= @heading %>