Skip to content
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

fix: Upcoming Events card responsiveness, max-width work and background color FTVA variation in SectionWrapper #35

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"nuxt-graphql-request": "^7.0.5",
"sass": "^1.66.1",
"ucla-library-design-tokens": "^5.22.0",
"ucla-library-website-components": "3.10.0"
"ucla-library-website-components": "3.11.0"
}
}
32 changes: 10 additions & 22 deletions pages/events/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,17 @@ const parsedFTVAEventScreeningDetails = computed(() => {
</div>
</div>

<div class="full-width">
<SectionWrapper
<SectionWrapper
v-if="parsedFtvaEventSeries && parsedFtvaEventSeries.length > 0"
section-title="Upcoming events in this series"
theme="paleblue"
>
<SectionTeaserCard
v-if="parsedFtvaEventSeries && parsedFtvaEventSeries.length > 0"
section-title="Upcoming events in this series"
theme="paleblue"
>
<SectionTeaserCard
v-if="parsedFtvaEventSeries && parsedFtvaEventSeries.length > 0"
data-test="event-series"
:items="parsedFtvaEventSeries"
/>
</SectionWrapper>
</div>
data-test="event-series"
:items="parsedFtvaEventSeries"
/>
</SectionWrapper>
</main>
</template>

Expand Down Expand Up @@ -328,16 +326,6 @@ $pale-blue: #E7EDF2;
}
}

.full-width {
width: 100%;
background-color: $pale-blue;
margin: 0 auto;

.section-wrapper.theme-paleblue {
background-color: $pale-blue;
}
}

/* makes all EventSeries same height */
:deep(.card) {
min-height: 350px;
Expand Down
9 changes: 4 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading