-
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.
SOEOPSFY24-380 SOEOPSFY24-357 | add story poster card and adjust tex…
…tarea example
- Loading branch information
1 parent
08532b2
commit cda46fb
Showing
38 changed files
with
299 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import { Masthead } from "@/components/Masthead"; | ||
import { StoryPosterCard } from "@/components/Story"; | ||
|
||
const ExampleChaptersPage = async () => { | ||
return ( | ||
<div> | ||
<Masthead isLight /> | ||
<StoryPosterCard | ||
bgColor="stone-dark" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
chapter="Chapter 1" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
hasBgImage | ||
bgColor="stone-dark" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
chapter="Chapter 1" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
bgColor="red" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://i.ibb.co/bX4ysck/1926-The-largest-university-electrical-lab-of-its-time.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
hasBgImage | ||
bgColor="red" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://i.ibb.co/bX4ysck/1926-The-largest-university-electrical-lab-of-its-time.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://i.ibb.co/bX4ysck/1926-The-largest-university-electrical-lab-of-its-time.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
isNarrow | ||
bgColor="stone-dark" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact (Narrow Example)" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
isNarrow | ||
hasBgImage | ||
bgColor="stone-dark" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact (Narrow Example)" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
isNarrow | ||
bgColor="red" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact (Narrow Example)" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
isNarrow | ||
hasBgImage | ||
bgColor="red" | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
<StoryPosterCard | ||
isNarrow | ||
heading="The foundation of a new era in engineering" | ||
superhead="100 Years of Impact (Narrow Example)" | ||
body="The education of engineers had been a founding intention for the university, with an engineering curriculum in place since its inception." | ||
src="https://ik.imagekit.io/centennial/1939%20-%20Model%20200A%20precision%20audio%20oscillator.jpg" | ||
caption="Caption/credit lorem ipsum dolar sit amet vestibulum perimentium" | ||
link="/" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExampleChaptersPage; |
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,36 @@ | ||
import { cnb } from "cnbuilder"; | ||
import React from "react"; | ||
import { Text } from "../Typography"; | ||
|
||
type ChapterLabelProps = { | ||
text: string; | ||
isLight?: boolean; | ||
className?: string; | ||
}; | ||
|
||
export const ChapterLabel = ({ | ||
text, | ||
isLight = false, | ||
className, | ||
...props | ||
}: ChapterLabelProps) => { | ||
return ( | ||
<Text | ||
{...props} | ||
as="div" | ||
weight="bold" | ||
size="small" | ||
leading="snug" | ||
className={cnb( | ||
"pt-6 px-13 pb-8 rounded-xl w-fit", | ||
{ | ||
"bg-stone-dark": isLight, | ||
"bg-archway-dark": !isLight, | ||
}, | ||
className, | ||
)} | ||
> | ||
{text} | ||
</Text> | ||
); | ||
}; |
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
Oops, something went wrong.