File tree 3 files changed +30
-0
lines changed
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
- Copy button component
13
13
- Scroll-aware table of contets
14
+ - Minimal hero variant
14
15
15
16
### Changed
16
17
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { defaultAuthor } from "@/lib/metadata";
8
8
import { cn } from "@/lib/utils" ;
9
9
import CTA from "@/components/cta" ;
10
10
import { HeroImage } from "@/components/hero-image" ;
11
+ import { HeroMinimal } from "@/components/hero-minimal" ;
11
12
import { HeroSimple } from "@/components/hero-simple" ;
12
13
import { HeroVideo } from "@/components/hero-video" ;
13
14
import { Sidebar } from "@/components/home-sidebar" ;
Original file line number Diff line number Diff line change
1
+ "use client" ;
2
+
3
+ import * as React from "react" ;
4
+ import Image from "next/image" ;
5
+
6
+ import { defaultAuthor } from "@/lib/metadata" ;
7
+
8
+ interface HeroProps {
9
+ title : string ;
10
+ subtitle ?: string ;
11
+ }
12
+
13
+ export function HeroMinimal ( { title, subtitle } : HeroProps ) {
14
+ return (
15
+ < div className = "container flex max-w-6xl flex-col items-start justify-center sm:py-2 md:py-6" >
16
+ < Image
17
+ className = "aspect-square h-10 w-10 rounded-full border border-black sm:hidden"
18
+ width = { 40 }
19
+ height = { 40 }
20
+ src = "/avatar.png"
21
+ alt = { defaultAuthor . name }
22
+ />
23
+ < h1 className = "font-heading text-2xl font-bold leading-tight tracking-tight" > { defaultAuthor . name } </ h1 >
24
+ < p className = "text-muted-foreground" > { defaultAuthor . jobTitle } </ p >
25
+ < p className = "my-2 text-muted-foreground" > { title } </ p >
26
+ </ div >
27
+ ) ;
28
+ }
You can’t perform that action at this time.
0 commit comments