-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from blackportal-ai/add-brand-page
Add brand page
- Loading branch information
Showing
7 changed files
with
160 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Button } from '@/components/ui/Button'; | ||
import { Card, CardHeader } from '@/components/ui/Card'; | ||
import { Link } from '@/components/ui/Link'; | ||
import type { BrandItem } from '@/types/brand'; | ||
|
||
type Props = { | ||
title: string; | ||
logos: BrandItem[]; | ||
}; | ||
|
||
export default function BrandList({ title, logos }: Props) { | ||
return ( | ||
<section className="py-20"> | ||
<div className="container"> | ||
<h2 className="mb-6 text-center text-3xl font-bold">{title}</h2> | ||
|
||
<ul className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-4"> | ||
{logos.map((logo) => ( | ||
<li key={logo.variants.svg.src}> | ||
<Card> | ||
<CardHeader className="space-y-4"> | ||
<div className="flex items-center justify-center rounded-xl bg-zinc-200 p-6 dark:bg-zinc-800"> | ||
<img className="h-12" src={logo.variants.svg.src} alt="" /> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<div className="flex items-center justify-center"> | ||
<Button variant="ghost" asChild> | ||
<Link href={logo.variants.svg.src}>SVG</Link> | ||
</Button> | ||
</div> | ||
</CardHeader> | ||
</Card> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { useTypewriter } from '@/hooks/use-typewriter'; | ||
|
||
const text = 'We are happy to have introduced you to our brands.'; | ||
|
||
export default function BrandMessage() { | ||
const displayText = useTypewriter(text, 60); | ||
|
||
return ( | ||
<div className="container py-20"> | ||
<h1 className="mx-auto min-h-36 max-w-3xl text-3xl font-bold md:min-h-28 md:text-4xl"> | ||
{displayText} | ||
</h1> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import type { BrandItem } from '@/types/brand'; | ||
|
||
export const blackPortalLogos: BrandItem[] = [ | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/blackportal/logo/blackportal_black_logo.svg', | ||
}, | ||
}, | ||
}, | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/blackportal/logo/blackportal_white_logo.svg', | ||
}, | ||
}, | ||
}, | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/blackportal/logo/blackportal_black_icon.svg', | ||
}, | ||
}, | ||
}, | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/blackportal/logo/blackportal_white_icon.svg', | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
export const deltaLogos: BrandItem[] = [ | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/delta/logo/%CE%94_black_logo.svg', | ||
}, | ||
}, | ||
}, | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/delta/logo/%CE%94_white_logo.svg', | ||
}, | ||
}, | ||
}, | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/delta/logo/%CE%94_black_icon.svg', | ||
}, | ||
}, | ||
}, | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/delta/logo/%CE%94_white_icon.svg', | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
export const nebulaLogos: BrandItem[] = [ | ||
{ | ||
variants: { | ||
svg: { | ||
src: 'https://raw.githubusercontent.com/blackportal-ai/resources/13519fab43fc21cd189473955922f83c37927319/nebula/logo/nebula.svg', | ||
}, | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
import BrandList from '@/components/sections/brand/BrandList'; | ||
import BrandMessage from '@/components/sections/brand/BrandMessage'; | ||
import { blackPortalLogos, deltaLogos, nebulaLogos } from '@/data/brand'; | ||
import Layout from '@/layouts/Layout.astro'; | ||
--- | ||
|
||
<Layout title="Brand"> | ||
<BrandMessage client:load /> | ||
|
||
<BrandList title="BlackPortal Logo" logos={blackPortalLogos} /> | ||
<BrandList title="Delta Logo" logos={deltaLogos} /> | ||
<BrandList title="Nebula Logo" logos={nebulaLogos} /> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
type BrandItemVariantKeys = 'svg'; | ||
|
||
type BrandItemVariantValue = { | ||
src: string; | ||
}; | ||
|
||
type BrandItemVariant = Record<BrandItemVariantKeys, BrandItemVariantValue>; | ||
|
||
export type BrandItem = { | ||
variants: BrandItemVariant; | ||
}; |