diff --git a/settings.yaml b/settings.yaml index 4222bc7e..7fe598f9 100644 --- a/settings.yaml +++ b/settings.yaml @@ -93,6 +93,15 @@ spec: value: true - label: 隐藏 value: false + - $formkit: repeater + name: typed + label: 打字机显示的文字 + value: [ ] + children: + - $formkit: text + name: text + label: 文字 + placeholder: 请输入文字 - $formkit: attachment name: index_img if: $get(enable_above).value diff --git a/templates/assets/css/fullPage.css b/templates/assets/css/fullPage.css index 75f9e8be..cbe706dd 100644 --- a/templates/assets/css/fullPage.css +++ b/templates/assets/css/fullPage.css @@ -1,8 +1,8 @@ :root { - --light-grey:rgba(255,255,255,0.7); - --white: rgba(255,255,255,0.9); + --light-grey: rgba(255, 255, 255, 0.7); + --white: rgba(255, 255, 255, 0.9); } @media screen and (max-width: 768px) { @@ -14,14 +14,16 @@ } -.back-home-button{ - color: rgba(255,255,255,0.7); +.back-home-button { + color: rgba(255, 255, 255, 0.7); } -#nav #site-name{ + +#nav #site-name { color: var(--light-grey); } -#nav .site-page{ - color: rgba(255,255,255,0.7); + +#nav .site-page { + color: rgba(255, 255, 255, 0.7); } #page-header.full_page { @@ -29,12 +31,14 @@ background-attachment: fixed; border-radius: 0; } + #page-header.full_page #site-info { position: absolute; top: 43%; padding: 0 10px; width: 100%; } + #page-header #scroll-down { position: absolute; bottom: 0; @@ -60,6 +64,7 @@ -webkit-justify-content: center; justify-content: center; } + #page-header #scroll-down .scroll-down-effects { position: relative; width: 100%; @@ -132,4 +137,8 @@ .pl-blur { /* 小图锯齿多,增加高斯模糊 */ filter: blur(50px); +} + +#nav a { + color: var(--light-grey); } \ No newline at end of file diff --git a/templates/modules/header/index-img.html b/templates/modules/header/index-img.html index 58a9fe8d..6b3b44e1 100644 --- a/templates/modules/header/index-img.html +++ b/templates/modules/header/index-img.html @@ -3,6 +3,7 @@ +
@@ -11,12 +12,187 @@

[[${site.title}]]

+
+ + +
+ .typed-cursor { + opacity: 1; + } + + .typed-cursor.typed-cursor--blink { + animation: typedjsBlink 0.7s infinite; + -webkit-animation: typedjsBlink 0.7s infinite; + animation: typedjsBlink 0.7s infinite; + } + + @keyframes typedjsBlink { + 50% { + opacity: 0.0; + } + } + + @-webkit-keyframes typedjsBlink { + 0% { + opacity: 1; + } + 50% { + opacity: 0.0; + } + 100% { + opacity: 1; + } + } + + #greetingBox { + position: fixed; + top: 10px; + left: 15%; + width: 400px; + text-align: center; + z-index: 999; + pointer-events: none + } + + #greeting { + display: inline-block; + position: relative; + opacity: 0; + top: -110px; + padding: 5px 40px; + border-radius: 50px; + background-color: #fff; + color: #000; + font-size: small; + transition: .5s; + box-shadow: rgb(0 0 0 / 5%) 0 10px 20px + } + + #greeting.shown { + opacity: 1; + top: 0 + } + + +