瀏覽代碼

Update the design of the website

customisations
alemart 2 月之前
父節點
當前提交
a85446f35a
共有 4 個文件被更改,包括 33 次插入15 次删除
  1. 二進制
      docs/img/aframe-cat.mp4
  2. 二進制
      docs/img/aframe-cat.webm
  3. 二進制
      docs/img/aframe-cat.webp
  4. 33
    15
      docs_overrides/index.html

二進制
docs/img/aframe-cat.mp4 查看文件


二進制
docs/img/aframe-cat.webm 查看文件


二進制
docs/img/aframe-cat.webp 查看文件


+ 33
- 15
docs_overrides/index.html 查看文件

42
 .md-footer a {
42
 .md-footer a {
43
   color: var(--md-footer-fg-color--light);
43
   color: var(--md-footer-fg-color--light);
44
 }
44
 }
45
+.md-typeset h1 {
46
+  /*font-weight: 400;*/
47
+}
48
+.md-copyright {
49
+  color: var(--md-footer-fg-color--light);
50
+}
45
 
51
 
46
 
52
 
47
 
53
 
48
 
54
 
49
 #title {
55
 #title {
50
   text-align: center;
56
   text-align: center;
51
-  padding: 1.5rem var(--hpad);
52
-  background-image: linear-gradient(180deg,rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 1) 100%), url('img/enchanted-sky.webp');
57
+  padding: 1.0rem var(--hpad) 0.5rem var(--hpad);
58
+  background-image: linear-gradient(180deg,rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%), url('img/enchanted-sky.webp');
53
   background-size: cover;
59
   background-size: cover;
54
   background-position: center;
60
   background-position: center;
55
 }
61
 }
57
   margin: 0;
63
   margin: 0;
58
   font-size: 3.0rem;
64
   font-size: 3.0rem;
59
   font-weight: bold;
65
   font-weight: bold;
60
-  color: #ffd;
66
+  color: #ffc;
61
   text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
67
   text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
62
 }
68
 }
63
 #title h2 {
69
 #title h2 {
64
-  margin: 0.5rem 0;
70
+  margin: 0.5rem 0 0 0;
65
   font-size: 1.35rem;
71
   font-size: 1.35rem;
72
+  font-weight: bold;
73
+  color: #ffc;
74
+  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
75
+}
76
+#title video {
77
+  width: 100%;
78
+  max-width: var(--max-width);
79
+  border-radius: var(--border-radius);
80
+  margin: 1rem auto;
66
 }
81
 }
67
 
82
 
68
 
83
 
77
   text-align: center;
92
   text-align: center;
78
   font-size: 1.2rem;
93
   font-size: 1.2rem;
79
   line-height: 2.5;
94
   line-height: 2.5;
80
-  margin-left: auto;
81
-  margin-right: auto;
82
-  margin-top: 1rem;
95
+  margin: 0 auto 1rem auto;
83
   padding: 3px;
96
   padding: 3px;
84
   max-width: var(--max-width);
97
   max-width: var(--max-width);
85
   background-color: rgba(255, 255, 255, 0.2);
98
   background-color: rgba(255, 255, 255, 0.2);
86
   box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
99
   box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
87
   border-radius: var(--border-radius);
100
   border-radius: var(--border-radius);
101
+  /*border: 2px outset rgba(126, 86, 194, 0.2);*/
88
 }
102
 }
89
 #pay > #amounts {
103
 #pay > #amounts {
90
   display: flex;
104
   display: flex;
