Browse Source

custom favicon and nice background for website

Thomas B 1 month ago
parent
commit
44b4af29cf
3 changed files with 24 additions and 4 deletions
  1. 0
    1
      .github/workflows/docs.yml
  2. BIN
      docs/favicon.png
  3. 24
    3
      docs/index.html

+ 0
- 1
.github/workflows/docs.yml View File

42
           cp duality.gb docs/duality.gb
42
           cp duality.gb docs/duality.gb
43
           cp duality.gb docs/duality_$DATE.gb
43
           cp duality.gb docs/duality_$DATE.gb
44
           sed -i "s/duality.gb/duality_$DATE.gb/g" docs/index.html
44
           sed -i "s/duality.gb/duality_$DATE.gb/g" docs/index.html
45
-          cp data/rockshp_0.png docs/favicon.png
46
 
45
 
47
       - name: Setup Pages
46
       - name: Setup Pages
48
         uses: actions/configure-pages@v2
47
         uses: actions/configure-pages@v2

BIN
docs/favicon.png View File


+ 24
- 3
docs/index.html View File

3
         <title>Duality</title>
3
         <title>Duality</title>
4
         <link rel="icon" type="image/png" href="favicon.png" />
4
         <link rel="icon" type="image/png" href="favicon.png" />
5
         <style>
5
         <style>
6
+            body {
7
+                background: linear-gradient(
8
+                    to right,
9
+                    #000000 0%,
10
+                    #000000 50%,
11
+                    #ffffff 50%,
12
+                    #ffffff 100%
13
+                );
14
+            }
6
             #wrap, .text {
15
             #wrap, .text {
7
                 width: 100%;
16
                 width: 100%;
8
                 max-width: 640px; /* 160px * 4 */
17
                 max-width: 640px; /* 160px * 4 */
9
-                margin: auto;
10
-                text-align: center;
18
+                margin: 0px auto;
11
             }
19
             }
12
             #wrap {
20
             #wrap {
13
                 height: 100%;
21
                 height: 100%;
14
                 max-height: 576px; /* 144px * 4 */
22
                 max-height: 576px; /* 144px * 4 */
23
+                border-radius: 5px;
24
+                padding: 5px;
25
+            }
26
+            .text {
27
+                text-align: center;
28
+                border-radius: 5px;
29
+                padding: 5px;
30
+                margin-top: 10px;
31
+                margin-bottom: 10px;
15
             }
32
             }
16
             #controls {
33
             #controls {
17
                 margin: 0px auto;
34
                 margin: 0px auto;
18
             }
35
             }
36
+            body, #wrap, .text {
37
+                background-color: #DDDDDD;
38
+                color: #000000;
39
+            }
19
             @media (prefers-color-scheme: dark) {
40
             @media (prefers-color-scheme: dark) {
20
-                body, .wrap, #text {
41
+                body, #wrap, .text {
21
                     background-color: #111111;
42
                     background-color: #111111;
22
                     color: #FFFFFF;
43
                     color: #FFFFFF;
23
                 }
44
                 }

Loading…
Cancel
Save