-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa976f7
commit c33c747
Showing
8 changed files
with
149 additions
and
24 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,20 @@ | ||
import { SVGProps } from "react"; | ||
|
||
export function HeartFill(props: SVGProps<SVGSVGElement>) { | ||
return ( | ||
<svg | ||
height="18" | ||
width="18" | ||
viewBox="0 0 18 18" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<g fill="currentColor"> | ||
<path | ||
d="M12.164,2c-1.195,.015-2.324,.49-3.164,1.306-.84-.815-1.972-1.291-3.178-1.306-2.53,.015-4.582,2.084-4.572,4.609,0,5.253,5.306,8.429,6.932,9.278,.256,.133,.537,.2,.818,.2s.562-.067,.817-.2c1.626-.848,6.933-4.024,6.933-9.275,.009-2.528-2.042-4.597-4.586-4.612Z" | ||
fill="currentColor" | ||
/> | ||
</g> | ||
</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,46 @@ | ||
import { cn, createHref } from "@dub/utils"; | ||
import { COMPANY, SOCIAL_LINKS } from "../../content"; | ||
import { | ||
contentHeadingClassName, | ||
ContentLinkCard, | ||
LargeLinkCard, | ||
} from "./shared"; | ||
|
||
export function CompanyContent({ domain }: { domain: string }) { | ||
return ( | ||
<div className="grid w-[540px] grid-cols-[minmax(0,1fr),minmax(0,0.75fr)]"> | ||
<div className="flex flex-col gap-4 border-r border-neutral-200 p-4"> | ||
{COMPANY.map(({ title, description, icon, href }) => ( | ||
<LargeLinkCard | ||
key={title} | ||
title={title} | ||
description={description} | ||
descriptionClassName="mt-0.5" | ||
icon={icon} | ||
iconClassName="size-5" | ||
href={createHref(href, domain)} | ||
/> | ||
))} | ||
</div> | ||
<div className="px-6 py-4"> | ||
<p className={cn(contentHeadingClassName, "mb-2")}>Social</p> | ||
<div className="grid grid-cols-1"> | ||
{SOCIAL_LINKS.map(({ icon: Icon, name, href }) => ( | ||
<ContentLinkCard | ||
key={href} | ||
href={href} | ||
target="_blank" | ||
className="-mx-2" | ||
icon={ | ||
<div className="shrink-0 rounded-lg border border-neutral-200 bg-white/50 p-1.5 dark:border-white/20 dark:bg-white/10"> | ||
<Icon className="size-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60" /> | ||
</div> | ||
} | ||
title={name} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</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
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
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