page.module.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. .main {
  2. display: flex;
  3. flex-direction: column;
  4. justify-content: space-between;
  5. align-items: center;
  6. padding: 6rem;
  7. min-height: 100vh;
  8. }
  9. .description {
  10. display: inherit;
  11. justify-content: inherit;
  12. align-items: inherit;
  13. font-size: 0.85rem;
  14. max-width: var(--max-width);
  15. width: 100%;
  16. z-index: 2;
  17. font-family: var(--font-mono);
  18. }
  19. .description a {
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. gap: 0.5rem;
  24. }
  25. .description p {
  26. position: relative;
  27. margin: 0;
  28. padding: 1rem;
  29. background-color: rgba(var(--callout-rgb), 0.5);
  30. border: 1px solid rgba(var(--callout-border-rgb), 0.3);
  31. border-radius: var(--border-radius);
  32. }
  33. .code {
  34. font-weight: 700;
  35. font-family: var(--font-mono);
  36. }
  37. .grid {
  38. display: grid;
  39. grid-template-columns: repeat(3, minmax(33%, auto));
  40. width: var(--max-width);
  41. max-width: 100%;
  42. }
  43. .card {
  44. padding: 1rem 1.2rem;
  45. border-radius: var(--border-radius);
  46. background: rgba(var(--card-rgb), 0);
  47. border: 1px solid rgba(var(--card-border-rgb), 0);
  48. transition: background 200ms, border 200ms;
  49. }
  50. .card span {
  51. display: inline-block;
  52. transition: transform 200ms;
  53. }
  54. .card h2 {
  55. font-weight: 600;
  56. margin-bottom: 0.7rem;
  57. }
  58. .card p {
  59. margin: 0;
  60. opacity: 0.6;
  61. font-size: 0.9rem;
  62. line-height: 1.5;
  63. max-width: 34ch;
  64. }
  65. .center {
  66. display: flex;
  67. justify-content: center;
  68. align-items: center;
  69. position: relative;
  70. padding: 4rem 0;
  71. }
  72. .center::before {
  73. background: var(--secondary-glow);
  74. border-radius: 50%;
  75. width: 480px;
  76. height: 360px;
  77. margin-left: -400px;
  78. }
  79. .center::after {
  80. background: var(--primary-glow);
  81. width: 240px;
  82. height: 180px;
  83. z-index: -1;
  84. }
  85. .center::before,
  86. .center::after {
  87. content: '';
  88. left: 50%;
  89. position: absolute;
  90. filter: blur(45px);
  91. transform: translateZ(0);
  92. }
  93. .logo,
  94. .thirteen {
  95. position: relative;
  96. }
  97. .thirteen {
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. width: 75px;
  102. height: 75px;
  103. padding: 25px 10px;
  104. margin-left: 16px;
  105. transform: translateZ(0);
  106. border-radius: var(--border-radius);
  107. overflow: hidden;
  108. box-shadow: 0px 2px 8px -1px #0000001a;
  109. }
  110. .thirteen::before,
  111. .thirteen::after {
  112. content: '';
  113. position: absolute;
  114. z-index: -1;
  115. }
  116. /* Conic Gradient Animation */
  117. .thirteen::before {
  118. animation: 6s rotate linear infinite;
  119. width: 200%;
  120. height: 200%;
  121. background: var(--tile-border);
  122. }
  123. /* Inner Square */
  124. .thirteen::after {
  125. inset: 0;
  126. padding: 1px;
  127. border-radius: var(--border-radius);
  128. background: linear-gradient(to bottom right,
  129. rgba(var(--tile-start-rgb), 1),
  130. rgba(var(--tile-end-rgb), 1));
  131. background-clip: content-box;
  132. }
  133. /* Enable hover only on non-touch devices */
  134. @media (hover: hover) and (pointer: fine) {
  135. .card:hover {
  136. background: rgba(var(--card-rgb), 0.1);
  137. border: 1px solid rgba(var(--card-border-rgb), 0.15);
  138. }
  139. .card:hover span {
  140. transform: translateX(4px);
  141. }
  142. }
  143. @media (prefers-reduced-motion) {
  144. .thirteen::before {
  145. animation: none;
  146. }
  147. .card:hover span {
  148. transform: none;
  149. }
  150. }
  151. /* Mobile and Tablet */
  152. @media (max-width: 1023px) {
  153. .content {
  154. padding: 4rem;
  155. }
  156. .grid {
  157. grid-template-columns: 1fr;
  158. margin-bottom: 120px;
  159. max-width: 320px;
  160. text-align: center;
  161. }
  162. .card {
  163. padding: 1rem 2.5rem;
  164. }
  165. .card h2 {
  166. margin-bottom: 0.5rem;
  167. }
  168. .center {
  169. padding: 8rem 0 6rem;
  170. }
  171. .center::before {
  172. transform: none;
  173. height: 300px;
  174. }
  175. .description {
  176. font-size: 0.8rem;
  177. }
  178. .description a {
  179. padding: 1rem;
  180. }
  181. .description p,
  182. .description div {
  183. display: flex;
  184. justify-content: center;
  185. position: fixed;
  186. width: 100%;
  187. }
  188. .description p {
  189. align-items: center;
  190. inset: 0 0 auto;
  191. padding: 2rem 1rem 1.4rem;
  192. border-radius: 0;
  193. border: none;
  194. border-bottom: 1px solid rgba(var(--callout-border-rgb), 0.25);
  195. background: linear-gradient(to bottom,
  196. rgba(var(--background-start-rgb), 1),
  197. rgba(var(--callout-rgb), 0.5));
  198. background-clip: padding-box;
  199. backdrop-filter: blur(24px);
  200. }
  201. .description div {
  202. align-items: flex-end;
  203. pointer-events: none;
  204. inset: auto 0 0;
  205. padding: 2rem;
  206. height: 200px;
  207. background: linear-gradient(to bottom,
  208. transparent 0%,
  209. rgb(var(--background-end-rgb)) 40%);
  210. z-index: 1;
  211. }
  212. }
  213. @media (prefers-color-scheme: dark) {
  214. .vercelLogo {
  215. filter: invert(1);
  216. }
  217. .logo,
  218. .thirteen img {
  219. filter: invert(1) drop-shadow(0 0 0.3rem #ffffff70);
  220. }
  221. }
  222. @keyframes rotate {
  223. from {
  224. transform: rotate(360deg);
  225. }
  226. to {
  227. transform: rotate(0deg);
  228. }
  229. }