Changed titles

This commit is contained in:
2024-10-17 22:19:59 -03:00
parent 48d77429db
commit 789f9b0c94
6 changed files with 27 additions and 8 deletions

Binary file not shown.

View File

@@ -1,6 +1,14 @@
export function TypographyH1({ children }: { children: React.ReactNode }) { export function TypographyH1({
children,
className,
}: {
children: React.ReactNode;
className?: string;
}) {
return ( return (
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl"> <h1
className={`scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl ${className}`}
>
{children} {children}
</h1> </h1>
); );

View File

@@ -1,12 +1,12 @@
export function TypographyH2({ export function TypographyH2(props: {
children,
className,
}: {
children: React.ReactNode; children: React.ReactNode;
className?: string; className?: string;
[key: string]: any;
}) { }) {
const { children, className, ...otherProps } = props;
return ( return (
<h2 <h2
{...otherProps}
className={`scroll-m-20 border-b border-none pb-2 text-3xl font-semibold tracking-tight first:mt-0 ${className}`} className={`scroll-m-20 border-b border-none pb-2 text-3xl font-semibold tracking-tight first:mt-0 ${className}`}
> >
{children} {children}

View File

@@ -6,6 +6,7 @@ import AlbumShowcase from "./album-showcase";
import ArtistShowcase from "./artist-showcase"; import ArtistShowcase from "./artist-showcase";
import UserShowcase from "./user-showcase"; import UserShowcase from "./user-showcase";
import { TypographyH2 } from "./h2"; import { TypographyH2 } from "./h2";
import { TypographyH1 } from "./h1";
export function Showcase({ export function Showcase({
userData, userData,
@@ -29,7 +30,9 @@ export function Showcase({
<Switch isChecked={spookify} setIsChecked={setSpookify} /> <Switch isChecked={spookify} setIsChecked={setSpookify} />
</div> </div>
<UserShowcase spookify={spookify} {...userData} /> <UserShowcase spookify={spookify} {...userData} />
<TypographyH2 className="justify-start">Tracks by album</TypographyH2> <TypographyH1 className="mb-2 mt-8 self-baseline text-3xl lg:text-4xl">
Tracks by album
</TypographyH1>
{Object.values(tracksByAlbum) {Object.values(tracksByAlbum)
.sort((a, b) => b.position - a.position) .sort((a, b) => b.position - a.position)
.map((album, index) => { .map((album, index) => {
@@ -44,7 +47,9 @@ export function Showcase({
/> />
); );
})} })}
<h3>Artists images</h3> <TypographyH1 className="mb-2 mt-8 self-baseline text-3xl lg:text-4xl">
Artists
</TypographyH1>
<div <div
style={{ style={{
display: "flex", display: "flex",

View File

@@ -2,6 +2,11 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@font-face {
font-family: "ClimateCrisis";
src: url("../../public/fonts/ClimateCrisis-Regular.ttf");
}
.external-link { .external-link {
color: #5bc0eb; /* Light blue color */ color: #5bc0eb; /* Light blue color */
text-decoration: none; text-decoration: none;

View File

@@ -8,6 +8,7 @@ export default {
extend: { extend: {
fontFamily: { fontFamily: {
sans: ["var(--font-geist-sans)", ...fontFamily.sans], sans: ["var(--font-geist-sans)", ...fontFamily.sans],
climateCrisis: ["ClimateCrisis", ...fontFamily.sans],
}, },
}, },
}, },