|
| 1 | +/** |
| 2 | + * Sample data for /home preview. |
| 3 | + * |
| 4 | + * Convex schema currently only carries auth tables |
| 5 | + * (apps/dashboard/convex/schema.ts), so posts/events are not persisted yet. |
| 6 | + * These constants let us preview the feed against the DashboardPost and |
| 7 | + * HomeSidePanel shapes exported from shared/ui and apps/dashboard/src/pages/Home.tsx. |
| 8 | + * |
| 9 | + * Content here is original placeholder copy (not taken from the Figma mockup). |
| 10 | + */ |
| 11 | + |
| 12 | +import type { DashboardPostProps } from "@app/ui"; |
| 13 | +import type { HomeSidePanelProps } from "../pages/Home"; |
| 14 | + |
| 15 | +export const SAMPLE_POSTS: DashboardPostProps[] = [ |
| 16 | + { |
| 17 | + organizations: [{ name: "Cornell Outing Club" }], |
| 18 | + postedAt: "Apr 21", |
| 19 | + title: "Sunrise hike at Taughannock Falls", |
| 20 | + datetime: "April 27, 5:30am - 8:30am", |
| 21 | + location: "Taughannock Falls trailhead", |
| 22 | + description: |
| 23 | + "Start the weekend early with a guided sunrise hike along the gorge trail. We'll meet at the trailhead, watch the sun come up over the falls, and be back in time for brunch. All experience levels welcome — we'll keep the pace easygoing.", |
| 24 | + descriptionTruncated: true, |
| 25 | + tags: [ |
| 26 | + { label: "Outdoors" }, |
| 27 | + { label: "Just for Fun" }, |
| 28 | + ], |
| 29 | + }, |
| 30 | + { |
| 31 | + organizations: [ |
| 32 | + { name: "WICC" }, |
| 33 | + { name: "CUAUV" }, |
| 34 | + ], |
| 35 | + postedAt: "Apr 20", |
| 36 | + title: "Spring industry mixer with alumni engineers", |
| 37 | + datetime: "April 29, 6:00pm - 8:00pm", |
| 38 | + location: "Duffield Hall Atrium", |
| 39 | + description: |
| 40 | + "Meet Cornell engineering alumni working at early-stage startups and mid-sized tech companies. Casual format — snacks, drinks, and roundtables grouped by discipline. Bring questions about the first two years of an engineering career.", |
| 41 | + descriptionTruncated: true, |
| 42 | + tags: [ |
| 43 | + { label: "You're free!", color: "blue" }, |
| 44 | + { label: "Early Career" }, |
| 45 | + { label: "Tech" }, |
| 46 | + ], |
| 47 | + }, |
| 48 | + { |
| 49 | + organizations: [{ name: "Cornell Fintech Club" }], |
| 50 | + postedAt: "Apr 18", |
| 51 | + title: "Portfolio construction workshop", |
| 52 | + datetime: "April 24, 4:30pm - 6:00pm", |
| 53 | + location: "Statler Hall 265", |
| 54 | + description: |
| 55 | + "A hands-on session on building and rebalancing a long-only equity portfolio. No finance background required — we'll walk through the math and run through a paper-trading exercise together.", |
| 56 | + descriptionTruncated: true, |
| 57 | + tags: [ |
| 58 | + { label: "Mentorship" }, |
| 59 | + { label: "Finance" }, |
| 60 | + ], |
| 61 | + }, |
| 62 | + { |
| 63 | + organizations: [{ name: "Big Red Robotics" }], |
| 64 | + postedAt: "Apr 15", |
| 65 | + title: "Open lab night: meet the team", |
| 66 | + datetime: "April 23, 7:00pm - 9:30pm", |
| 67 | + location: "Upson Hall B17", |
| 68 | + description: |
| 69 | + "Drop by the lab for a tour of our current build, chat with sub-team leads, and see live demos of the drivetrain and vision stack. Pizza while it lasts.", |
| 70 | + descriptionTruncated: true, |
| 71 | + tags: [ |
| 72 | + { label: "Recruitment" }, |
| 73 | + { label: "Tech" }, |
| 74 | + ], |
| 75 | + }, |
| 76 | +]; |
| 77 | + |
| 78 | +export const SAMPLE_SIDE_PANELS: HomeSidePanelProps[] = [ |
| 79 | + { |
| 80 | + title: "This week", |
| 81 | + items: [ |
| 82 | + { |
| 83 | + title: "Sunrise hike at Taughannock", |
| 84 | + orgName: "Cornell Outing Club", |
| 85 | + isForYou: true, |
| 86 | + }, |
| 87 | + { |
| 88 | + title: "Portfolio construction workshop", |
| 89 | + orgName: "Cornell Fintech Club", |
| 90 | + }, |
| 91 | + { |
| 92 | + title: "Open lab night", |
| 93 | + orgName: "Big Red Robotics", |
| 94 | + hasIndicator: true, |
| 95 | + }, |
| 96 | + ], |
| 97 | + }, |
| 98 | + { |
| 99 | + title: "Trending", |
| 100 | + items: [ |
| 101 | + { |
| 102 | + title: "Spring industry mixer", |
| 103 | + orgName: "WICC", |
| 104 | + isForYou: true, |
| 105 | + hasIndicator: true, |
| 106 | + }, |
| 107 | + { |
| 108 | + title: "Intro to quantum computing talk", |
| 109 | + orgName: "Cornell Physics Society", |
| 110 | + }, |
| 111 | + { |
| 112 | + title: "Campus community cleanup", |
| 113 | + orgName: "Cornell Sustainability", |
| 114 | + isForYou: false, |
| 115 | + }, |
| 116 | + ], |
| 117 | + }, |
| 118 | +]; |
0 commit comments