瀏覽代碼

Update posters

customisations
alemart 2 月之前
父節點
當前提交
b2618fcdc3

+ 28
- 30
demos/assets/poster.css 查看文件

4
     background-size: contain;
4
     background-size: contain;
5
     background-repeat: no-repeat;
5
     background-repeat: no-repeat;
6
     background-position: center;
6
     background-position: center;
7
+    font-family: "Lato", sans-serif;
7
     width: 100vw;
8
     width: 100vw;
8
     height: 100vh;
9
     height: 100vh;
9
     padding: 0;
10
     padding: 0;
19
     right: 16px;
20
     right: 16px;
20
     color: black;
21
     color: black;
21
     background-color: white;
22
     background-color: white;
22
-    border-radius: 16px;
23
+    border-radius: 4px;
23
     padding: 0.5em;
24
     padding: 0.5em;
24
     text-align: center;
25
     text-align: center;
25
     font-weight: bold;
26
     font-weight: bold;
26
-    font-family: sans-serif;
27
     font-size: 1.25em;
27
     font-size: 1.25em;
28
 }
28
 }
29
 
29
 
39
 
39
 
40
 #get {
40
 #get {
41
     position: fixed;
41
     position: fixed;
42
-    top: 24px;
43
-    left: 24px;
42
+    top: 16px;
43
+    left: 16px;
44
     padding: 16px;
44
     padding: 16px;
45
-    color: rgb(184, 98, 184);
46
-    background-color: white;
45
+    color: white;
46
+    background-color: blueviolet;
47
     border: 0;
47
     border: 0;
48
-    border-radius: 24px;
49
-    font-family: sans-serif;
50
-    font-size: 1.25em;
48
+    border-radius: 4px;
49
+    font-size: 1.2rem;
51
     font-weight: bold;
50
     font-weight: bold;
52
-    text-decoration: underline;
53
-    transition: transform 0.25s;
51
+    text-decoration: none;
52
+    opacity: 0.8;
53
+    transition: transform 0.25s, opacity 0.25s;
54
 }
54
 }
55
 
55
 
56
 #get:any-link {
56
 #get:any-link {
57
-    color: rgb(184, 98, 184);
57
+    color: white;
58
 }
58
 }
59
 
59
 
60
 #get:hover {
60
 #get:hover {
61
     transform: scale(1.0625);
61
     transform: scale(1.0625);
62
+    opacity: 1;
62
 }
63
 }
63
 
64
 
64
 #prev, #next {
65
 #prev, #next {
101
     content: "\276F";
102
     content: "\276F";
102
 }
103
 }
103
 
104
 
104
-
105
-#like {
105
+#film {
106
     position: fixed;
106
     position: fixed;
107
-    top: 24px;
108
-    right: 24px;
107
+    top: 16px;
108
+    right: 16px;
109
     width: 64px;
109
     width: 64px;
110
     height: 64px;
110
     height: 64px;
111
     padding: 0;
111
     padding: 0;
112
-    color: rgb(184, 98, 184);
113
-    background-color: white;
114
     border: 0;
112
     border: 0;
115
-    border-radius: 32px;
116
-    font-family: sans-serif;
117
-    font-size: 1.25em;
118
-    font-weight: bold;
119
-    text-decoration: underline;
120
-    transition: transform 0.25s;
113
+    background-color: blueviolet;
114
+    border-radius: 4px;
115
+    opacity: 0.8;
116
+    transition: transform 0.25s, opacity 0.25s;
121
 }
117
 }
122
 
118
 
123
-#like:hover {
119
+#film:hover {
124
     transform: scale(1.0625);
120
     transform: scale(1.0625);
121
+    opacity: 1;
125
 }
122
 }
126
 
123
 
127
-#like i {
124
+#film i {
128
     display: inline-block;
125
     display: inline-block;
129
     width: 100%;
126
     width: 100%;
130
     height: 100%;
127
     height: 100%;
