Skip to content

Commit f69d8e2

Browse files
authored
Make things less big on /blog page (#1872)
1 parent d43f138 commit f69d8e2

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

website/pages/blog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Blog() {
2828
<Heading>The Guild's blog</Heading>
2929
</HeroSection>
3030
<div className="nextra-container">
31-
<TagList tags={allTags} withCount asLink className="mb-20 mt-10" />
31+
<TagList tags={allTags} withCount asLink className="mb-10 mt-10" />
3232
{!tagsFilter.length && <Newsletter />}
3333
{<BlogCardList articles={articles} />}
3434
</div>

website/ui/components/blog-card-list.tsx

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,29 @@ export const BlogCardList = ({
1515
className?: string;
1616
}): ReactElement => {
1717
return (
18-
<div className={clsx('my-12 grid gap-14 md:grid-cols-2 xl:grid-cols-4', className)}>
18+
<div className={clsx('my-8 grid gap-6 md:grid-cols-2 xl:grid-cols-4', className)}>
1919
{articles.map(article => (
2020
<NextLink
2121
key={article.link}
2222
href={article.link}
2323
className="
24-
hocus:bg-neutral-200
25-
hocus:dark:bg-[#24272E]
26-
flex
27-
cursor-pointer
28-
flex-col
29-
overflow-hidden
30-
rounded-[20px]
31-
bg-[#f1f1f1]
32-
transition-colors
33-
duration-300
34-
hover:!no-underline
35-
dark:bg-[#24272E]/50
36-
lg:[:is(&:hover,&:focus)>img]:h-36
37-
"
24+
hocus:bg-neutral-200/60
25+
hocus:dark:bg-[#2b2f37]/60
26+
flex
27+
cursor-pointer
28+
flex-col
29+
overflow-hidden
30+
rounded-[20px]
31+
bg-[#f1f1f1]/60
32+
backdrop-blur-xl
33+
backdrop-saturate-[1.3]
34+
transition-colors
35+
duration-300 [box-shadow:inset_2px_2px_8px_rgba(153,192,255,0.015),inset_-2px_-2px_8px_rgba(229,253,190,0.015)]
36+
hover:!no-underline
37+
hover:duration-0
38+
dark:bg-[#24272E]/50
39+
lg:[:is(&:hover,&:focus)>img]:h-36
40+
"
3841
>
3942
<div className="flex grow flex-col p-5">
4043
<Heading size="md" className="line-clamp-3 [hyphens:auto]">

website/ui/components/newsletter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Newsletter = ({ className }: { className?: string }): ReactElement
1313
return (
1414
<div
1515
className={clsx(
16-
'mb-16 flex gap-14 rounded-[30px] bg-[#f1f1f1] p-7 max-xl:flex-col md:p-24 lg:mb-32 xl:gap-48 dark:bg-[#24272E]/50',
16+
'mb-10 flex gap-10 rounded-[30px] bg-[#f1f1f1]/60 p-7 backdrop-blur-xl backdrop-saturate-[1.3] [box-shadow:inset_2px_2px_8px_rgba(153,192,255,0.015),inset_-2px_-2px_8px_rgba(229,253,190,0.015)] max-xl:flex-col md:p-12 xl:gap-20 dark:bg-[#24272E]/50',
1717
className,
1818
)}
1919
>

website/ui/components/tag-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Tag = ({
1515
<Anchor
1616
href={href}
1717
className={clsx(
18-
'rounded-md bg-gray-200 hover:!no-underline dark:bg-[#24272E]',
18+
'rounded-md bg-gray-200 backdrop-blur-xl hover:!no-underline dark:bg-[#24272E]/80',
1919
'flex px-2.5 py-1.5 text-sm font-medium transition-colors',
2020
href
2121
? 'hover:text-black hover:dark:bg-[#15AFD04C] hover:dark:text-[#82E9FF]'

website/ui/recommended-reading-section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const RecommendedReadingSection = ({
99
articles: MetaWithLink[];
1010
}): ReactElement => {
1111
return (
12-
<div className="nextra-container py-16 lg:py-32">
13-
<div className="md:mb-24 md:text-center">
12+
<div className="nextra-container py-12 lg:py-20">
13+
<div className="md:mb-12 md:text-center">
1414
<Heading>Recommended Reading</Heading>
1515
<p className="mb-3.5 text-[#7F818C] md:mb-[30px]">
1616
Read and follow the most popular blog in the GraphQL Ecosystem

0 commit comments

Comments
 (0)