Skip to content

Commit

Permalink
More polish to session page design
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalorg committed Sep 3, 2024
1 parent 8e60574 commit cad5503
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
17 changes: 15 additions & 2 deletions resources/public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
--workshop-color: var(--teal-8);
--office-hours-color: var(--red-9);
--activity-color: var(--red-9);
--highlight-yellow: var(--yellow-9);
--highlight-yellow: var(--teal-12);
--highlight: var(--hoc-pink-4);
}

Expand Down Expand Up @@ -640,7 +640,7 @@ body {
}

.sessions-session_detail .three-box {
background: var(--activity-color);
position: relative;
font-size: var(--size-6);
margin-top: var(--size-4);
margin-bottom: var(--size-4);
Expand Down Expand Up @@ -668,6 +668,19 @@ body {
font-weight: 700;
}

.sessions-session_detail .three-box:before {
width: 90%;
top: 0;
height: 110%;
transform: rotate(1deg);
position: absolute;
z-index: -1;
content: '';
background-color: var(--activity-color);
border-radius: 900px;
left: 5%;
}

.sessions-session_list .sessions {
display: grid;
gap: var(--size-3);
Expand Down
4 changes: 2 additions & 2 deletions src/co/gaiwan/compass/css/tokens.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
--workshop-color --teal-2
--office-hours-color --red-2
--activity-color --red-2
--highlight-yellow --yellow-2
--highlight-yellow --yellow-2
--highlight --hoc-pink-1}]

(gs/at-media
Expand All @@ -52,5 +52,5 @@
--workshop-color --teal-8
--office-hours-color --red-9
--activity-color --red-9
--highlight-yellow --yellow-9
--highlight-yellow --teal-12
--highlight --hoc-pink-4}]))
18 changes: 16 additions & 2 deletions src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,25 @@
[:>p :font-semibold]
[:.datetime :font-size-7 :font-bold]
]
[:.three-box {:background t/--activity-color}
[:.three-box #_{:background t/--activity-color}
:relative
:font-size-6 :my-4 :flex :p-4 :gap-4
[:>div :border-8 :font-semibold :p-4 :w-33% :text-center
[:>.small :font-size-3 :uppercase :tracking-widest]
[:>.large :font-size-7 :font-bold]]]
[:>.large :font-size-7 :font-bold]]
[:&:before
{:content "''"
:position "absolute"
:top "0"
:left "5%"
:width "90%"
:height "110%"
:z-index -1
:background-color t/--activity-color
:border-radius "900px"
:transform "rotate(1deg)"}
]]

([{:session/keys [type title subtitle organized
time location image capacity
signup-count description
Expand Down

0 comments on commit cad5503

Please sign in to comment.