-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.cljs
38 lines (32 loc) · 1.3 KB
/
main.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(ns velho-ds.templates.main
(:require [stylefy.core :refer [use-style]]
[velho-ds.organisms.heading :as heading]
[velho-ds.organisms.navigation :as navigation]))
(def grid {:display "grid"
:grid-template-rows "6rem auto"
:grid-template-columns "200px auto"
:width "100vw"
:height "100vh"
:background-color "#333333"})
(def top-left {:grid-column-start "1"
:grid-column-end "2"
:grid-row-start "1"
:grid-row-end "2"})
(def top-right {:grid-column-start "2"
:grid-column-end "3"
:grid-row-start "1"
:grid-row-end "2"})
(def bottom-left {:grid-column-start "1"
:grid-column-end "2"
:grid-row-start "2"
:grid-row-end "3"})
(def bottom-right {:grid-column-start "2"
:grid-column-end "3"
:grid-row-start "2"
:grid-row-end "3"
:background-color "#FEFEFE"})
(defn default [content]
[:div (use-style grid)
[:div (use-style top-right) (heading/main (:heading content))]
[:div (use-style bottom-left)(navigation/nested-navigation (:navigation content))]
[:div (use-style bottom-right)[:section (:main-content content)]]])