Skip to content

Commit ce4a4bb

Browse files
committed
New blog post
1 parent 5e65fb3 commit ce4a4bb

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

src/app/blog/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Image from 'next/image'
99
import Link from 'next/link'
1010

1111
export const revalidate = 60
12-
export const dynamic = 'force-static'
12+
// export const dynamic = 'force-static'
1313

1414
export async function generateMetadata(): Promise<Metadata> {
1515
const { blogIndex } = await basehub({ next: { revalidate: 60 } }).query({

src/app/globals.css

+4
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,7 @@
6565
.landing-header strong {
6666
@apply font-bold text-transparent;
6767
}
68+
69+
.text-balance {
70+
text-wrap: balance;
71+
}

src/app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function HomePage() {
3838
<TrackPage path="/" />
3939
<section className="py-16 md:py-24 lg:py-32">
4040
<div className="container flex max-w-screen-md flex-col items-center gap-4 text-center">
41-
<h1 className="!leading-none font-bold text-2xl sm:text-3xl md:text-4xl lg:text-5xl landing-header py-2">
41+
<h1 className="!leading-none font-bold text-2xl sm:text-3xl md:text-4xl lg:text-5xl landing-header py-2 text-balance">
4242
{t.rich('Homepage.title', {
4343
strong: (chunks) => <strong>{chunks}</strong>,
4444
})}

src/components/news-button.tsx

+32
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
import { useLocalStorageState, useMediaQuery } from '@/lib/hooks'
2424
import {
2525
ExternalLink,
26+
Globe,
2627
Linkedin,
2728
LucideIcon,
2829
Newspaper,
@@ -45,6 +46,37 @@ type News = {
4546
}
4647

4748
const news: News[] = [
49+
{
50+
id: 'languages',
51+
title: <>Spliit is now available in eight languages!</>,
52+
summary: (
53+
<>
54+
French, German, Spanish, and more! Read about it in our new blog post.
55+
</>
56+
),
57+
icon: Globe,
58+
content: (
59+
<>
60+
<p>
61+
Spliit began as an English-only app but now supports multiple
62+
languages, thanks to the open-source community. Learn about the
63+
contributors and how to help expand language support.
64+
</p>
65+
<p>
66+
<Button asChild>
67+
<a
68+
target="_blank"
69+
href="/blog/spliit-is-now-available-in-eight-languages"
70+
className="no-underline"
71+
>
72+
<ExternalLink className="mr-2 w-4" />
73+
Read the blog post
74+
</a>
75+
</Button>
76+
</p>
77+
</>
78+
),
79+
},
4880
{
4981
id: 'blog-post-splitwise',
5082
title: <>We need an open source alternative to Splitwise</>,

0 commit comments

Comments
 (0)