-
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.
* Change LCD Carousel CTA Order * Add BIC Button in Header * Update Button Icon * Update Note Styling * Add MDX Button * Add BIC Section * Fix Link * Add BIC PDF * Update BIC Image * Add ButtonGroup Component * Add MDX Button Icon * Remove - from Notes Component * Update BIC PDF * Update Link * Add BIC Example * Add tracking to ProjectFilter, Accordion, and Carousel components
- Loading branch information
Showing
18 changed files
with
196 additions
and
26 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,42 @@ | ||
import { ClipboardList, Files } from "lucide-react"; | ||
import Image from "next/image"; | ||
import { ButtonGroup } from "../../../components/ButtonGroup/ButtonGroup"; | ||
import { MDXContent } from "../../../components/MDXContent/MDXContent"; | ||
import { Section } from "../../../components/Section/Section"; | ||
import { Button } from "../../../design-system/Button/Button"; | ||
import { getTextSnippet } from "../../../lib/queries"; | ||
import bicImg from "./bic.png"; | ||
|
||
export const Bic = async () => { | ||
const { content } = await getTextSnippet( | ||
"87b890c6-253f-4b07-9325-39a0ecbdaa4c", | ||
); | ||
return ( | ||
<Section id="bic" color="primary"> | ||
<div className="flex flex-col gap-8 lg:flex-row"> | ||
<Image | ||
src={bicImg} | ||
alt="Title page of the Behavioral Impact Canvas" | ||
className="max-h-[500px] w-full object-contain lg:w-1/2" | ||
/> | ||
<div className="flex flex-col items-start justify-center gap-8 lg:w-1/2"> | ||
<MDXContent source={content} color="dark" family="serif" /> | ||
<ButtonGroup> | ||
<Button href="/projects/behavioral-impact-canvas"> | ||
<Files /> | ||
About the canvas | ||
</Button> | ||
<Button | ||
style="outline" | ||
href="/downloads/behavioral-impact-canvas.pdf" | ||
external | ||
> | ||
<ClipboardList /> | ||
View the Canvas | ||
</Button> | ||
</ButtonGroup> | ||
</div> | ||
</div> | ||
</Section> | ||
); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 { cx } from "class-variance-authority"; | ||
import { ReactNode } from "react"; | ||
|
||
interface Props { | ||
children: ReactNode; | ||
className?: string; | ||
} | ||
|
||
export const ButtonGroup = ({ children, className }: Props) => { | ||
return ( | ||
<div | ||
className={cx( | ||
"flex w-full flex-col flex-wrap gap-4 sm:flex-row", | ||
className, | ||
)} | ||
> | ||
{children} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ClipboardList, ClipboardSignature } from "lucide-react"; | ||
import { Button, ButtonProps } from "../../design-system/Button/Button"; | ||
|
||
const iconMap = { | ||
clipboard: ClipboardList, | ||
clipboardSignature: ClipboardSignature, | ||
} as const; | ||
|
||
interface MdxButtonProps { | ||
icon?: keyof typeof iconMap; | ||
} | ||
|
||
type Props = MdxButtonProps & ButtonProps; | ||
|
||
export const MdxButton = ({ children, icon, ...rest }: Props) => { | ||
const Icon = icon && iconMap[icon]; | ||
return ( | ||
<Button className="not-prose" {...rest}> | ||
{Icon && <Icon />} | ||
{children} | ||
</Button> | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
interface TrackingEvents { | ||
"Carousel item selected": { | ||
item: any; | ||
}; | ||
"Carousel navigation": { | ||
direction: "next" | "prev"; | ||
}; | ||
"Accordion item selected": { | ||
title: string; | ||
}; | ||
"Filter projects by service": { | ||
service: string; | ||
}; | ||
"Filter projects by topic": { | ||
topic: string; | ||
}; | ||
"Sort projects by": { | ||
sort: string; | ||
}; | ||
} | ||
|
||
export const track = <TEventKey extends keyof TrackingEvents>( | ||
...args: TrackingEvents[TEventKey] extends null | ||
? [event: TEventKey] | ||
: [event: TEventKey, data: TrackingEvents[TEventKey]] | ||
) => { | ||
const [event, data] = args; | ||
splitbee.track(event, data); | ||
}; |
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 @@ | ||
declare const splitbee: any; |
0dfcca1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
katharinaclasen-com – ./apps/website
katharinaclasen-de.vercel.app
katharinaclasen-com-timoclsn.vercel.app
katharinaclasen.com
katharinaclasen-com-git-main-timoclsn.vercel.app
katharinaclasen.de