diff --git a/apps/cyberstorm-remix/app/Error.module.css b/apps/cyberstorm-remix/app/Error.module.css index bfd32e8e8..d5bd2945a 100644 --- a/apps/cyberstorm-remix/app/Error.module.css +++ b/apps/cyberstorm-remix/app/Error.module.css @@ -1,12 +1,12 @@ .root { display: flex; flex-direction: column; - gap: var(--space--32); + gap: var(--space-32); align-items: center; justify-content: center; - --glitch-color-1: var(--old--color-cyber-green--50); - --glitch-color-2: var(--old--color-pink--50); + --glitch-color-1: var(--old--color-cyber-green-50); + --glitch-color-2: var(--old--color-accent-pink-50); } .description { @@ -17,16 +17,16 @@ .flavor { font-weight: var(--font-weight-bold); - font-size: var(--space--32); + font-size: var(--space-32); line-height: 1; text-align: center; } .glitch { position: relative; - margin-top: var(--space--32); - margin-bottom: var(--space--48); - font-weight: var(--font-weight-heavy); + margin-top: var(--space-32); + margin-bottom: var(--space-48); + font-weight: var(--font-weight-extra-bold); font-size: 12rem; line-height: 1; } diff --git a/apps/cyberstorm-remix/app/Markdown.module.css b/apps/cyberstorm-remix/app/Markdown.module.css index 423813d9c..ef2dcc0fe 100644 --- a/apps/cyberstorm-remix/app/Markdown.module.css +++ b/apps/cyberstorm-remix/app/Markdown.module.css @@ -54,7 +54,7 @@ } .root h3 { - font-size: 1.25rem; + font-size: var(--font-size-body-xxl); } .root h4 { @@ -115,7 +115,7 @@ } .root a { - color: var(--old--color-cyber-green--50); + color: var(--old--color-cyber-green-50); } .root blockquote { diff --git a/apps/cyberstorm-remix/app/c/CommunityCard.module.css b/apps/cyberstorm-remix/app/c/CommunityCard.module.css index 33169462b..451271e30 100644 --- a/apps/cyberstorm-remix/app/c/CommunityCard.module.css +++ b/apps/cyberstorm-remix/app/c/CommunityCard.module.css @@ -1,7 +1,7 @@ .root { display: flex; flex-direction: row; - gap: var(--space--32); + gap: var(--space-32); } .image { @@ -11,21 +11,21 @@ .info { display: flex; flex-direction: column; - gap: var(--space--4); + gap: var(--space-4); min-width: 0; } @media (width <= 30rem) { .root { - gap: var(--space--16); + gap: var(--space-16); } } .meta { display: flex; flex-direction: row; - gap: var(--space--16); - padding-top: var(--space--16); + gap: var(--space-16); + padding-top: var(--space-16); } .skeletonImage { diff --git a/apps/cyberstorm-remix/app/commonComponents/Footer/Footer.css b/apps/cyberstorm-remix/app/commonComponents/Footer/Footer.css new file mode 100644 index 000000000..b21669616 --- /dev/null +++ b/apps/cyberstorm-remix/app/commonComponents/Footer/Footer.css @@ -0,0 +1,260 @@ +@layer project-layout { + .project-footer { + width: 100%; + + --border: var(--space-px) solid #27275d; + } + + @media (width <= 63.5rem) { + .project-footer__item { + padding-right: 1.5rem; + padding-left: 1.5rem; + } + } + + .project-footer__main { + display: flex; + flex-direction: column; + } + + .project-footer__section { + display: flex; + flex-direction: column; + } + + .project-footer__item { + display: flex; + flex: 1; + border-top: var(--border); + } + + .project-footer__extra { + position: relative; + order: -1; + } + + .project-footer__extra::before { + position: absolute; + right: 0; + bottom: 0; + z-index: -1; + height: 100%; + max-height: 24rem; + background-image: linear-gradient( + 165deg, + hsl(276deg 39% 38% / 0) 60%, + hsl(276deg 39% 38%) 100% + ); + background-repeat: no-repeat; + background-position: 100% 100%; + content: "\0020"; + aspect-ratio: 5/1; + } + + .project-footer__inner { + display: flex; + flex: 1; + padding-block: var(--space-32); + width: 100%; + } + + .project-footer__adwrapper .project-footer__inner { + padding-bottom: 0; + } + + .project-footer__company { + order: 2; + } + + .project-footer__footnote { + padding-block: var(--space-32); + padding-block-end: 5.5rem; + } + + .project-footer__footnotecopyright { + color: rgb(197 194 255 / 0.6) !important; + font-weight: var(--font-weight-regular); + font-size: var(--font-size-body-sm); + line-height: var(--line-height-lg); + text-align: center; + } + + .project-footer__footnoteinner { + display: flex; + flex-direction: column; + gap: 1.5rem; + align-items: center; + align-self: stretch; + justify-content: center; + width: 100%; + max-width: 80rem; + margin-inline: auto; + padding-inline: var(--space-24); + } + + .project-footer__nav { + display: flex; + gap: var(--space-40); + justify-content: center; + width: 100%; + } + + .project-footer__navsection { + display: flex; + flex-direction: column; + gap: var(--space-24); + } + + .project-footer__ad { + display: flex; + flex-direction: column; + gap: var(--space-32); + max-width: 100%; + } + + .project-footer__adtext { + display: flex; + flex: 1; + flex-direction: column; + gap: var(--space-16); + padding-bottom: 1rem; + } + + .project-footer__addescription { + max-width: 29rem; + color: var(--color-text-accent); + font-weight: 400; + font-size: 1.125rem; + line-height: var(--line-height-md); + } + + .project-footer__getmanagerbutton { + width: fit-content; + } + + .project-footer__img { + position: relative; + aspect-ratio: 2.5/1; + object-fit: cover; + object-position: left top; + box-shadow: -36px -36px 40px 0 rgb(0 0 0 / 0.35); + } + + .project-footer__logoandlinks { + display: flex; + flex-direction: column; + gap: var(--gap-xxxl); + align-items: center; + } + + .project-footer__logo { + height: 2rem; + } + + .project-footer__iconlinks { + display: flex; + gap: 30px; + color: var(--color-text-accent); + } + + .project-footer__iconlink { + display: flex; + align-items: center; + justify-content: center; + height: 2rem; + border-radius: var(--radius-md); + } + + .project-footer__footerpageslinks { + display: flex; + gap: var(--gap-xxxl); + font-weight: var(--font-weight-regular); + font-size: var(--font-size-body-sm); + } + + .project-footer__footerlist { + display: flex; + flex-direction: column; + gap: var(--gap-xs); + font-size: var(--font-size-body-md); + line-height: var(--line-height-lg); + list-style-type: none; + } + + @media (width >= calc(63.5rem + 1px)) { + .project-footer__logoandlinks { + flex-direction: row; + justify-content: space-between; + } + } + + @media (width >= calc(63.5rem + 1px)) { + .project-footer__main { + flex-direction: row; + } + + .project-footer__section { + flex: 0 0 50%; + } + + .project-footer__info .project-footer__item { + justify-content: flex-end; + } + + .project-footer__inner { + flex: 0 1 45rem; + padding-block: 4.5rem; + } + + .project-footer__company .project-footer__inner, + .project-footer__linkswrapper .project-footer__inner { + padding-right: 3.5rem; + } + + .project-footer__company { + align-items: center; + order: 0; + } + + .project-footer__extra { + order: 0; + border-left: var(--border); + } + + .project-footer__adwrapper .project-footer__inner { + padding-top: 5rem; + padding-bottom: 0; + padding-left: 5rem; + } + + .project-footer__logoandlinks, + .project-footer__navlinks { + margin-left: 4.5rem; + } + + .project-footer__footnote { + padding-block-end: var(--space-32); + } + + .project-footer__nav { + gap: 7rem; + justify-content: flex-start; + } + + .project-footer__footnoteinner { + flex-direction: row; + justify-content: space-between; + } + + .project-footer__ad { + padding-right: 3.125rem; + } + } + + @media (width <= 23.25rem) { + .project-footer__nav { + flex-flow: wrap; + justify-content: flex-start; + } + } +} diff --git a/packages/cyberstorm/src/components/Footer/Footer.tsx b/apps/cyberstorm-remix/app/commonComponents/Footer/Footer.tsx similarity index 59% rename from packages/cyberstorm/src/components/Footer/Footer.tsx rename to apps/cyberstorm-remix/app/commonComponents/Footer/Footer.tsx index b1c7a44ae..da8de315b 100644 --- a/packages/cyberstorm/src/components/Footer/Footer.tsx +++ b/apps/cyberstorm-remix/app/commonComponents/Footer/Footer.tsx @@ -1,13 +1,17 @@ -import styles from "./Footer.module.css"; +import "./Footer.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faDiscord, faGithub } from "@fortawesome/free-brands-svg-icons"; import { faArrowUpRightFromSquare, faBoltLightning, } from "@fortawesome/free-solid-svg-icons"; -import { ThunderstoreLogoHorizontal } from "../../svg/svg"; -import { classnames } from "../../utils/utils"; -import { Container, Heading, LinkButton, List, NewIcon, NewLink } from "../.."; +import { ThunderstoreLogoHorizontal } from "@thunderstore/cyberstorm/src/svg/svg"; +import { + Heading, + LinkButton, + NewIcon, + NewLink, +} from "@thunderstore/cyberstorm/src"; const AD_IMAGE_SRC = "/cyberstorm-static/images/tsmm_screenshot.png"; const DISCORD_URL = "https://discord.thunderstore.io/"; @@ -18,20 +22,20 @@ const GITHUB_URL = "https://github.com/thunderstore-io"; */ export function Footer() { return ( -