-
Notifications
You must be signed in to change notification settings - Fork 2
feat(cms): about page migration to payload #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
novruzoff
wants to merge
14
commits into
master
Choose a base branch
from
init-payload-globals/about
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
77c5ef6
rebase branch onto main and resolve conflicts
novruzoff 45a4703
feat(cms): about page and corresponding css fixed
novruzoff 3526b81
fix: add fr support and caption for group photo
novruzoff 20488a2
feat(cms): payload-types now support optional caption and fr title
novruzoff 83983c4
refactor: format files with prettier
novruzoff ac38645
fix: change the column name in migration
novruzoff 33a92f7
feat(cms): about page structure and css laid out
novruzoff c834b3d
feat(cms): transfer group photo section to payload
novruzoff 4f97818
fix(cms): change page field to be unaccessible
novruzoff 0bab136
fix(cms): streamline generateMetadata function
novruzoff 267dd27
refactor: extract types from auto-generated types
atlasgong 5ff00d0
cms: create migration
atlasgong 58e1eb7
fix(about): handle null images in hero and team sections
atlasgong 81da645
Revert "fix: change the column name in migration"
atlasgong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,130 @@ | ||
| /* Container for the entire page */ | ||
| .container { | ||
| @apply mx-auto max-w-7xl px-6 pb-12 pt-20; | ||
| } | ||
|
|
||
| /* Main content wrapper */ | ||
| .mainContent { | ||
| @apply relative; | ||
| } | ||
|
|
||
| /* Section spacing */ | ||
| .section { | ||
| @apply mb-16; | ||
| } | ||
|
|
||
| /* Hero Section styles */ | ||
| .heroSection { | ||
| /* Additional adjustments if needed can be added here */ | ||
| } | ||
|
|
||
| /* Wrapper for the hero image (group photo container) */ | ||
| .heroImageWrapper { | ||
| @apply relative mb-16 aspect-[16/9] w-full overflow-hidden rounded-xl shadow-lg transition-all duration-300; | ||
| } | ||
|
|
||
| /* Hero image styling */ | ||
| .heroImage { | ||
| @apply h-full w-full object-cover brightness-90 transition-transform duration-500 group-hover:scale-105 group-hover:brightness-100; | ||
| } | ||
|
|
||
| /* Purple-to-blue overlay that appears on hover */ | ||
| .heroOverlay { | ||
| @apply absolute inset-0 bg-gradient-to-r from-purple-500/20 to-blue-500/20 opacity-0 transition-opacity duration-500 group-hover:opacity-100; | ||
| } | ||
|
|
||
| /* Caption area at the bottom with dark background */ | ||
| .heroCaption { | ||
| @apply absolute bottom-0 left-0 right-0 bg-black/40 p-4 text-white opacity-0 transition-opacity duration-500 group-hover:opacity-100; | ||
| } | ||
|
|
||
| /* Caption title text */ | ||
| .heroCaptionTitle { | ||
| @apply text-xl font-semibold; | ||
| } | ||
|
|
||
| /* Caption subtitle text */ | ||
| .heroCaptionSubtitle { | ||
| @apply text-sm; | ||
| } | ||
|
|
||
| /* Text content container for various sections */ | ||
| .textContent { | ||
| @apply space-y-4; | ||
| } | ||
|
|
||
| /* Page title styling */ | ||
| .title { | ||
| @apply mb-4 bg-gradient-to-r from-purple-500 to-blue-400 bg-clip-text text-center text-3xl font-bold text-transparent md:text-4xl dark:from-purple-400 dark:to-blue-300; | ||
| } | ||
|
|
||
| /* Subtitle styling */ | ||
| .subtitle { | ||
| @apply text-base font-medium leading-relaxed text-cTextOffset; | ||
| } | ||
|
|
||
| /* ------------------- */ | ||
| /* Team Section Styles */ | ||
| /* ------------------- */ | ||
|
|
||
| /* Container for each team section */ | ||
| .teamSection { | ||
| @apply mb-16; | ||
| } | ||
|
|
||
| /* Team section title styling */ | ||
| .teamTitle { | ||
| @apply mb-8 text-center text-3xl font-bold text-cText; | ||
| } | ||
|
|
||
| /* Grid layout for team member cards */ | ||
| .teamGrid { | ||
| @apply flex flex-wrap justify-center gap-8; | ||
| } | ||
|
|
||
| /* Individual team card styling */ | ||
| .teamCard { | ||
| @apply flex w-full flex-col items-center rounded-xl bg-cBackgroundOffset p-6 text-center shadow-lg; | ||
| } | ||
|
|
||
| @media (min-width: 640px) { | ||
| .teamCard { | ||
| width: calc(50% - 1rem); | ||
| } | ||
| } | ||
|
|
||
| @media (min-width: 1024px) { | ||
| .teamCard { | ||
| width: calc(33.333% - 1rem); | ||
| } | ||
| } | ||
|
|
||
| /* Wrapper for the team member image */ | ||
| .teamImageWrapper { | ||
| @apply mb-4 h-40 w-40 overflow-hidden rounded-full; | ||
| } | ||
|
|
||
| /* Team member image styling */ | ||
| .teamImage { | ||
| @apply h-full w-full object-cover; | ||
| } | ||
|
|
||
| /* Container for team member information */ | ||
| .memberInfo { | ||
| @apply flex flex-col items-center; | ||
| } | ||
|
|
||
| /* Team member name styling */ | ||
| .memberName { | ||
| @apply text-xl font-semibold text-cText; | ||
| } | ||
|
|
||
| /* Team member pronouns styling */ | ||
| .memberPronouns { | ||
| @apply ml-1 text-sm italic text-cTextOffset; | ||
| } | ||
|
|
||
| /* Team member role styling */ | ||
| .memberRole { | ||
| @apply font-medium text-cTextOffset; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The
.heroImageclass uses group-hover utilities. Ensure the parent (e.g.,.heroImageWrapper) has a 'group' class if the hover effects are intended.