Skip to content

Commit

Permalink
SQUASHME: continue tidying styles
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvogt committed Jun 1, 2024
1 parent 54a6283 commit 8473524
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
4 changes: 2 additions & 2 deletions theme/src/components/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default () => {
const footerText = getFooterText(metadata)

return (
<div sx={{ variant: `styles.PageFooter` }}>
<footer id='footer' sx={{ variant: `styles.PageFooter` }}>
<SwoopTop />
<Container sx={{ textAlign: `center` }}>
<div sx={{ mb: 3, pt: 3, pb: [4, 5] }}>
Expand All @@ -21,6 +21,6 @@ export default () => {

{footerText ? <div>{footerText}</div> : null}
</Container>
</div>
</footer>
)
}
8 changes: 3 additions & 5 deletions theme/src/components/home-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,12 @@ const HomeNavigation = () => {

return (
<Fragment>
<Card
<div
sx={{
boxShadow: 'default',
display: ['none', 'block'],
position: `sticky`,
top: `1.5em`
}}
variant='actionCard'
>
<nav aria-label='Navigate to on-page sections' ref={navItemsRef}>
{links.map(({ href, icon, id, text }) => {
Expand All @@ -155,7 +153,7 @@ const HomeNavigation = () => {
key={id}
variant='homeNavigation'
sx={{
fontFamily: `heading`,
fontFamily: `sans`,
color: `var(--theme-ui-colors-panel-text)`
}}
>
Expand All @@ -165,7 +163,7 @@ const HomeNavigation = () => {
)
})}
</nav>
</Card>
</div>
</Fragment>
)
}
Expand Down
7 changes: 6 additions & 1 deletion theme/src/gatsby-plugin-theme-ui/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const GradientBanner = {
}

export const card = {
borderRadius: 'card',
backgroundColor: `var(--theme-ui-colors-panel-background)`,
color: 'var(--theme-ui-colors-panel-text)',
borderRadius: `3px`,
boxShadow: `default`,
flexGrow: 1,
padding: 3,
Expand Down Expand Up @@ -225,6 +225,11 @@ export default merge(tailwind, {
}
},

radii: {
default: '4px',
card: '8px',
},

styles: {
root: {
color: `text`,
Expand Down
14 changes: 11 additions & 3 deletions theme/src/templates/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,27 @@ const HomeTemplate = props => {
}}
>
<Container>
<Grid columns={[null, null, `.67fr 1.5fr`]} gap={[null, 4]}>
<Grid
columns={[
null,
null,
`0.375fr 1.625fr`, /* Sidebar 18%, Content 82% */
`0.4fr 1.6fr` /* Sidebar 20%, Content 80% */
]}
gap={[null, 4]}
>
<aside sx={{ mb: [4, null] }}>
<HomeNavigation />
</aside>
<main>
<section>
<Card sx={{ mb: 4 }}>
<div sx={{ mb: 5 }}>
<HomeHeaderContent
avatar={avatar}
headline={headline}
subhead={subhead}
/>
</Card>
</div>
</section>
<HomeWidgets />
</main>
Expand Down

0 comments on commit 8473524

Please sign in to comment.