131
-    background-color: rgb(184, 98, 184);
132
-    mask: url(../assets/heart-fill.svg) 0 0/64px 64px;
133
-    -webkit-mask: url(../assets/heart-fill.svg) 0 0/64px 64px;
134
-}
128
+    background-image: url(../assets/video-film.svg);
129
+    background-size: 60%;
130
+    background-repeat: no-repeat;
131
+    background-position: center;
132
+}

+ 153
- 0
demos/assets/video-film.svg 查看文件

1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<svg
3
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+   xmlns:cc="http://creativecommons.org/ns#"
5
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+   xmlns:svg="http://www.w3.org/2000/svg"
7
+   xmlns="http://www.w3.org/2000/svg"
8
+   id="svg821"
9
+   version="1.1"
10
+   viewBox="0 0 135.46667 135.46667"
11
+   height="512"
12
+   width="512">
13
+  <defs
14
+     id="defs815" />
15
+  <metadata
16
+     id="metadata818">
17
+    <rdf:RDF>
18
+      <cc:Work
19
+         rdf:about="">
20
+        <dc:format>image/svg+xml</dc:format>
21
+        <dc:type
22
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
23
+        <dc:title></dc:title>
24
+      </cc:Work>
25
+    </rdf:RDF>
26
+  </metadata>
27
+  <g
28
+     transform="translate(-37.266657,-80.766662)"
29
+     id="layer1">
30
+    <rect
31
+       ry="0"
32
+       y="80.76667"
33
+       x="37.266659"
34
+       height="135.46666"
35
+       width="135.46666"
36
+       id="rect1366"
37
+       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.24216199;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
38
+    <g
39
+       transform="translate(-1.8119812e-6)"
40
+       id="g1527">
41
+      <rect
42
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17960839;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers"
43
+         id="rect1392"
44
+         width="26.278845"
45
+         height="135.46666"
46
+         x="37.266659"
47
+         y="80.76667" />
48
+      <rect
49
+         y="86.058334"
50
+         x="42.468582"
51
+         height="124.88333"
52
+         width="15.875"
53
+         id="rect1402"
54
+         style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.13403444;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
55
+      <rect
56
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2581988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers"
57
+         id="rect1425"
58
+         width="21.166666"
59
+         height="5.2916665"
60
+         x="39.822746"
61
+         y="177.99614" />
62
+      <rect
63
+         y="145.05061"
64
+         x="39.822746"
65
+         height="5.2916665"
66
+         width="21.166666"
67
+         id="rect1427"
68
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2581988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
69
+      <rect
70
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2581988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers"
71
+         id="rect1429"
72
+         width="21.166666"
73
+         height="5.2916665"
74
+         x="39.822746"
75
+         y="112.1051" />
76
+    </g>
77
+    <rect
78
+       y="80.76667"
79
+       x="37.266659"
80
+       height="5.2916665"
81
+       width="135.46666"
82
+       id="rect1483"
83
+       style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.20098378;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
84
+    <rect
85
+       style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.20098378;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers"
86
+       id="rect1485"
87
+       width="135.46666"
88
+       height="5.2916665"
89
+       x="37.266659"
90
+       y="210.94167" />
91
+    <g
92
+       transform="translate(109.18781)"
93
+       id="g1539">
94
+      <rect
95
+         y="80.76667"
96
+         x="37.266659"
97
+         height="135.46666"
98
+         width="26.278845"
99
+         id="rect1529"
100
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17960839;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
101
+      <rect
102
+         style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.13403444;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers"
103
+         id="rect1531"
104
+         width="15.875"
105
+         height="124.88333"
106
+         x="42.468582"
107
+         y="86.058334" />
108
+      <rect
109
+         y="177.99614"
110
+         x="39.822746"
111
+         height="5.2916665"
112
+         width="21.166666"
113
+         id="rect1533"
114
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2581988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
115
+      <rect
116
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2581988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers"
117
+         id="rect1535"
118
+         width="21.166666"
119
+         height="5.2916665"
120
+         x="39.822746"
121
+         y="145.05061" />
122
+      <rect
123
+         y="112.1051"
124
+         x="39.822746"
125
+         height="5.2916665"
126
+         width="21.166666"
127
+         id="rect1537"
128
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2581988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.9754902;paint-order:stroke fill markers" />
129
+    </g>
130
+    <g
131
+       id="g1959">
132
+      <path
133
+         style="opacity:1;fill:#666666;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.95852535;paint-order:stroke fill markers"
134
+         id="path1853"
135
+         d="m 127.23097,144.33565 -39.304651,22.69255 0,-45.3851 z"
136
+         transform="matrix(1.3938894,0,0,1.4491396,-39.661082,-58.016668)" />
137
+      <g
138
+         id="g1851"
139
+         transform="translate(-0.05093633,-2.6458389)">
140
+        <path
141
+           style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.95852535;paint-order:stroke fill markers"
142
+           id="path1843"
143
+           d="m 127.23097,144.33565 -39.304651,22.69255 0,-45.3851 z"
144
+           transform="matrix(1.3938894,0,0,1.4491396,-44.901813,-60.662496)" />
145
+        <path
146
+           transform="matrix(0.96750146,0,0,1.0058508,-0.70672005,3.3198909)"
147
+           d="m 127.23097,144.33565 -39.304651,22.69255 0,-45.3851 z"
148
+           id="path1847"
149
+           style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.95852535;paint-order:stroke fill markers" />
150
+      </g>
151
+    </g>
152
+  </g>
153
+</svg>

