From 1faf13639c2d89ef799fbeefa6c580a9627fad26 Mon Sep 17 00:00:00 2001 From: Vignesh Mohankumar Date: Mon, 12 Dec 2022 11:18:58 -0500 Subject: [PATCH] feat: styled footer links (#5644) * feat: styled footer links * grid * center * Update bottom links and full bleed image * Mobile spacing and font size adjustments Decrease spacing in mobile and swap the sizing of fonts between mobile and desktop sizes Co-authored-by: Callil Capuozzo Co-authored-by: pp-hh-ii-ll <111304124+pp-hh-ii-ll@users.noreply.github.com> --- src/pages/About/index.tsx | 62 ++++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 11 deletions(-) diff --git a/src/pages/About/index.tsx b/src/pages/About/index.tsx index c23b1c7e2c..0e89657bb1 100644 --- a/src/pages/About/index.tsx +++ b/src/pages/About/index.tsx @@ -2,6 +2,7 @@ import { Trace } from '@uniswap/analytics' import { PageName } from '@uniswap/analytics-events' import { ButtonOutlined } from 'components/Button' import { useLayoutEffect, useRef, useState } from 'react' +import { BookOpen, Globe, Heart, Twitter } from 'react-feather' import { useIsDarkMode } from 'state/user/hooks' import styled from 'styled-components/macro' import { BREAKPOINTS } from 'theme' @@ -134,12 +135,43 @@ const Thumbnail = styled.img` width: 100%; ` -const SocialRow = styled.div` - display: flex; - gap: 24px; +const FooterLinks = styled.div` + display: grid; + grid-template-columns: 1fr; + gap: 12px; - & > * { - flex: 1; + @media screen and (min-width: ${BREAKPOINTS.sm}px) { + grid-template-columns: 1fr 1fr; + gap: 24px; + } + + @media screen and (min-width: ${BREAKPOINTS.lg}px) { + grid-template-columns: 1fr 1fr 1fr 1fr; + } +` + +const FooterLink = styled.a` + display: flex; + align-items: center; + gap: 16px; + padding: 16px; + color: ${({ theme }) => theme.textPrimary}; + border: 1px solid ${({ theme }) => theme.backgroundOutline}; + font-size: 16px; + line-height: 20px; + font-weight: 600; + border-radius: 8px; + cursor: pointer; + text-decoration: none; + + svg { + color: ${({ theme }) => theme.textSecondary}; + stroke-width: 1.5; + } + + @media screen and (min-width: ${BREAKPOINTS.md}px) { + font-size: 20px; + line-height: 24px; } ` @@ -227,12 +259,20 @@ export default function About() {