-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.lisp
83 lines (71 loc) · 1.97 KB
/
project.lisp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
(in-package #:site)
(navi:define-tag project-root (body attrs &key title src hero sidebar)
`(:div ,@attrs
,hero
(page-header :title ,title :src ,src)
(:div :id "project-container"
(:div :style "flex-grow: 1" ,@body)
(project-sidebar ,sidebar))))
(navi:define-tag project-sidebar (body attrs)
`(:div :class "game-feature-box" ,@attrs
,@body))
;; * Styles
(navi/style:define-style project-container
("#project-container"
:display "flex"
:flex-direction "row"
:gap "24px")
(:media "(max-width: 600px)"
("#project-container"
:flex-direction "column-reverse"
:gap "24px"))
(ul
:padding-inline-start "12px"))
(navi/style:define-style game-container
("#game-container"
:display "flex"
:background-color "#000000"
:outline "1px solid #FFFFFF20"
:margin-bottom "32px"
:overflow "hidden"
:width "100%"
:justify-content "center")
(:media "(max-width: 384px)"
("#game-container" :display "none")))
(navi/style:define-style game-canvas-style
(.game
:width "960px"
:height "720px"
:border "0"
:overflow "hidden"
:display "block"
:image-rendering "optimizeSpeed"
:image-rendering "-moz-crisp-edges"
:image-rendering "-o-crisp-edges"
:image-rendering "-webkit-optimize-contrast"
:image-rendering "optimize-contrast"
:image-rendering "crisp-edges"
:image-rendering "pixelated"
:-ms-interpolation-mode "nearest-neighbor")
(:media "(max-width: 1024px)"
(.game
:width "640px"
:height "480px"))
(:media "(max-width: 704px)"
(.game
:width "320px"
:height "240px")))
(navi/style:define-style game-feature-box
(.game-feature-box
:background-color "#1F2228"
:border "1px solid #FFFFFF20"
:border-radius "16px"
:padding "0px 24px 0px 24px"
(ul
:padding-inline-start "24px")
((> ul)
:padding 0
((> li)
:list-style-type "none"
:margin 0
:padding 0))))