+ 4
- 4
demos/basketball/poster.html 查看文件

13
     </head>
13
     </head>
14
     <body data-ar-images="mage.webp">
14
     <body data-ar-images="mage.webp">
15
         <nav>
15
         <nav>
16
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
17
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
16
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
17
+            <a id="film" href="video.html"><i></i></a>
18
             <a id="prev" href="#"></a>
18
             <a id="prev" href="#"></a>
19
             <a id="next" href="#"></a>
19
             <a id="next" href="#"></a>
20
         </nav>
20
         </nav>
21
         <section id="qr-code-area">
21
         <section id="qr-code-area">
22
             <h4>QR code</h4>
22
             <h4>QR code</h4>
23
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
24
-            <small>Scan or click!</small>
23
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
24
+            <small>Scan or click</small>
25
         </section>
25
         </section>
26
     </body>
26
     </body>
27
 </html>
27
 </html>

+ 4
- 4
demos/hello-aframe/poster.html 查看文件

12
     </head>
12
     </head>
13
     <body data-ar-images="mage.webp;cat.webp">
13
     <body data-ar-images="mage.webp;cat.webp">
14
         <nav>
14
         <nav>
15
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
16
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
15
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
16
+            <a id="film" href="video.html"><i></i></a>
17
             <a id="prev" href="#"></a>
17
             <a id="prev" href="#"></a>
18
             <a id="next" href="#"></a>
18
             <a id="next" href="#"></a>
19
         </nav>
19
         </nav>
20
         <section id="qr-code-area">
20
         <section id="qr-code-area">
21
             <h4>QR code</h4>
21
             <h4>QR code</h4>
22
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
-            <small>Scan or click!</small>
22
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
+            <small>Scan or click</small>
24
         </section>
24
         </section>
25
     </body>
25
     </body>
26
 </html>
26
 </html>

+ 4
- 4
demos/hello-babylon/poster.html 查看文件

12
     </head>
12
     </head>
13
     <body data-ar-images="mage.webp;cat.webp">
13
     <body data-ar-images="mage.webp;cat.webp">
14
         <nav>
14
         <nav>
15
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
16
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
15
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
16
+            <a id="film" href="video.html"><i></i></a>
17
             <a id="prev" href="#"></a>
17
             <a id="prev" href="#"></a>
18
             <a id="next" href="#"></a>
18
             <a id="next" href="#"></a>
19
         </nav>
19
         </nav>
20
         <section id="qr-code-area">
20
         <section id="qr-code-area">
21
             <h4>QR code</h4>
21
             <h4>QR code</h4>
22
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
-            <small>Scan or click!</small>
22
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
+            <small>Scan or click</small>
24
         </section>
24
         </section>
25
     </body>
25
     </body>
