LaoeGaoci | a82dfe9 | 2025-04-01 20:17:11 +0800 | [diff] [blame^] | 1 | .page { |
| 2 | --gray-rgb: 0, 0, 0; |
| 3 | --gray-alpha-200: rgba(var(--gray-rgb), 0.08); |
| 4 | --gray-alpha-100: rgba(var(--gray-rgb), 0.05); |
| 5 | |
| 6 | --button-primary-hover: #383838; |
| 7 | --button-secondary-hover: #f2f2f2; |
| 8 | |
| 9 | display: grid; |
| 10 | grid-template-rows: 20px 1fr 20px; |
| 11 | align-items: center; |
| 12 | justify-items: center; |
| 13 | min-height: 100svh; |
| 14 | padding: 80px; |
| 15 | gap: 64px; |
| 16 | font-family: var(--font-geist-sans); |
| 17 | } |
| 18 | |
| 19 | @media (prefers-color-scheme: dark) { |
| 20 | .page { |
| 21 | --gray-rgb: 255, 255, 255; |
| 22 | --gray-alpha-200: rgba(var(--gray-rgb), 0.145); |
| 23 | --gray-alpha-100: rgba(var(--gray-rgb), 0.06); |
| 24 | |
| 25 | --button-primary-hover: #ccc; |
| 26 | --button-secondary-hover: #1a1a1a; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | .main { |
| 31 | display: flex; |
| 32 | flex-direction: column; |
| 33 | gap: 32px; |
| 34 | grid-row-start: 2; |
| 35 | } |
| 36 | |
| 37 | .main ol { |
| 38 | font-family: var(--font-geist-mono); |
| 39 | padding-left: 0; |
| 40 | margin: 0; |
| 41 | font-size: 14px; |
| 42 | line-height: 24px; |
| 43 | letter-spacing: -0.01em; |
| 44 | list-style-position: inside; |
| 45 | } |
| 46 | |
| 47 | .main li:not(:last-of-type) { |
| 48 | margin-bottom: 8px; |
| 49 | } |
| 50 | |
| 51 | .main code { |
| 52 | font-family: inherit; |
| 53 | background: var(--gray-alpha-100); |
| 54 | padding: 2px 4px; |
| 55 | border-radius: 4px; |
| 56 | font-weight: 600; |
| 57 | } |
| 58 | |
| 59 | .ctas { |
| 60 | display: flex; |
| 61 | gap: 16px; |
| 62 | } |
| 63 | |
| 64 | .ctas a { |
| 65 | appearance: none; |
| 66 | border-radius: 128px; |
| 67 | height: 48px; |
| 68 | padding: 0 20px; |
| 69 | border: none; |
| 70 | border: 1px solid transparent; |
| 71 | transition: |
| 72 | background 0.2s, |
| 73 | color 0.2s, |
| 74 | border-color 0.2s; |
| 75 | cursor: pointer; |
| 76 | display: flex; |
| 77 | align-items: center; |
| 78 | justify-content: center; |
| 79 | font-size: 16px; |
| 80 | line-height: 20px; |
| 81 | font-weight: 500; |
| 82 | } |
| 83 | |
| 84 | a.primary { |
| 85 | background: var(--foreground); |
| 86 | color: var(--background); |
| 87 | gap: 8px; |
| 88 | } |
| 89 | |
| 90 | a.secondary { |
| 91 | border-color: var(--gray-alpha-200); |
| 92 | min-width: 158px; |
| 93 | } |
| 94 | |
| 95 | .footer { |
| 96 | grid-row-start: 3; |
| 97 | display: flex; |
| 98 | gap: 24px; |
| 99 | } |
| 100 | |
| 101 | .footer a { |
| 102 | display: flex; |
| 103 | align-items: center; |
| 104 | gap: 8px; |
| 105 | } |
| 106 | |
| 107 | .footer img { |
| 108 | flex-shrink: 0; |
| 109 | } |
| 110 | |
| 111 | /* Enable hover only on non-touch devices */ |
| 112 | @media (hover: hover) and (pointer: fine) { |
| 113 | a.primary:hover { |
| 114 | background: var(--button-primary-hover); |
| 115 | border-color: transparent; |
| 116 | } |
| 117 | |
| 118 | a.secondary:hover { |
| 119 | background: var(--button-secondary-hover); |
| 120 | border-color: transparent; |
| 121 | } |
| 122 | |
| 123 | .footer a:hover { |
| 124 | text-decoration: underline; |
| 125 | text-underline-offset: 4px; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | @media (max-width: 600px) { |
| 130 | .page { |
| 131 | padding: 32px; |
| 132 | padding-bottom: 80px; |
| 133 | } |
| 134 | |
| 135 | .main { |
| 136 | align-items: center; |
| 137 | } |
| 138 | |
| 139 | .main ol { |
| 140 | text-align: center; |
| 141 | } |
| 142 | |
| 143 | .ctas { |
| 144 | flex-direction: column; |
| 145 | } |
| 146 | |
| 147 | .ctas a { |
| 148 | font-size: 14px; |
| 149 | height: 40px; |
| 150 | padding: 0 16px; |
| 151 | } |
| 152 | |
| 153 | a.secondary { |
| 154 | min-width: auto; |
| 155 | } |
| 156 | |
| 157 | .footer { |
| 158 | flex-wrap: wrap; |
| 159 | align-items: center; |
| 160 | justify-content: center; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | @media (prefers-color-scheme: dark) { |
| 165 | .logo { |
| 166 | filter: invert(); |
| 167 | } |
| 168 | } |