File tree Expand file tree Collapse file tree 7 files changed +57
-22
lines changed Expand file tree Collapse file tree 7 files changed +57
-22
lines changed Original file line number Diff line number Diff line change 1
- (p () " Welcome home !" )
1
+ (p () " Welcome to my WIP " (a ( :href " https://github.com/gabydd/site " ) " site " ) " !" )
Original file line number Diff line number Diff line change 3
3
(defparameter pages ' (" index" " about" " projects" " helix" ))
4
4
5
5
(defun page-header (current-page)
6
- (nav (:class " header" )
7
- " Gaby"
6
+ (div (:class " header" )
7
+ (div (:class " title" )
8
+ (div () " Gaby" )
9
+ (a (:href " https://github.com/gabydd" ) (img (:src " octocat-lisp.png" :style " width:min(16vw, 16vh);" ))))
8
10
(div (:class " nav" )
9
11
(dohtml (page pages)
10
- (div (:class " nav-item" )
11
- (a (:class (if (equal page current-page) " link-current" " link" )
12
- :href (conc-str page " .html" ))
13
- page))))))
12
+ (a (:class (conc-str " link" (when (equal page current-page) " link-current" ))
13
+ :href (conc-str page " .html" ))
14
+ page)))))
14
15
15
16
(defparameter footer
16
- (div ()
17
+ (div (:class " footer " )
17
18
" Made with a little bit of lisp and a whole lot of love"
18
- (a (:href " https://github.com/gabydd" ) " Github" )))
19
+ (img (:src " lisp-warning.png" :style " width:max(6vw, 6vh);margin-left:auto;" ))))
20
+
19
21
(defmacro template (page &rest body)
20
22
` (conc-str " <!DOCTYPE HTML>"
21
23
(html (:lang " en" )
27
29
(link (:rel " stylesheet" :href " style.css" )))
28
30
(body ()
29
31
(page-header , page)
30
- ,@ body
32
+ (div ( :class " body " ) ,@ body)
31
33
footer))))
32
34
33
35
(dolist (page pages)
Original file line number Diff line number Diff line change 1
1
(div ()
2
- (h1 () " working on:" )
2
+ (h2 () " working on:" )
3
3
(p () " This site" )
4
4
(p () " proxy state with firebase" )
5
5
(p () " HELIX!" ))
Original file line number Diff line number Diff line change 9
9
(cl-inotify :with-inotify (inotify t (" ." ' (:modify :dont-follow )))
10
10
(cl-inotify :do-events (event inotify :blocking-p t )
11
11
(print " A file changed: regenerating" )
12
- (load " page.lisp" )))
12
+ (handler-case (load " page.lisp" )
13
+ (error (c)
14
+ (print c)))))
Original file line number Diff line number Diff line change
1
+ * {
2
+ box-sizing : border-box;
3
+ margin : 0 ;
4
+ }
1
5
.header {
6
+ font-size : min (10vw , 10vh );
2
7
display : flex;
3
- justify-content : space-between;
8
+ flex-direction : column;
9
+ align-items : center;
10
+ margin-bottom : 5vh ;
4
11
}
5
12
6
- .nav {
13
+ .title {
14
+ align-items : center;
7
15
display : flex;
8
16
}
9
17
10
- .nav-item {
11
- margin-left : 2em ;
18
+ .nav {
19
+ display : flex;
20
+ gap : min (6vw , 6vh );
12
21
}
13
22
14
23
.link {
24
+ font-size : min (6vw , 6vh );
25
+ color : # 524747 ;
15
26
text-decoration : none;
16
- color : gray;
17
27
}
18
28
19
29
.link : hover {
20
- color : green ;
30
+ color : # ba53c6 ;
21
31
}
22
32
23
33
.link-current {
24
- text-decoration : none;
25
- color : purple;
34
+ color : # 773edb ;
35
+ }
36
+
37
+ body {
38
+ display : flex;
39
+ flex-direction : column;
40
+ min-height : 100vh ;
41
+ }
42
+ .body {
43
+ font-size : min (5vh , 5vw );
44
+ margin-left : 8vw ;
45
+ margin-right : 8vw ;
46
+ flex : 1 ;
47
+ }
48
+
49
+ .footer {
50
+ display : flex;
51
+ font-size : max (1.5vh , 1.5vw );
52
+ margin-top : 5vh ;
53
+ margin-bottom : 1vh ;
54
+ margin-left : 5vw ;
55
+ margin-right : 5vw ;
56
+ align-items : flex-end;
26
57
}
27
58
28
- .link-current : hover {
29
- color : blue ;
59
+ .h2 {
60
+ font-size : min ( 6 vh , 6 vw ) ;
30
61
}
You can’t perform that action at this time.
0 commit comments