Add event page for Benefit Brunch with announcement functionality and styling updates. Implemented event details, QR code, and responsive design in CSS. Enhanced accessibility and user experience with announcement messages and quick exit feature.
This commit is contained in:
1 parent
00b0ce8cd7
commit
05d6d16c9c
5 files changed
+502
-5
No files matched your search
+101
-5
@@ -14,7 +14,8 @@
|
||||
.who-we-are-hero-content,
|
||||
.get-involved-hero-content,
|
||||
.staying-safe-hero-content,
|
||||
.shop-church-hero-content {
|
||||
.shop-church-hero-content,
|
||||
.event-hero-content {
|
||||
gap: 5rem;
|
||||
}
|
||||
|
||||
@@ -300,6 +301,28 @@
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.event-hero-content,
|
||||
.event-details-heading {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 5rem;
|
||||
}
|
||||
|
||||
.event-hero-copy {
|
||||
max-width: 100rem;
|
||||
}
|
||||
|
||||
.event-qr {
|
||||
width: min(100%, 42rem);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.event-details-heading > .description {
|
||||
padding-top: 3rem;
|
||||
padding-left: 0;
|
||||
border-top: 1px solid var(--color-gray);
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 59em) {
|
||||
@@ -399,7 +422,8 @@
|
||||
padding: 8rem 0 12rem;
|
||||
}
|
||||
|
||||
.shop-church-hero {
|
||||
.shop-church-hero,
|
||||
.event-hero {
|
||||
padding: 8rem 0 12rem;
|
||||
}
|
||||
|
||||
@@ -411,6 +435,46 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.announcement-bar--active {
|
||||
grid-template-areas:
|
||||
"emergency exit"
|
||||
"message message";
|
||||
}
|
||||
|
||||
.announcement-bar--active .emergency-message {
|
||||
grid-area: emergency;
|
||||
}
|
||||
|
||||
.announcement-bar--active .quick-exit {
|
||||
grid-area: exit;
|
||||
}
|
||||
|
||||
.announcement-bar--active .announcement-message {
|
||||
display: block;
|
||||
grid-area: message;
|
||||
padding-top: 0.4rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.event-details-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
body:has(.announcement-bar--active) .hero-section {
|
||||
padding-top: 24rem;
|
||||
}
|
||||
|
||||
body:has(.announcement-bar--active) .get-help-main,
|
||||
body:has(.announcement-bar--active) .what-we-do-main,
|
||||
body:has(.announcement-bar--active) .talitha-koum-main,
|
||||
body:has(.announcement-bar--active) .who-we-are-main,
|
||||
body:has(.announcement-bar--active) .get-involved-main,
|
||||
body:has(.announcement-bar--active) .staying-safe-main,
|
||||
body:has(.announcement-bar--active) .shop-church-main,
|
||||
body:has(.announcement-bar--active) .event-main {
|
||||
padding-top: 20rem;
|
||||
}
|
||||
|
||||
.immediate-help-content,
|
||||
.safety-guide-content {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -857,10 +921,26 @@
|
||||
.who-we-are-main,
|
||||
.get-involved-main,
|
||||
.staying-safe-main,
|
||||
.shop-church-main {
|
||||
.shop-church-main,
|
||||
.event-main {
|
||||
padding-top: 14rem;
|
||||
}
|
||||
|
||||
body:has(.announcement-bar--active) .hero-section {
|
||||
padding-top: 21rem;
|
||||
}
|
||||
|
||||
body:has(.announcement-bar--active) .get-help-main,
|
||||
body:has(.announcement-bar--active) .what-we-do-main,
|
||||
body:has(.announcement-bar--active) .talitha-koum-main,
|
||||
body:has(.announcement-bar--active) .who-we-are-main,
|
||||
body:has(.announcement-bar--active) .get-involved-main,
|
||||
body:has(.announcement-bar--active) .staying-safe-main,
|
||||
body:has(.announcement-bar--active) .shop-church-main,
|
||||
body:has(.announcement-bar--active) .event-main {
|
||||
padding-top: 18rem;
|
||||
}
|
||||
|
||||
.get-help-hero {
|
||||
min-height: calc(100svh - 14rem);
|
||||
padding: 6rem 0;
|
||||
@@ -875,6 +955,10 @@
|
||||
min-height: calc(100svh - 14rem);
|
||||
}
|
||||
|
||||
.event-hero {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.get-help-hero-content {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 5rem;
|
||||
@@ -886,7 +970,8 @@
|
||||
.who-we-are-hero-copy h1,
|
||||
.get-involved-hero-copy h1,
|
||||
.staying-safe-hero-copy h1,
|
||||
.shop-church-hero-copy h1 {
|
||||
.shop-church-hero-copy h1,
|
||||
.event-hero-copy h1 {
|
||||
font-size: clamp(5rem, 15vw, 6.8rem);
|
||||
}
|
||||
|
||||
@@ -896,16 +981,27 @@
|
||||
.get-involved-hero-actions,
|
||||
.staying-safe-hero-actions,
|
||||
.shop-church-hero-actions,
|
||||
.event-hero-actions,
|
||||
.what-we-do-hero-actions .btn,
|
||||
.talitha-koum-hero-actions .btn,
|
||||
.who-we-are-hero-actions .btn,
|
||||
.get-involved-hero-actions .btn,
|
||||
.staying-safe-hero-actions .btn,
|
||||
.shop-church-hero-actions .btn {
|
||||
.shop-church-hero-actions .btn,
|
||||
.event-hero-actions .btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.event-detail-card {
|
||||
min-height: 0;
|
||||
padding: 3rem 2.5rem;
|
||||
}
|
||||
|
||||
.event-detail-card h3 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.talitha-koum-hero-image {
|
||||
box-shadow: 1rem 1rem 0 var(--color-green);
|
||||
}
|
||||
|
||||
+156
@@ -261,6 +261,19 @@ p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.announcement-link:link,
|
||||
.announcement-link:visited {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid currentColor;
|
||||
padding-bottom: 0.15em;
|
||||
}
|
||||
|
||||
.announcement-link:hover,
|
||||
.announcement-link:active {
|
||||
color: var(--color-yellow);
|
||||
}
|
||||
|
||||
.quick-exit {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -3223,3 +3236,146 @@ button:focus-visible {
|
||||
.shop-visit-details .btn {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
/* EVENT PAGE */
|
||||
|
||||
.event-main {
|
||||
padding-top: 16rem;
|
||||
}
|
||||
|
||||
.event-hero {
|
||||
padding: 8rem 0 12rem;
|
||||
}
|
||||
|
||||
.event-hero-content {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.15fr) minmax(32rem, 0.7fr);
|
||||
gap: 8rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.event-hero-copy h1 {
|
||||
max-width: 90rem;
|
||||
margin: 0;
|
||||
font-size: clamp(6.4rem, 5.5vw, 9.6rem);
|
||||
line-height: 0.98;
|
||||
}
|
||||
|
||||
.event-hero-copy .description {
|
||||
max-width: 72rem;
|
||||
}
|
||||
|
||||
.event-hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 3rem;
|
||||
align-items: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.event-qr {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
margin: 0;
|
||||
padding: 3.2rem 3.2rem 2.6rem;
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
box-shadow: 2rem 2rem 0 var(--color-yellow);
|
||||
}
|
||||
|
||||
.event-qr img {
|
||||
display: block;
|
||||
width: min(100%, 32rem);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.event-qr figcaption {
|
||||
color: var(--color-teal);
|
||||
font-family: "Karla", sans-serif;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.event-details-section {
|
||||
padding: 12rem 0;
|
||||
background-color: rgba(172, 191, 196, 0.13);
|
||||
}
|
||||
|
||||
.event-details-heading {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(32rem, 0.8fr);
|
||||
gap: 8rem;
|
||||
align-items: end;
|
||||
margin-bottom: 6rem;
|
||||
}
|
||||
|
||||
.event-details-heading h2 {
|
||||
font-size: clamp(5rem, 5vw, 8rem);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.event-details-heading > .description {
|
||||
padding-left: 4rem;
|
||||
border-left: 1px solid var(--color-gray);
|
||||
}
|
||||
|
||||
.event-details-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.event-detail-card {
|
||||
display: flex;
|
||||
min-height: 32rem;
|
||||
flex-direction: column;
|
||||
gap: 1.6rem;
|
||||
padding: 4rem;
|
||||
background-color: var(--color-white);
|
||||
border-top: 6px solid var(--color-green);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.event-detail-card--teal {
|
||||
color: var(--color-white);
|
||||
background-color: var(--color-teal);
|
||||
border-color: var(--color-yellow);
|
||||
}
|
||||
|
||||
.event-detail-card--yellow {
|
||||
background-color: var(--color-yellow);
|
||||
border-color: var(--color-teal);
|
||||
}
|
||||
|
||||
.event-detail-card h3 {
|
||||
color: var(--color-teal);
|
||||
font-size: 3.6rem;
|
||||
line-height: 1.08;
|
||||
}
|
||||
|
||||
.event-detail-card--teal h3,
|
||||
.event-detail-card--teal a:link,
|
||||
.event-detail-card--teal a:visited {
|
||||
color: var(--color-white);
|
||||
}
|
||||
|
||||
.event-detail-card p:last-child,
|
||||
.event-detail-card p:nth-of-type(2) {
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.event-detail-card a:link,
|
||||
.event-detail-card a:visited {
|
||||
color: inherit;
|
||||
font-weight: 600;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
.event-detail-card .link-btn {
|
||||
margin-top: auto;
|
||||
}
|
||||
Reference in new issue
Block a user