Skip to content

Commit 52ee809

Browse files
committed
use calcit tiles as background
1 parent 3af7899 commit 52ee809

File tree

6 files changed

+181
-130
lines changed

6 files changed

+181
-130
lines changed

assets/calcit-tile.png

14.5 KB
Loading

assets/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
src: url('./Federo-Regular.ttf');
77
}
88

9+
10+
.tile {
11+
background-image: url('./calcit-tile.png');
12+
background-size: 163px 395px;
13+
}
14+
915
body {
1016
margin: 0;
1117
overscroll-behavior-y: none;

calcit.cirru

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@
8989
def style-middle $ {} (:margin "\"0 auto") (:max-width 1000) (:padding "\"0 40px")
9090
|comp-bg $ quote
9191
defcomp comp-bg () (println "\"@@@@@@@@@@@@@@@@\n@\n@ Well, code is not minified on purpose~\n@\n@ although it's still bundled with Vite.\n@\n@@@@@@@@@@@@@@@@")
92-
img $ {} (:src "\"http://cdn.tiye.me/logo/calcit.png")
92+
; img $ {} (:src "\"http://cdn.tiye.me/logo/calcit.png")
9393
:style $ {} (:width "\"60vw") (:z-index -10) (:min-width "\"480px") (:position :fixed) (:opacity 0.12) (:right 0) (:top "\"10vh")
94+
div $ {} (:class-name "\"tile")
95+
:style $ {} (:width "\"100vw") (:height "\"100vh") (:z-index -10) (:position :fixed) (:opacity 0.5)
9496
|app.schema $ {}
9597
:ns $ quote (ns app.schema)
9698
:defs $ {}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
3-
"@calcit/procs": "^0.5.18",
3+
"@calcit/procs": "^0.5.21",
44
"cirru-color": "^0.2.1-a1"
55
},
66
"devDependencies": {
77
"bottom-tip": "^0.1.3",
8-
"vite": "^2.8.5"
8+
"vite": "^2.8.6"
99
},
1010
"version": "0.0.1"
1111
}

yarn.lock

Lines changed: 133 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)