|
| 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: background 0.2s, color 0.2s, border-color 0.2s; |
| 72 | + cursor: pointer; |
| 73 | + display: flex; |
| 74 | + align-items: center; |
| 75 | + justify-content: center; |
| 76 | + font-size: 16px; |
| 77 | + line-height: 20px; |
| 78 | + font-weight: 500; |
| 79 | +} |
| 80 | + |
| 81 | +a.primary { |
| 82 | + background: var(--foreground); |
| 83 | + color: var(--background); |
| 84 | + gap: 8px; |
| 85 | +} |
| 86 | + |
| 87 | +a.secondary { |
| 88 | + border-color: var(--gray-alpha-200); |
| 89 | + min-width: 158px; |
| 90 | +} |
| 91 | + |
| 92 | +.footer { |
| 93 | + grid-row-start: 3; |
| 94 | + display: flex; |
| 95 | + gap: 24px; |
| 96 | +} |
| 97 | + |
| 98 | +.footer a { |
| 99 | + display: flex; |
| 100 | + align-items: center; |
| 101 | + gap: 8px; |
| 102 | +} |
| 103 | + |
| 104 | +.footer img { |
| 105 | + flex-shrink: 0; |
| 106 | +} |
| 107 | + |
| 108 | +/* Enable hover only on non-touch devices */ |
| 109 | +@media (hover: hover) and (pointer: fine) { |
| 110 | + a.primary:hover { |
| 111 | + background: var(--button-primary-hover); |
| 112 | + border-color: transparent; |
| 113 | + } |
| 114 | + |
| 115 | + a.secondary:hover { |
| 116 | + background: var(--button-secondary-hover); |
| 117 | + border-color: transparent; |
| 118 | + } |
| 119 | + |
| 120 | + .footer a:hover { |
| 121 | + text-decoration: underline; |
| 122 | + text-underline-offset: 4px; |
| 123 | + } |
| 124 | +} |
| 125 | + |
| 126 | +@media (max-width: 600px) { |
| 127 | + .page { |
| 128 | + padding: 32px; |
| 129 | + padding-bottom: 80px; |
| 130 | + } |
| 131 | + |
| 132 | + .main { |
| 133 | + align-items: center; |
| 134 | + } |
| 135 | + |
| 136 | + .main ol { |
| 137 | + text-align: center; |
| 138 | + } |
| 139 | + |
| 140 | + .ctas { |
| 141 | + flex-direction: column; |
| 142 | + } |
| 143 | + |
| 144 | + .ctas a { |
| 145 | + font-size: 14px; |
| 146 | + height: 40px; |
| 147 | + padding: 0 16px; |
| 148 | + } |
| 149 | + |
| 150 | + a.secondary { |
| 151 | + min-width: auto; |
| 152 | + } |
| 153 | + |
| 154 | + .footer { |
| 155 | + flex-wrap: wrap; |
| 156 | + align-items: center; |
| 157 | + justify-content: center; |
| 158 | + } |
| 159 | +} |
| 160 | + |
| 161 | +@media (prefers-color-scheme: dark) { |
| 162 | + .logo { |
| 163 | + filter: invert(); |
| 164 | + } |
| 165 | +} |
0 commit comments