styles.tsx 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. import Link from "next/link";
  2. import { Button } from "src/components/Button";
  3. import styled from "styled-components";
  4. export const StyledButtonWrapper = styled.div`
  5. display: flex;
  6. gap: 18px;
  7. @media only screen and (max-width: 768px) {
  8. display: none;
  9. }
  10. `;
  11. export const StyledTwitterQuote = styled.div`
  12. width: 100%;
  13. height: 100%;
  14. blockquote.twitter-tweet {
  15. display: inline-block;
  16. font-family: "Helvetica Neue", Roboto, "Segoe UI", Calibri, sans-serif;
  17. font-size: 12px;
  18. font-weight: bold;
  19. line-height: 16px;
  20. border-color: #eee #ddd #bbb;
  21. border-radius: 5px;
  22. border-style: solid;
  23. border-width: 1px;
  24. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  25. margin: 10px 5px;
  26. padding: 0 16px 16px 16px;
  27. max-width: 468px;
  28. }
  29. blockquote.twitter-tweet p {
  30. font-size: 16px;
  31. font-weight: normal;
  32. line-height: 20px;
  33. }
  34. blockquote.twitter-tweet a {
  35. color: inherit;
  36. font-weight: normal;
  37. text-decoration: none;
  38. outline: 0 none;
  39. }
  40. blockquote.twitter-tweet a:hover,
  41. blockquote.twitter-tweet a:focus {
  42. text-decoration: underline;
  43. }
  44. `;
  45. export const StyledImageWrapper = styled.div`
  46. width: 100%;
  47. height: 100%;
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. `;
  52. export const StyledHome = styled.div`
  53. display: flex;
  54. flex-direction: column;
  55. gap: 8em;
  56. * {
  57. box-sizing: border-box;
  58. }
  59. @media only screen and (max-width: 768px) {
  60. gap: 3em;
  61. }
  62. `;
  63. export const StyledGradientText = styled.span`
  64. background: #ffb76b;
  65. background: linear-gradient(to right, #ffb76b 0%, #ffa73d 30%, #ff7c00 60%, #ff7f04 100%);
  66. background-clip: text;
  67. -webkit-background-clip: text;
  68. -webkit-text-fill-color: transparent;
  69. `;
  70. export const StyledNavbar = styled.nav`
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. width: 100%;
  75. padding: 16px 16px;
  76. gap: 20px;
  77. @media only screen and (max-width: 768px) {
  78. a:first-of-type {
  79. display: none;
  80. }
  81. }
  82. `;
  83. export const StyledHeroSection = styled.section`
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: center;
  87. align-items: center;
  88. gap: 1.5em;
  89. min-height: 40vh;
  90. padding: 0 3%;
  91. h2 {
  92. margin-bottom: 25px;
  93. }
  94. `;
  95. export const StyledNavLink = styled(Link)`
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. font-size: 1rem;
  100. cursor: pointer;
  101. transition: color 0.2s;
  102. &:hover {
  103. font-weight: 500;
  104. color: ${({ theme }) => theme.ORANGE};
  105. }
  106. `;
  107. export const StyledTitle = styled.h1`
  108. font-weight: 900;
  109. margin: 0;
  110. font-size: min(6vw, 86px);
  111. @media only screen and (max-width: 768px) {
  112. font-size: 2.5rem;
  113. }
  114. `;
  115. export const StyledSubTitle = styled.h2`
  116. color: #dedede;
  117. text-align: center;
  118. font-size: 2.5rem;
  119. max-width: 40rem;
  120. margin: 0;
  121. @media only screen and (max-width: 768px) {
  122. font-size: 1.5rem;
  123. }
  124. `;
  125. export const StyledMinorTitle = styled.p`
  126. color: #b4b4b4;
  127. text-align: center;
  128. font-size: 1rem;
  129. margin: 0;
  130. letter-spacing: 1.2px;
  131. @media only screen and (max-width: 992px) {
  132. font-size: 1rem;
  133. }
  134. `;
  135. export const StyledButton = styled(Button)`
  136. background: ${({ status }) => !status && "#a13cc2"};
  137. padding: 12px 24px;
  138. height: 46px;
  139. div {
  140. font-weight: 700;
  141. font-size: 1rem;
  142. }
  143. `;
  144. export const StyledSponsorButton = styled(Button)<{ isBlue?: boolean }>`
  145. background: transparent;
  146. border: 1px solid ${({ isBlue }) => (isBlue ? "#1F9CF0" : "#ee3d48")};
  147. transition: all 200ms;
  148. padding: 12px 24px;
  149. div {
  150. font-weight: 700;
  151. font-size: 16px;
  152. }
  153. svg {
  154. color: ${({ isBlue }) => (isBlue ? "#1F9CF0" : "#ee3d48")};
  155. }
  156. &:hover {
  157. background: ${({ isBlue }) => (isBlue ? "#1F9CF0" : "#ee3d48")};
  158. svg {
  159. color: white;
  160. }
  161. }
  162. `;
  163. export const StyledFeaturesSection = styled.section`
  164. display: grid;
  165. margin: 0 auto;
  166. max-width: 80%;
  167. justify-content: center;
  168. grid-template-columns: repeat(2, 40%);
  169. grid-template-rows: repeat(2, 1fr);
  170. grid-column-gap: 60px;
  171. grid-row-gap: 60px;
  172. @media only screen and (min-width: 1024px) {
  173. max-width: 60%;
  174. }
  175. @media only screen and (max-width: 768px) {
  176. flex-direction: column;
  177. max-width: 80%;
  178. display: flex;
  179. }
  180. `;
  181. export const StyledSectionCard = styled.div`
  182. text-align: center;
  183. flex: 1;
  184. border: 1px solid ${({ theme }) => theme.BACKGROUND_MODIFIER_ACCENT};
  185. background: rgb(48, 0, 65);
  186. background: linear-gradient(
  187. 138deg,
  188. rgba(48, 0, 65, 0.8870141806722689) 0%,
  189. rgba(72, 12, 84, 0.40802258403361347) 33%,
  190. rgba(65, 8, 92, 0.6012998949579832) 100%
  191. );
  192. border-radius: 6px;
  193. padding: 16px;
  194. `;
  195. export const StyledCardTitle = styled.div`
  196. font-weight: 700;
  197. font-size: 1.5rem;
  198. padding: 1.5rem 0 0.5rem;
  199. letter-spacing: 1px;
  200. `;
  201. export const StyledCardIcon = styled.div``;
  202. export const StyledCardDescription = styled.p`
  203. color: #e0e0e0;
  204. text-align: left;
  205. line-height: 1.5rem;
  206. font-size: 0.875rem;
  207. `;
  208. export const StyledFrame = styled.iframe`
  209. width: 100%;
  210. height: 100%;
  211. min-height: 200px;
  212. border: 2px solid ${({ theme }) => theme.PRIMARY};
  213. border-radius: 6px;
  214. @media only screen and (min-width: 768px) {
  215. min-height: 384px;
  216. }
  217. `;
  218. export const StyledPreviewFrame = styled(StyledFrame)`
  219. border: none;
  220. border-left: 2px solid ${({ theme }) => theme.PRIMARY};
  221. border-radius: 0;
  222. height: 476px;
  223. width: 50%;
  224. `;
  225. export const StyledSection = styled.section<{ reverse?: boolean }>`
  226. display: flex;
  227. flex-direction: row;
  228. justify-content: space-between;
  229. max-width: 85%;
  230. margin: 0 auto;
  231. gap: 4rem;
  232. line-height: 1.5;
  233. padding: 50px 3%;
  234. & > div {
  235. width: 100%;
  236. }
  237. @media only screen and (max-width: 1200px) {
  238. flex-direction: ${({ reverse }) => (reverse ? "column-reverse" : "column")};
  239. max-width: 80%;
  240. }
  241. `;
  242. export const StyledSectionArea = styled.div`
  243. display: flex;
  244. flex-direction: column;
  245. gap: 2rem;
  246. width: 40%;
  247. margin-top: 3rem;
  248. h2,
  249. p {
  250. text-align: left;
  251. letter-spacing: unset;
  252. }
  253. @media only screen and (max-width: 768px) {
  254. width: 100%;
  255. align-items: center;
  256. h2 {
  257. text-align: center;
  258. }
  259. }
  260. `;
  261. export const StyledSponsorSection = styled.section`
  262. display: flex;
  263. flex-direction: column;
  264. justify-content: center;
  265. align-items: center;
  266. max-width: 85%;
  267. margin: 0 auto;
  268. gap: 2rem;
  269. line-height: 1.5;
  270. padding: 50px 3%;
  271. @media only screen and (max-width: 768px) {
  272. max-width: 90%;
  273. }
  274. `;
  275. export const StyledEmbedSection = styled.section`
  276. display: flex;
  277. flex-direction: column-reverse;
  278. justify-content: center;
  279. align-items: center;
  280. max-width: 85%;
  281. margin: 0 auto;
  282. gap: 2rem;
  283. line-height: 1.5;
  284. padding: 50px 3%;
  285. @media only screen and (max-width: 768px) {
  286. max-width: 80%;
  287. }
  288. `;
  289. export const StyledPreviewSection = styled.section`
  290. display: flex;
  291. flex-direction: row;
  292. justify-content: space-between;
  293. width: 70%;
  294. margin: 0 auto;
  295. background: ${({ theme }) => theme.BLACK_SECONDARY};
  296. border: 2px solid ${({ theme }) => theme.PRIMARY};
  297. border-radius: 6px;
  298. overflow: hidden;
  299. height: 480px;
  300. @media only screen and (max-width: 992px) {
  301. display: none;
  302. }
  303. `;
  304. export const StyledHighlightWrapper = styled.div`
  305. width: 50%;
  306. `;
  307. export const StyledTabsWrapper = styled.div`
  308. display: flex;
  309. gap: 10px;
  310. padding: 8px 8px;
  311. padding-bottom: 0;
  312. pre {
  313. border-top: 2px solid ${({ theme }) => theme.PRIMARY};
  314. }
  315. `;
  316. export const StyledTab = styled.button<{ active?: boolean }>`
  317. border-radius: 6px 6px 0 0;
  318. background: ${({ active }) => active && "#1e1e1e"};
  319. border: 2px solid ${({ theme, active }) => (active ? theme.PRIMARY : "transparent")};
  320. border-bottom: 0;
  321. margin-bottom: -2px;
  322. padding: 8px 16px;
  323. min-width: 80px;
  324. max-width: 150px;
  325. color: ${({ theme, active }) => (active ? theme.INTERACTIVE_ACTIVE : theme.INTERACTIVE_NORMAL)};
  326. overflow: hidden;
  327. white-space: nowrap;
  328. text-overflow: ellipsis;
  329. &:hover {
  330. color: ${({ theme, active }) => !active && theme.INTERACTIVE_HOVER};
  331. }
  332. `;
  333. export const StyledImage = styled.img`
  334. width: 100%;
  335. height: 100%;
  336. object-fit: contain;
  337. filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.6));
  338. `;
  339. export const StyledHighlightedText = styled.span`
  340. text-decoration: underline;
  341. text-decoration-style: dashed;
  342. text-decoration-color: #eab308;
  343. `;
  344. export const StyledProducthunt = styled.div`
  345. display: flex;
  346. flex-direction: column;
  347. justify-content: space-between;
  348. align-items: center;
  349. gap: 3rem;
  350. border-right: 1px solid white;
  351. padding-right: 3rem;
  352. @media only screen and (max-width: 768px) {
  353. border-right: none;
  354. border-bottom: 1px solid white;
  355. padding-bottom: 3rem;
  356. padding-right: 0;
  357. }
  358. `;
  359. export const StyledPaidSection = styled.section`
  360. display: flex;
  361. max-width: 85%;
  362. margin: 0 auto;
  363. gap: 2rem;
  364. padding: 50px 3%;
  365. @media only screen and (max-width: 768px) {
  366. flex-direction: column;
  367. max-width: 80%;
  368. }
  369. `;
  370. export const StyledAffiliate = styled.div`
  371. display: flex;
  372. flex-direction: column;
  373. justify-content: space-between;
  374. align-items: center;
  375. gap: 3rem;
  376. `;