Skip to content

Commit

Permalink
small landing page fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvincent committed Sep 8, 2023
1 parent 8773b42 commit 74867ca
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
3 changes: 2 additions & 1 deletion apps/www/app/download/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Manrope } from "next/font/google";
import { twMerge } from "tailwind-merge";
import { Button } from "../../components/button";
import { BsDownload } from "react-icons/bs";
import { H2 } from "@/components/typography";

const manrope = Manrope({ subsets: ["latin"] });

Expand All @@ -27,7 +28,7 @@ const DownloadPage = () => {
</Link>

<div className="flex flex-col items-center justify-center gap-3">
<h2 className="text-xl font-extrabold">Download</h2>
<H2>Download</H2>
<hr className="w-4" />
<div className="flex items-center gap-3">
<Link href={darwinURL} target="_blank">
Expand Down
2 changes: 1 addition & 1 deletion apps/www/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function Home() {
<Navbar />
<div className="flex relative lg:flex-row flex-col gap-5 items-center justify-between pt-15">
<div className="flex flex-col items-center justify-start gap-[5px]">
<H2 className="text-center">Your superhuman productivity sidekick</H2>
<H1 className="text-center">Your superhuman productivity sidekick</H1>
<br />
<Paragraph className="text-center max-w-sm">
Supernova is a productivity app that helps you focus on what matters
Expand Down
9 changes: 8 additions & 1 deletion apps/www/components/horizontal-logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ export const HorizontalLogo = () => {
priority
alt="Supernova's logo, a ball with linear gradient from left to right, light teal to orange"
/>
<H3>Supernova</H3>
<H3
className="text-shadow-whiteHalo"
style={{
textShadow: "0px 4px 10px rgba(255, 255, 255, 0.40)",
}}
>
Supernova
</H3>
</div>
);
};
Expand Down
25 changes: 12 additions & 13 deletions apps/www/components/typography.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
import { twMerge } from "tailwind-merge";
import { manrope } from "./font";

interface Props
interface TypographyHeadingProps
extends React.DetailedHTMLProps<
React.HTMLAttributes<HTMLHeadingElement>,
HTMLHeadingElement
> {}

export const H1 = (props: Props) => {
export const H1 = (props: TypographyHeadingProps) => {
return (
<h1
{...props}
className={twMerge(
"text-white text-5xl tracking-[-0.576px]",
"text-white text-4xl tracking-[-0.576px]",
props.className,
manrope.className
)}
style={{
textShadow: "0px 4px 10px rgba(255, 255, 255, 0.40)",
...props.style,
}}
>
{props.children}
</h1>
);
};

export const H2 = (props: Props) => {
export const H2 = (props: TypographyHeadingProps) => {
return (
<h2
{...props}
className={twMerge(
"text-white text-4xl tracking-[-0.576px]",
"text-white text-3xl tracking-[-0.576px]",
props.className,
manrope.className
)}
Expand All @@ -39,17 +37,18 @@ export const H2 = (props: Props) => {
);
};

export const H3 = (props: Props) => {
export const H3 = (props: TypographyHeadingProps) => {
return (
<h2
<h3
{...props}
className={twMerge(
"text-white text-2xl tracking-[-0.576px]",
props.className,
manrope.className
)}
>
{props.children}
</h2>
</h3>
);
};

Expand All @@ -60,7 +59,7 @@ export const Paragraph = (
>
) => {
return (
<p className={twMerge("text-base text-white", props.className)}>
<p {...props} className={twMerge("text-base text-white", props.className)}>
{props.children}
</p>
);
Expand Down

0 comments on commit 74867ca

Please sign in to comment.