|
| 1 | +import styled, { css } from 'styled-components'; |
| 2 | +import { NavLink } from '@kkt/pro'; |
| 3 | + |
| 4 | +export const Wrap = styled.div` |
| 5 | + padding: 100px 0 50px; |
| 6 | +`; |
| 7 | + |
| 8 | +export const Hero = styled.div` |
| 9 | + display: flex; |
| 10 | + flex-direction: column; |
| 11 | + align-items: center; |
| 12 | + margin-bottom: 100px; |
| 13 | + h1 { |
| 14 | + font-size: 100px; |
| 15 | + text-shadow: 0 10px 20px rgba(22, 119, 255, 0.15); |
| 16 | + background: linear-gradient(30deg, #90d5ff 30%, #65a5ff); |
| 17 | + -webkit-background-clip: text; |
| 18 | + background-clip: text; |
| 19 | + font-family: Alibaba-PuHuiTi, Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, |
| 20 | + sans-serif; |
| 21 | + color: #83cdf8; |
| 22 | + } |
| 23 | + p { |
| 24 | + font-size: 20px; |
| 25 | + line-height: 1; |
| 26 | + margin: 30px 0; |
| 27 | + a { |
| 28 | + color: var(--color2); |
| 29 | + text-decoration: none; |
| 30 | + &:hover { |
| 31 | + text-decoration: underline; |
| 32 | + } |
| 33 | + } |
| 34 | + } |
| 35 | +`; |
| 36 | +export const BtnGroup = styled.div` |
| 37 | + display: flex; |
| 38 | + align-items: center; |
| 39 | + justify-content: center; |
| 40 | + margin-top: 50px; |
| 41 | +`; |
| 42 | + |
| 43 | +const defaultBtn = (active?: boolean) => { |
| 44 | + const background = active ? `var(--color2)` : 'transparent'; |
| 45 | + const color = active ? '#fff' : 'var(--color2)'; |
| 46 | + return css` |
| 47 | + text-decoration: none; |
| 48 | + font-size: 18px; |
| 49 | + color: var(--color-fg-default); |
| 50 | + padding: 2px 15px; |
| 51 | + border-radius: 3px; |
| 52 | + height: 50px; |
| 53 | + width: 150px; |
| 54 | + border-radius: 25px; |
| 55 | + background-color: ${background}; |
| 56 | + border: 1px solid var(--color2); |
| 57 | + color: ${color}; |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + justify-content: center; |
| 61 | + opacity: 0.8; |
| 62 | + margin: 0 20px; |
| 63 | + &:hover { |
| 64 | + opacity: 1; |
| 65 | + } |
| 66 | + `; |
| 67 | +}; |
| 68 | + |
| 69 | +export const LinkMenu = styled(NavLink)` |
| 70 | + ${() => defaultBtn(true)} |
| 71 | +`; |
| 72 | + |
| 73 | +export const LinkA = styled.a` |
| 74 | + ${() => defaultBtn()} |
| 75 | +`; |
| 76 | + |
| 77 | +export const Footer = styled.div` |
| 78 | + max-width: 1200px; |
| 79 | + margin: 0 auto; |
| 80 | + margin-top: 50px; |
| 81 | + text-align: center; |
| 82 | + border-top: 1px solid var(--color-border-muted); |
| 83 | + padding-top: 50px; |
| 84 | + h3 { |
| 85 | + font-size: 30px; |
| 86 | + margin: 0; |
| 87 | + } |
| 88 | + p { |
| 89 | + margin: 15px; |
| 90 | + } |
| 91 | +`; |
0 commit comments