feat: 添加滑动验证码

This commit is contained in:
landaiqing
2024-04-24 16:29:29 +08:00
parent 46462c4514
commit 773dbe1e7e
10 changed files with 211 additions and 50 deletions

View File

@@ -71,7 +71,15 @@ html {
}
.h1 span {
color: hsl(260 80% 50%);
//color: hsl(260 80% 50%);
display: table;
margin: 0 auto;
font-weight: 800;
font-size: 1em;
background: linear-gradient(330deg, #e05252 0%, #99e052 25%, #52e0e0 50%, #9952e0 75%, #e05252 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
//line-height: 200px;
}
.h2 {
@@ -96,16 +104,16 @@ html {
}
.navbar {
justify-content: center;
justify-content: flex-start;
margin: 0 auto;
display: flex;
width: 80ch;
width: 100vw;
max-width: 100%;
}
.nav button {
width: 44px;
aspect-ratio: 1;
//width: 44px;
//aspect-ratio: 1;
}
.hero {

View File

@@ -2,6 +2,7 @@ import React, { useEffect } from 'react'
import { gsap } from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'
import './index.less'
import SvgIcon from '@/components/SvgIcon/SvgIcon.tsx'
const HomeIndex: React.FC = () => {
useEffect(() => {
document.body.classList.add('body')
@@ -201,48 +202,7 @@ const HomeIndex: React.FC = () => {
href='/login'
target='_blank'
rel='noreferrer noopener'>
<svg
className='w-9'
viewBox='0 0 969 955'
fill='none'
xmlns='http://www.w3.org/2000/svg'>
<circle
cx='161.191'
cy='320.191'
r='133.191'
stroke='currentColor'
strokeWidth='20'></circle>
<circle
cx='806.809'
cy='320.191'
r='133.191'
stroke='currentColor'
strokeWidth='20'></circle>
<circle
cx='695.019'
cy='587.733'
r='31.4016'
fill='currentColor'></circle>
<circle
cx='272.981'
cy='587.733'
r='31.4016'
fill='currentColor'></circle>
<path
d='M564.388 712.083C564.388 743.994 526.035 779.911 483.372 779.911C440.709 779.911 402.356 743.994 402.356 712.083C402.356 680.173 440.709 664.353 483.372 664.353C526.035 664.353 564.388 680.173 564.388 712.083Z'
fill='currentColor'></path>
<rect
x='310.42'
y='448.31'
width='343.468'
height='51.4986'
fill='#FF1E1E'></rect>
<path
fillRule='evenodd'
clipRule='evenodd'
d='M745.643 288.24C815.368 344.185 854.539 432.623 854.539 511.741H614.938V454.652C614.938 433.113 597.477 415.652 575.938 415.652H388.37C366.831 415.652 349.37 433.113 349.37 454.652V511.741L110.949 511.741C110.949 432.623 150.12 344.185 219.845 288.24C289.57 232.295 384.138 200.865 482.744 200.865C581.35 200.865 675.918 232.295 745.643 288.24Z'
fill='currentColor'></path>
</svg>
<SvgIcon name={'schisandra'} size={50} />
</a>
</div>
</nav>