Skip to content

Commit

Permalink
feat: update slogan
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Jan 14, 2024
1 parent 7fa16c8 commit 08df5a9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const neucha = Neucha({

export const metadata: Metadata = {
title: 'Saber',
description: 'A cross-platform libre handwritten notes app',
description: 'The notes app built for handwriting',
}

export default function RootLayout({
Expand Down
20 changes: 18 additions & 2 deletions src/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,32 @@
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1ch;
padding: 2ch;
max-width: 20ch;
box-sizing: content-box;
text-align: center;
}
.title {
margin-bottom: 0;
text-align: center;
font-size: 4rem;
margin: 0;
line-height: 1;
}
.subtitle {
display: block;
font-size: 1.2rem;
margin: 0;
margin-top: -0.5rem;
margin-bottom: 1rem;
}
.header > img {
margin-bottom: 1rem;
}
.summary {
margin-top: 0;
margin: 0;
text-align: center;
text-wrap: balance;
}

.feature {
Expand Down
17 changes: 11 additions & 6 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function getVersionName(): Promise<string> {
return versionWithoutV;
}

export default async function() {
export default async function () {
const versionName = await getVersionName();
return <Home versionName={versionName} />;
}
Expand All @@ -29,10 +29,10 @@ function Home({ versionName }: { versionName: string }) {
useEffect(() => {
const highlightColor = "var(--highlight-color)";

const headerElem = document.querySelector<HTMLElement>('.'+styles.header)!;
const badgesElem = document.querySelector<HTMLElement>('.'+styles.badges)!;
const headerElem = document.querySelector<HTMLElement>('.' + styles.header)!;
const badgesElem = document.querySelector<HTMLElement>('.' + styles.badges)!;
const otherElems = document.querySelectorAll<HTMLElement>(
'h2, .'+styles.underlineMe
'h2, .' + styles.underlineMe
);

const headerAnnotation = annotate(headerElem, {
Expand Down Expand Up @@ -79,15 +79,20 @@ function Home({ versionName }: { versionName: string }) {
return (
<main className={styles.main}>
<div className={styles.header}>
<h1 className={styles.title}>
Saber
</h1>
<p className={styles.subtitle}>
Handwritten Notes
</p>
<Image
src="https://raw.githubusercontent.com/saber-notes/saber/main/assets/icon/resized/icon-512x512.png"
alt="Logo"
width={100}
height={100}
/>
<h1 className={styles.title}>Saber</h1>
<p className={styles.summary}>
A cross-platform libre handwritten notes app
The notes app built for handwriting
</p>
</div>

Expand Down

0 comments on commit 08df5a9

Please sign in to comment.