342
 @media screen and (min-width: 768px) {
356
 @media screen and (min-width: 768px) {
343
   /*#pay { justify-content: space-around; }*/
357
   /*#pay { justify-content: space-around; }*/
344
   #title h1 { font-size: 4.0rem; }
358
   #title h1 { font-size: 4.0rem; }
345
-  #title h2 { font-size: 1.55rem; }
359
+  #title h2 { font-size: 1.6rem; }
346
   #topics { text-align: justify; }
360
   #topics { text-align: justify; }
347
   #topics > article img { margin-top: initial; }
361
   #topics > article img { margin-top: initial; }
348
   #topics > article { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
362
   #topics > article { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
419
 
433
 
420
 <header id="title">
434
 <header id="title">
421
   <h1>encantar.js</h1>
435
   <h1>encantar.js</h1>
422
-  <h2>High performance open source Web AR &mdash; no app required!</h2>
436
+  <h2>High performance Web AR framework &mdash; no app required!</h2>
437
+  <video autoplay loop muted playsinline controls poster="img/aframe-cat.webp">
438
+    <source src="img/aframe-cat.mp4" type="video/mp4" />
439
+    <source src="img/aframe-cat.webm" type="video/webm" />
440
+  </video>
423
   <form id="pay" method="post" action="https://api.encantar.dev/v1/pay" autocomplete="off" onsubmit="return this.tier.value != 'custom' || this['custom-amount'].value != ''">
441
   <form id="pay" method="post" action="https://api.encantar.dev/v1/pay" autocomplete="off" onsubmit="return this.tier.value != 'custom' || this['custom-amount'].value != ''">
424
     <span>Pay What You Can:</span>
442
     <span>Pay What You Can:</span>
425
     <span id="amounts">
443
     <span id="amounts">
453
       <a href="demos/hello-aframe/poster.html" target="_blank" class="md-button" id="try-demo" data-goatcounter-click>Try a demo</a>
471
       <a href="demos/hello-aframe/poster.html" target="_blank" class="md-button" id="try-demo" data-goatcounter-click>Try a demo</a>
454
     </div>
472
     </div>
455
     <div>
473
     <div>
456
-      <img src="img/demo-cat.gif" alt="A cat in Augmented Reality" loading="lazy">
474
+      <img src="img/mage.gif" alt="A mage in Augmented Reality" loading="lazy">
457
     </div>
475
     </div>
458
   </article>
476
   </article>
459
   <article class="reveal">
477
   <article class="reveal">
460
     <div>
478
     <div>
461
       <h1>Turbocharged performance</h1>
479
       <h1>Turbocharged performance</h1>
462
-      <p>A modern web browser is all that is required for a high performance experience, thanks to a powerful combination of GPU acceleration, WebAssembly and mathemagical wizardry! The result? A smooth user experience!</p>
480
+      <p>A modern web browser is all that is required for a high performance experience, thanks to a powerful combination of GPU acceleration, WebAssembly and mathemagical wizardry. The result? A smooth user experience!</p>
463
       <a href="demos/basketball/poster.html" target="_blank" class="md-button" id="play-game" data-goatcounter-click>Play a game</a>
481
       <a href="demos/basketball/poster.html" target="_blank" class="md-button" id="play-game" data-goatcounter-click>Play a game</a>
464
     </div>
482
     </div>
465
     <div>
483
     <div>
473
       <a href="demos/" target="_blank" class="md-button" id="try-more-demos" data-goatcounter-click>Try more demos</a>
491
       <a href="demos/" target="_blank" class="md-button" id="try-more-demos" data-goatcounter-click>Try more demos</a>
474
     </div>
492
     </div>
475
     <div>
493
     <div>
476
-      <img src="img/mage.gif" alt="A mage in Augmented Reality" loading="lazy">
494
+      <img src="img/demo-cat.gif" alt="A cat in Augmented Reality" loading="lazy">
477
     </div>
495
     </div>
478
   </article>
496
   </article>
479
   <article class="reveal">
497
   <article class="reveal">
527
 <section id="download">
545
 <section id="download">
528
   <article>
546
   <article>
529
     <h1>Download encantar.js</h1>
547
     <h1>Download encantar.js</h1>
530
-    <p>encantar.js is created independently by Alexandre Martins and released as open source. Creating an AR engine from scratch is a difficult and time-consuming endeavor. The funds collected help to sponsor the developer. Your support is greatly appreciated! &#x1F60A;</p>
548
+    <p>encantar.js is a WebAR framework created independently by <a href="contact/" target="_blank" id="author-name" data-goatcounter-click>Alexandre Martins</a> and released as open source software. Get your copy and go build something magical with it! &#x1FA84;</p>
531
     <footer>
549
     <footer>
532
-      <a href="#" class="md-button md-button--primary" id="download-pay" data-goatcounter-click>Pay What You Can</a>
550
+      <a href="#pay" class="md-button md-button--primary" id="download-pay" data-goatcounter-click>Pay What You Can</a>
533
       <a href="https://github.com/sponsors/alemart" target="_blank" class="md-button" id="download-sponsor" data-goatcounter-click>Sponsor on GitHub</a>
551
       <a href="https://github.com/sponsors/alemart" target="_blank" class="md-button" id="download-sponsor" data-goatcounter-click>Sponsor on GitHub</a>
534
     </footer>
552
     </footer>
535
   </article>
553
   </article>
553
 
571
 
554
 <footer class="md-footer">
572
 <footer class="md-footer">
555
   <div class="md-copyright">
573
   <div class="md-copyright">
556
-    <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external" id="github-repository" data-goatcounter-click>encantar.js</a>: GPU-accelerated Augmented Reality framework for the web. Copyright &copy; 2022 &ndash; present <a href="https://github.com/alemart" target="_blank" rel="external" id="github-profile" data-goatcounter-click>Alexandre Martins</a>
574
+    encantar.js: GPU-accelerated Augmented Reality framework for the web. Copyright &copy; 2022 &ndash; present Alexandre Martins
557
   </div>
575
   </div>
558
 </footer>
576
 </footer>
559
 
577
 

Loading…
取消
儲存