26
 </html>
26
 </html>

+ 4
- 4
demos/hello-three/poster.html 查看文件

12
     </head>
12
     </head>
13
     <body data-ar-images="mage.webp;cat.webp">
13
     <body data-ar-images="mage.webp;cat.webp">
14
         <nav>
14
         <nav>
15
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
16
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
15
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
16
+            <a id="film" href="video.html"><i></i></a>
17
             <a id="prev" href="#"></a>
17
             <a id="prev" href="#"></a>
18
             <a id="next" href="#"></a>
18
             <a id="next" href="#"></a>
19
         </nav>
19
         </nav>
20
         <section id="qr-code-area">
20
         <section id="qr-code-area">
21
             <h4>QR code</h4>
21
             <h4>QR code</h4>
22
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
-            <small>Scan or click!</small>
22
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
+            <small>Scan or click</small>
24
         </section>
24
         </section>
25
     </body>
25
     </body>
26
 </html>
26
 </html>

+ 4
- 4
demos/hello-webgl/poster.html 查看文件

12
     </head>
12
     </head>
13
     <body data-ar-images="my-reference-image.webp">
13
     <body data-ar-images="my-reference-image.webp">
14
         <nav>
14
         <nav>
15
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
16
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
15
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
16
+            <a id="film" href="video.html"><i></i></a>
17
             <a id="prev" href="#"></a>
17
             <a id="prev" href="#"></a>
18
             <a id="next" href="#"></a>
18
             <a id="next" href="#"></a>
19
         </nav>
19
         </nav>
20
         <section id="qr-code-area">
20
         <section id="qr-code-area">
21
             <h4>QR code</h4>
21
             <h4>QR code</h4>
22
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
-            <small>Scan or click!</small>
22
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
+            <small>Scan or click</small>
24
         </section>
24
         </section>
25
     </body>
25
     </body>
26
 </html>
26
 </html>

+ 4
- 4
demos/hello-world/poster.html 查看文件

12
     </head>
12
     </head>
13
     <body data-ar-images="mage.webp;cat.webp">
13
     <body data-ar-images="mage.webp;cat.webp">
14
         <nav>
14
         <nav>
15
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
16
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
15
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
16
+            <a id="film" href="video.html"><i></i></a>
17
             <a id="prev" href="#"></a>
17
             <a id="prev" href="#"></a>
18
             <a id="next" href="#"></a>
18
             <a id="next" href="#"></a>
19
         </nav>
19
         </nav>
20
         <section id="qr-code-area">
20
         <section id="qr-code-area">
21
             <h4>QR code</h4>
21
             <h4>QR code</h4>
22
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
-            <small>Scan or click!</small>
22
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
+            <small>Scan or click</small>
24
         </section>
24
         </section>
25
     </body>
25
     </body>
26
 </html>
26
 </html>

+ 4
- 4
demos/pointer-demo/poster.html 查看文件

12
     </head>
12
     </head>
13
     <body data-ar-images="mage.webp">
13
     <body data-ar-images="mage.webp">
14
         <nav>
14
         <nav>
15
-            <a id="get" href="https://encantar.dev/download" target="_blank" rel="external">Get encantar.js</a>
16
-            <a id="like" href="https://encantar.dev/support-my-work" target="_blank"><i></i></a>
15
+            <a id="get" href="https://encantar.dev">Get encantar.js</a>
16
+            <a id="film" href="video.html"><i></i></a>
17
             <a id="prev" href="#"></a>
17
             <a id="prev" href="#"></a>
18
             <a id="next" href="#"></a>
18
             <a id="next" href="#"></a>
19
         </nav>
19
         </nav>
20
         <section id="qr-code-area">
20
         <section id="qr-code-area">
21
             <h4>QR code</h4>
21
             <h4>QR code</h4>
22
-            <a id="video-preview" href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
-            <small>Scan or click!</small>
22
+            <a href="index.html"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
23
+            <small>Scan or click</small>
24
         </section>
24
         </section>
25
     </body>
25
     </body>
26
 </html>
26
 </html>

Loading…
取消
儲存