浏览代码

docs: egghead cta (#655)

* docs: add egghead.io course cta

* chore: fix lint

* chore: fix lint
Alvaro Saburido 1 年之前
父节点
当前提交
fbf2de14a4
共有 9 个文件被更改,包括 61 次插入6 次删除
  1. 43 0
      docs/.vitepress/theme/custom.css
  2. 3 1
      docs/de/index.md
  3. 3 1
      docs/es/index.md
  4. 3 1
      docs/fr/index.md
  5. 3 1
      docs/index.md
  6. 3 1
      docs/nl/index.md
  7. 二进制
      docs/public/egghead-icon.png
  8. 0 0
      docs/public/egghead-icon.svg
  9. 3 1
      docs/zh/index.md

+ 43 - 0
docs/.vitepress/theme/custom.css

@@ -59,6 +59,49 @@
   background-color: var(--vp-button-alt-bg);
 }
 
+.VPButton.medium.egghead-cta {
+  border-color: var(--vp-c-border);
+  position: relative;
+}
+
+.VPButton.medium.egghead-cta:hover {
+  border-color: var(--vp-c-border);
+  color: var(--vp-button-brand-text);
+  background-color: var(--vp-c-brand-light);
+}
+
+.VPButton.medium.egghead-cta::before {
+  content: url('/egghead-icon.png');
+  display: inline-block;
+  transform: translateY(0.1rem);
+  margin-right: 0.5rem;
+}
+
+.VPButton.medium.egghead-cta:hover::after {
+  animation: none;
+}
+.VPButton.medium.egghead-cta::after {
+  content: '';
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  /*  background-color: var( --vp-c-dark); */
+  border: 1px solid var(--vp-c-brand);
+  border-radius: 20px;
+  animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
+  z-index: -1;
+}
+
+@keyframes ping {
+  15%,
+  to {
+    transform: scale(1.25, 2);
+    opacity: 0;
+  }
+}
+
 .VPHomeSponsors {
   margin-bottom: 0px !important;
 }

+ 3 - 1
docs/de/index.md

@@ -18,7 +18,9 @@ hero:
     - theme: alt
       text: Warum Tres?
       link: /de/guide/#motivation
-
+    - theme: egghead-cta
+      text: Egghead.io Course
+      link: https://egghead.io/courses/create-interactive-3d-experiences-with-tresjs-004057c2
 features:
   - icon: 💡
     title: Deklarativ

+ 3 - 1
docs/es/index.md

@@ -18,7 +18,9 @@ hero:
     - theme: alt
       text: ¿Por qué Tres?
       link: /es/guide/#motivation
-
+    - theme: egghead-cta
+      text: Egghead.io Course
+      link: https://egghead.io/courses/create-interactive-3d-experiences-with-tresjs-004057c2
 features:
   - icon: 💡
     title: Declarativo

+ 3 - 1
docs/fr/index.md

@@ -18,7 +18,9 @@ hero:
     - theme: alt
       text: Pourquoi Tres?
       link: /fr/guide/#motivation
-
+    - theme: egghead-cta
+      text: Egghead.io Course
+      link: https://egghead.io/courses/create-interactive-3d-experiences-with-tresjs-004057c2
 features:
   - icon: 💡
     title: Déclaratif

+ 3 - 1
docs/index.md

@@ -18,7 +18,9 @@ hero:
     - theme: alt
       text: Why Tres?
       link: /guide/#motivation
-
+    - theme: egghead-cta
+      text: Egghead.io Course
+      link: https://egghead.io/courses/create-interactive-3d-experiences-with-tresjs-004057c2
 features:
   - icon: 💡
     title: Declarative

+ 3 - 1
docs/nl/index.md

@@ -18,7 +18,9 @@ hero:
     - theme: alt
       text: Waarom Tres?
       link: /nl/guide/#motivation
-
+    - theme: egghead-cta
+      text: Egghead.io Course
+      link: https://egghead.io/courses/create-interactive-3d-experiences-with-tresjs-004057c2
 features:
   - icon: 💡
     title: Declaratief

二进制
docs/public/egghead-icon.png


文件差异内容过多而无法显示
+ 0 - 0
docs/public/egghead-icon.svg


+ 3 - 1
docs/zh/index.md

@@ -18,7 +18,9 @@ hero:
     - theme: alt
       text: 为什么是 Tres ?
       link: /zh/guide/#motivation
-
+    - theme: egghead-cta
+      text: Egghead.io Course
+      link: https://egghead.io/courses/create-interactive-3d-experiences-with-tresjs-004057c2
 features:
   - icon: 💡
     title: 声明式

部分文件因为文件数量过多而无法显示