From ab66def695e9031bf91e2a1f7ca48710abdb985d Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 12 Mar 2024 18:39:29 +0000 Subject: [PATCH] Adds link to terminal trove in homepage --- src/App.tsx | 1 - src/pages/Home.tsx | 70 ++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 67 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1aba309..7be0166 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,7 +12,6 @@ const Container = Styled.main` background: ${colors.background}; color: ${colors.textColor}; width: 100vw; - height: 100vh; margin: 0; `; diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index b61fc0d..9b66818 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -20,7 +20,7 @@ const HomeContainer = styled.section` align-items: center; height: 100%; font-family: 'PTMono'; - padding: 0 1rem; + padding: 1.5rem 1rem 4rem 1rem; footer { z-index: 1; } @@ -34,10 +34,52 @@ const UserInputMain = styled.form` z-index: 5; margin: 1rem; width: calc(100% - 2rem); - max-width: 50rem; + max-width: 60rem; z-index: 2; `; +const SponsorCard = styled.div` + background: ${colors.backgroundLighter}; + box-shadow: 4px 4px 0px ${colors.bgShadowColor}; + border-radius: 8px; + padding: 1rem; + z-index: 5; + margin: 1rem; + width: calc(100% - 2rem); + max-width: 60rem; + z-index: 2; + .inner { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + gap: 1rem; + p { + margin: 0.25rem 0; + } + } + a { + color: ${colors.textColor}; + } + img { + border-radius: 0.25rem; + box-shadow: 2px 2px 0px ${colors.fgShadowColor}; + transition: box-shadow 0.2s; + margin: 0 auto; + display: block; + width: 200px; + &:hover { + box-shadow: 4px 4px 0px ${colors.fgShadowColor}; + } + &:active { + box-shadow: -2px -2px 0px ${colors.fgShadowColor}; + } + } + .cta { + font-size: 0.78rem; + a { color: ${colors.primary}; } + } +`; + // const FindIpButton = styled.a` // margin: 0.5rem; // cursor: pointer; @@ -55,7 +97,7 @@ const ErrorMessage = styled.p` const SiteFeaturesWrapper = styled(StyledCard)` margin: 1rem; width: calc(100% - 2rem); - max-width: 50rem; + max-width: 60rem; z-index: 2; .links { display: flex; @@ -173,6 +215,28 @@ const Home = (): JSX.Element => { { errorMsg && {errorMsg}} + + Sponsored by +
+

+ + Terminal Trove + - The $HOME of all things in the terminal. +
+ + Get updates on the latest CLI/TUI tools via + the + Terminal Trove newsletter + + + +

+ + Terminal Trove + +
+ +
Supported Checks