-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: responsiveness #17
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/components/TitleBanner.tsx
Outdated
display: isMobile ? 'grid' : 'flex', | ||
gridTemplateColumns: isMobile ? 'auto 1fr' : 'none', | ||
alignItems: 'center', | ||
alignSelf: 'flex-start', | ||
gap: currentTheme.gap, | ||
justifyContent: isMobile ? 'start' : 'center', | ||
textAlign: isMobile ? 'left' : 'center', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding mediaQueries would be better. wdyt?
src/components/TitleBanner.tsx
Outdated
fontWeight: 700, | ||
lineHeight: '4rem', | ||
letterSpacing: '-0.03em', | ||
gridColumn: isMobile ? 'span 2' : 'auto', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
display: isMobile ? 'grid' : 'flex', | ||
alignItems: 'center', | ||
justifyContent: isMobile ? 'space-between' : 'flex-start', | ||
gap: currentTheme.gap, | ||
gridTemplateColumns: isMobile ? 'repeat(2, 1fr)' : 'none', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
src/containers/Header/index.tsx
Outdated
return isMobile ? ( | ||
<MobileHeader | ||
theme={theme} | ||
goToHome={goToHome} | ||
handleChangeLanguage={handleChangeLanguage} | ||
localesMap={localesMap} | ||
changeTheme={changeTheme} | ||
/> | ||
) : ( | ||
<DesktopHeader | ||
theme={theme} | ||
goToHome={goToHome} | ||
handleChangeLanguage={handleChangeLanguage} | ||
localesMap={localesMap} | ||
changeTheme={changeTheme} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend using a binary conditional (&&)
src/containers/Landing/index.tsx
Outdated
return { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
padding: isMobile ? '0 1rem' : '0 7rem', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
export const TotalValueLocked = ({ tvl }: TotalValueLockedProps) => { | ||
const theme = useTheme(); | ||
const isMobile = useMediaQuery(theme.breakpoints.down('sm')); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice if we can split these components into different files in another pr
No description provided.