Skip to content

Add speaker section#32

Open
nataliey16 wants to merge 13 commits intomainfrom
add-speaker-section
Open

Add speaker section#32
nataliey16 wants to merge 13 commits intomainfrom
add-speaker-section

Conversation

@nataliey16
Copy link

Added the speaker section of the website.

This was accomplished by creating two components: SpeakerHeader and SpeakerCard. The SpeakerHeader contains a hard-coded title and the description of the section. For the SpeakerCard component, I used Content Collections to render the content of each card. The data of each card is currently stored in a JSON file (to streamline the rendering process) and passed as a Prop to the component using the CollectionEntry utility. I used this approach to ensure flexibility and scalability in case we add more speakers or if we want to link our content using Contentful in the future.

Screenshot 2025-01-14 151535

@lindan4 lindan4 requested review from a team and removed request for NobleTyler and lindan4 January 19, 2025 19:15
tsconfig.json Outdated
Comment on lines +2 to +6
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"strictNullChecks": true, // add if using `base` template
"allowJs": true // required, and included with all Astro templates
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nataliey16 Why was this added?

Copy link
Author

@nataliey16 nataliey16 Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially had that when I was using defining the types but I forgot to delete it since Im no longer doing this. I updated my pull request deleting that change. I also fix some responsive issues.

Comment on lines +8 to +12
import type { CollectionEntry } from 'astro:content';

interface SpeakerContentProps {
speaker: CollectionEntry<'speakers'>
}
Copy link
Collaborator

@lindan4 lindan4 Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how TypeScript is being used here

@lindan4
Copy link
Collaborator

lindan4 commented Feb 8, 2025

You will have to rebase the PR as there are merge conflicts. I know that you rebased the PR earlier, but another approach would be to run:

git rebase main

and work through the merge conflicts one by one

Copy link
Collaborator

@lindan4 lindan4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-02-07 at 8 04 16 PM

I am unable to start the project from your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants