index.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. [data-page="home"] {
  2. --color-bg: oklch(0.2097 0.008 274.53);
  3. --color-border: oklch(0.46 0.02 269.88);
  4. --color-text: #ffffff;
  5. --color-text-secondary: oklch(0.72 0.01 270.15);
  6. --color-text-dimmed: hsl(224, 7%, 46%);
  7. padding: var(--space-6);
  8. font-family: var(--font-mono);
  9. color: var(--color-text);
  10. a {
  11. color: var(--color-text);
  12. text-decoration: underline;
  13. text-underline-offset: var(--space-0-75);
  14. }
  15. background: var(--color-bg);
  16. position: fixed;
  17. overflow-y: scroll;
  18. inset: 0;
  19. [data-component="content"] {
  20. max-width: 67.5rem;
  21. margin: 0 auto;
  22. border: 2px solid var(--color-border);
  23. }
  24. [data-component="top"] {
  25. padding: var(--space-12);
  26. display: flex;
  27. flex-direction: column;
  28. align-items: start;
  29. gap: var(--space-4);
  30. [data-slot="logo"] {
  31. height: 70px;
  32. }
  33. [data-slot="title"] {
  34. font-size: var(--font-size-2xl);
  35. text-transform: uppercase;
  36. }
  37. }
  38. [data-component="cta"] {
  39. height: var(--space-19);
  40. border-top: 2px solid var(--color-border);
  41. display: flex;
  42. [data-slot="left"] {
  43. display: flex;
  44. padding: 0 var(--space-12);
  45. text-transform: uppercase;
  46. text-decoration: underline;
  47. align-items: center;
  48. justify-content: center;
  49. text-underline-offset: var(--space-0-75);
  50. border-right: 2px solid var(--color-border);
  51. }
  52. [data-slot="right"] {
  53. flex: 1;
  54. display: flex;
  55. align-items: center;
  56. justify-content: center;
  57. gap: var(--space-2-5);
  58. padding: 0 var(--space-6);
  59. }
  60. [data-slot="command"] {
  61. all: unset;
  62. display: flex;
  63. align-items: center;
  64. cursor: pointer;
  65. color: var(--color-text-secondary);
  66. font-size: var(--font-size-lg);
  67. font-family: var(--font-mono);
  68. gap: var(--space-2);
  69. }
  70. [data-slot="highlight"] {
  71. color: var(--color-text);
  72. font-weight: 500;
  73. }
  74. }
  75. [data-component="features"] {
  76. border-top: 2px solid var(--color-border);
  77. padding: var(--space-12);
  78. [data-slot="list"] {
  79. padding-left: var(--space-4);
  80. margin: 0;
  81. list-style: disc;
  82. li {
  83. margin-bottom: var(--space-4);
  84. strong {
  85. text-transform: uppercase;
  86. font-weight: 600;
  87. }
  88. }
  89. li:last-child {
  90. margin-bottom: 0;
  91. }
  92. }
  93. }
  94. [data-component="install"] {
  95. border-top: 2px solid var(--color-border);
  96. display: grid;
  97. grid-template-columns: 1fr 1fr;
  98. grid-template-rows: 1fr 1fr;
  99. @media (max-width: 40rem) {
  100. grid-template-columns: 1fr;
  101. grid-template-rows: auto;
  102. }
  103. }
  104. [data-component="title"] {
  105. letter-spacing: -0.03125rem;
  106. text-transform: uppercase;
  107. font-weight: 400;
  108. font-size: var(--font-size-md);
  109. flex-shrink: 0;
  110. color: oklch(0.55 0.02 269.87);
  111. }
  112. [data-component="method"] {
  113. padding: var(--space-4) var(--space-6);
  114. display: flex;
  115. flex-direction: column;
  116. align-items: start;
  117. gap: var(--space-3);
  118. &:nth-child(1) {
  119. }
  120. &:nth-child(2) {
  121. border-left: 2px solid var(--color-border);
  122. }
  123. &:nth-child(3) {
  124. border-top: 2px solid var(--color-border);
  125. }
  126. &:nth-child(4) {
  127. border-top: 2px solid var(--color-border);
  128. border-left: 2px solid var(--color-border);
  129. }
  130. [data-slot="button"] {
  131. all: unset;
  132. cursor: pointer;
  133. display: flex;
  134. align-items: center;
  135. color: var(--color-text-secondary);
  136. gap: var(--space-2);
  137. strong {
  138. color: var(--color-text);
  139. font-weight: 500;
  140. }
  141. }
  142. }
  143. [data-component="screenshots"] {
  144. border-top: 2px solid var(--color-border);
  145. display: grid;
  146. grid-template-columns: 1fr 1fr;
  147. gap: 0;
  148. [data-slot="left"] {
  149. padding: var(--space-8) var(--space-6);
  150. display: flex;
  151. flex-direction: column;
  152. img {
  153. width: 100%;
  154. height: "auto";
  155. }
  156. }
  157. [data-slot="right"] {
  158. display: grid;
  159. grid-template-rows: 1fr 1fr;
  160. border-left: 2px solid var(--color-border);
  161. }
  162. [data-slot="filler"] {
  163. display: flex;
  164. flex-grow: 1;
  165. align-items: center;
  166. justify-content: center;
  167. }
  168. [data-slot="cell"] {
  169. padding: var(--space-8) var(--space-6);
  170. display: flex;
  171. flex-direction: column;
  172. gap: var(--space-4);
  173. &:nth-child(2) {
  174. border-top: 2px solid var(--color-border);
  175. }
  176. img {
  177. width: 80%;
  178. height: "auto";
  179. }
  180. }
  181. }
  182. [data-component="copy-status"] {
  183. [data-slot="copy"] {
  184. display: block;
  185. width: var(--space-4);
  186. height: var(--space-4);
  187. color: var(--color-text-dimmed);
  188. [data-copied] & {
  189. display: none;
  190. }
  191. }
  192. [data-slot="check"] {
  193. display: none;
  194. width: var(--space-4);
  195. height: var(--space-4);
  196. color: white;
  197. [data-copied] & {
  198. display: block;
  199. }
  200. }
  201. }
  202. [data-component="footer"] {
  203. border-top: 2px solid var(--color-border);
  204. display: grid;
  205. grid-template-columns: 1fr 1fr 1fr;
  206. font-size: var(--font-size-lg);
  207. height: var(--space-20);
  208. [data-slot="cell"] {
  209. display: flex;
  210. align-items: center;
  211. justify-content: center;
  212. border-right: 2px solid var(--color-border);
  213. text-transform: uppercase;
  214. &:last-child {
  215. border-right: none;
  216. }
  217. }
  218. }
  219. }