···11+import { MentionTiny } from "components/Icons/MentionTiny";
22+import { ContentLayout, Notification } from "./Notification";
33+44+export const DummyPostMentionNotification = (props: {}) => {
55+ return (
66+ <Notification
77+ timestamp={""}
88+ href="/"
99+ icon={<MentionTiny />}
1010+ actionText={<>celine mentioned your post</>}
1111+ content={
1212+ <ContentLayout
1313+ postTitle={"Post Title Here"}
1414+ pubRecord={{ name: "My Publication" } as any}
1515+ >
1616+ I'm just gonna put the description here. The surrounding context is
1717+ just sort of a pain to figure out
1818+ <div className="border border-border-light rounded-md p-1 my-1 text-xs text-secondary">
1919+ <div className="font-bold">Title of the Mentioned Post</div>
2020+ <div className="text-tertiary">
2121+ And here is the description that follows it
2222+ </div>
2323+ </div>
2424+ </ContentLayout>
2525+ }
2626+ />
2727+ );
2828+};
2929+3030+export const DummyUserMentionNotification = (props: {
3131+ cardBorderHidden: boolean;
3232+}) => {
3333+ return (
3434+ <Notification
3535+ timestamp={""}
3636+ href="/"
3737+ icon={<MentionTiny />}
3838+ actionText={<>celine mentioned you</>}
3939+ content={
4040+ <ContentLayout
4141+ postTitle={"Post Title Here"}
4242+ pubRecord={{ name: "My Publication" } as any}
4343+ >
4444+ <div>
4545+ ...llo this is the content of a post or whatever here it comes{" "}
4646+ <span className="text-accent-contrast">@celine </span> and here it
4747+ was! ooooh heck yeah the high is unre...
4848+ </div>
4949+ </ContentLayout>
5050+ }
5151+ />
5252+ );
5353+};
···162162 uri: string;
163163 }[];
164164}) => {
165165+ // HEY STILL TO DO
166166+ // copy over the menuItem styles and apply them if the option has been selected
167167+ // test out logged out, logged in but no pubs, and pubbed up flows
168168+165169 let [selectedPub, setSelectedPub] = useState<string | undefined>(undefined);
166170 return (
167171 <div className="flex flex-col gap-1">
···11-import { LegalContent } from "app/legal/content";
22-import Link from "next/link";
33-44-export default function AboutPage() {
55- return (
66- <div className="flex flex-col gap-2">
77- <div className="flex flex-col h-[80vh] mx-auto sm:px-4 px-3 sm:py-6 py-4 max-w-prose gap-4 text-lg">
88- <p>
99- Leaflet.pub is a web app for instantly creating and collaborating on
1010- documents.{" "}
1111- <Link href="/" prefetch={false}>
1212- Click here
1313- </Link>{" "}
1414- to create one and get started!
1515- </p>
1616-1717- <p>
1818- Leaflet is made by Learning Futures Inc. Previously we built{" "}
1919- <a href="https://hyperlink.academy">hyperlink.academy</a>
2020- </p>
2121- <p>
2222- You can find us on{" "}
2323- <a href="https://bsky.app/profile/leaflet.pub">Bluesky</a> or email as
2424- at <a href="mailto:contact@leaflet.pub">contact@leaflet.pub</a>
2525- </p>
2626- </div>
2727- <LegalContent />
2828- </div>
2929- );
3030-}
···31313232 const docRecord = publicationData.documents
3333 .data as PubLeafletDocument.Record;
3434- console.log(docRecord);
35343635 // Search through all pages and blocks to find if this poll entity has been published
3736 for (const page of docRecord.pages || []) {
···4039 for (const blockWrapper of linearPage.blocks || []) {
4140 if (blockWrapper.block?.$type === ids.PubLeafletBlocksPoll) {
4241 const pollBlock = blockWrapper.block as PubLeafletBlocksPoll.Main;
4343- console.log(pollBlock);
4442 // Check if this poll's rkey matches our entity ID
4543 const rkey = pollBlock.pollRef.uri.split("/").pop();
4644 if (rkey === props.entityID) {