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
+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