|
| 1 | +@tailwind base; |
| 2 | +@tailwind components; |
| 3 | +@tailwind utilities; |
| 4 | + |
| 5 | +/* |
| 6 | + Note: The styles for this gradient grid background is heavily inspired by the creator of this amazing site (https://dub.sh) – all credits go to them! |
| 7 | +*/ |
| 8 | + |
| 9 | +.main { |
| 10 | + width: 100vw; |
| 11 | + min-height: 100vh; |
| 12 | + position: fixed; |
| 13 | + display: flex; |
| 14 | + justify-content: center; |
| 15 | + padding: 120px 24px 160px 24px; |
| 16 | + pointer-events: none; |
| 17 | +} |
| 18 | + |
| 19 | +.main:before { |
| 20 | + background: radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%); |
| 21 | + position: absolute; |
| 22 | + content: ""; |
| 23 | + z-index: 2; |
| 24 | + width: 100%; |
| 25 | + height: 100%; |
| 26 | + top: 0; |
| 27 | +} |
| 28 | + |
| 29 | +.main:after { |
| 30 | + content: ""; |
| 31 | + background-image: url("/src/assets/grid.svg"); |
| 32 | + z-index: 1; |
| 33 | + position: absolute; |
| 34 | + width: 100%; |
| 35 | + height: 100%; |
| 36 | + top: 0; |
| 37 | + opacity: 0.4; |
| 38 | + filter: invert(1); |
| 39 | +} |
| 40 | + |
| 41 | +.gradient { |
| 42 | + height: fit-content; |
| 43 | + z-index: 3; |
| 44 | + width: 100%; |
| 45 | + max-width: 640px; |
| 46 | + background-image: radial-gradient( |
| 47 | + at 27% 37%, |
| 48 | + hsla(215, 98%, 61%, 1) 0px, |
| 49 | + transparent 0% |
| 50 | + ), |
| 51 | + radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 1) 0px, transparent 50%), |
| 52 | + radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%), |
| 53 | + radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%), |
| 54 | + radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 1) 0px, transparent 50%), |
| 55 | + radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%), |
| 56 | + radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%); |
| 57 | + position: absolute; |
| 58 | + content: ""; |
| 59 | + width: 100%; |
| 60 | + height: 100%; |
| 61 | + filter: blur(100px) saturate(150%); |
| 62 | + top: 80px; |
| 63 | + opacity: 0.15; |
| 64 | +} |
| 65 | + |
| 66 | +@media screen and (max-width: 640px) { |
| 67 | + .main { |
| 68 | + padding: 0; |
| 69 | + } |
| 70 | +} |
| 71 | + |
| 72 | +/* Tailwind Styles */ |
| 73 | + |
| 74 | +.app { |
| 75 | + @apply relative z-10 flex justify-center items-center flex-col max-w-7xl mx-auto sm:px-16 px-6; |
| 76 | +} |
| 77 | + |
| 78 | +.github_btn { |
| 79 | + @apply rounded-l-full border border-white bg-[#171515] py-1.5 px-5 text-sm text-white transition-all hover:bg-[#8b8a8a] hover:border-[#8b8a8a] hover:text-black; |
| 80 | +} |
| 81 | + |
| 82 | +.rapidapi_btn { |
| 83 | + @apply rounded-r-full border border-white bg-[#0053D7] py-1.5 px-5 text-sm text-white transition-all hover:bg-[#80a9eb] hover:border-[#80a9eb] hover:text-black; |
| 84 | +} |
| 85 | + |
| 86 | +.head_text { |
| 87 | + @apply mt-5 text-5xl font-extrabold leading-[1.15] text-black sm:text-6xl text-center; |
| 88 | +} |
| 89 | + |
| 90 | +.orange_gradient { |
| 91 | + @apply bg-gradient-to-r from-amber-500 via-orange-600 to-yellow-500 bg-clip-text text-transparent; |
| 92 | +} |
| 93 | + |
| 94 | +.desc { |
| 95 | + @apply mt-5 text-lg text-gray-600 sm:text-xl text-center max-w-2xl; |
| 96 | +} |
| 97 | + |
| 98 | +.url_input { |
| 99 | + @apply block w-full rounded-md border border-gray-200 bg-white py-2.5 pl-10 pr-12 text-sm shadow-lg font-satoshi font-medium focus:border-black focus:outline-none focus:ring-0; |
| 100 | +} |
| 101 | + |
| 102 | +.submit_btn { |
| 103 | + @apply hover:border-gray-700 hover:text-gray-700 absolute inset-y-0 right-0 my-1.5 mr-1.5 flex w-10 items-center justify-center rounded border border-gray-200 font-sans text-sm font-medium text-gray-400; |
| 104 | +} |
| 105 | + |
| 106 | +.link_card { |
| 107 | + @apply p-3 flex justify-start items-center flex-row bg-white border border-gray-200 gap-3 rounded-lg cursor-pointer; |
| 108 | +} |
| 109 | + |
| 110 | +.copy_btn { |
| 111 | + @apply w-7 h-7 rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur flex justify-center items-center cursor-pointer; |
| 112 | +} |
| 113 | + |
| 114 | +.blue_gradient { |
| 115 | + @apply font-black bg-gradient-to-r from-blue-600 to-cyan-600 bg-clip-text text-transparent; |
| 116 | +} |
| 117 | + |
| 118 | +.summary_box { |
| 119 | + @apply rounded-xl border border-gray-200 bg-white/20 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur p-4; |
| 120 | +} |
0 commit comments