Skip to content

Commit

Permalink
Implement event notifications #68 (#269)
Browse files Browse the repository at this point in the history
* Event notifications block #68 

* Calendar invite #72
  • Loading branch information
TomaszDziezykNetcentric authored and cogniSyb committed Dec 12, 2023
1 parent 1b56ed7 commit b32f113
Show file tree
Hide file tree
Showing 16 changed files with 679 additions and 106 deletions.
8 changes: 4 additions & 4 deletions blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@
.footer-list .footer__title:not(.expand):focus,
.footer-list-item a:focus,
.footer-bar a:focus {
outline: 2px solid var(--light-border-focus);
outline: 2px solid var(--border-focus);
}

button.v2-scroll-to-top:focus {
outline: 0;
}

.v2-scroll-to-top:focus-visible {
outline: 2px solid var(--light-border-focus);
outline: 2px solid var(--border-focus);
outline-offset: 1px;
}

Expand Down Expand Up @@ -230,7 +230,7 @@ button.v2-scroll-to-top:focus {
gap: 20px
}

.footer-list,
.footer-list,
.footer-list-item {
display: flex;
flex-direction: column;
Expand All @@ -247,7 +247,7 @@ button.v2-scroll-to-top:focus {
max-height: 100%;
overflow: auto;
}

.footer-list-item a {
gap: 8px;
align-items: center;
Expand Down
176 changes: 176 additions & 0 deletions blocks/v2-event-notify/v2-event-notify.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
.v2-event-notify__container > * {
max-width: 694px;
margin: auto;
}

.v2-event-notify__container .v2-event-notify__text-wrapper {
display: flex;
flex-direction: column;
gap: 8px;
text-align: center;
max-width: var(--text-block-max-width);
margin: 40px auto;
}

.v2-event-notify__container .v2-event-notify__title {
font-size: var(--f-heading-4-font-size);
letter-spacing: var(--f-heading-4-letter-spacing);
line-height: var(--f-heading-4-line-height);
margin: 0;
}

.v2-event-notify__container .v2-event-notify__text-wrapper p {
margin: 0;
}

.v2-event-notify__container .event-notify__wrapper {
display: flex;
flex-direction: column;
gap: 16px;
}

.v2-event-notify__container .event-notify__field-wrapper {
display: flex;
flex-direction: column;
gap: 8px;
}

.v2-event-notify__container .v2-forms__container input {
background: var(--c-primary-white);
font-size: var(--f-body-font-size);
letter-spacing: var(--f-body-letter-spacing);
line-height: var(--f-body-line-height);
margin: 0;
}

.v2-event-notify__container .event-notify__buttons {
gap: 24px;
display: flex;
flex-direction: column;
align-items: center;
}

.v2-event-notify__container .event-notify__agreement-section {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 40px;
}

.v2-event-notify__container .event-notify__error-message {
color: var(--c-error-red);
font-size: var(--f-caption-font-size);
line-height: var(--f-caption-line-height);
letter-spacing: var(--f-caption-letter-spacing);
}

.v2-event-notify__container .v2-event-notify__message-text {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 40px 0;
text-align: center;
max-width: 506px;
}

.v2-event-notify__container .v2-event-notify__message-text p {
margin: 0;
}

.v2-event-notify__container .v2-event-notify__button-wrapper {
display: flex;
justify-content: center;
margin-bottom: 40px;
}

.v2-event-notify__container .v2-social-block {
max-width: unset;
}

.v2-event-notify__container input:user-invalid,
.v2-event-notify__container input:user-invalid:hover,
.v2-event-notify__container input:user-invalid:focus {
border-color: var(--c-error-red);
}

.v2-event-notify__container .event-notify__add-event-button {
cursor: pointer;
}

.event-notify__policy {
margin: 16px 0 32px;
}

@media (min-width: 744px) {
.v2-event-notify__container .event-notify__wrapper {
display: flex;
flex-flow: row wrap;
}

.v2-event-notify__container .event-notify__wrapper > * {
width: calc(50% - 8px);
}

.v2-event-notify__container .v2-event-notify__text-wrapper {
gap: 16px;
}

.v2-event-notify__container .event-notify__agreement-section {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}

.v2-event-notify__container .event-notify__buttons {
flex-direction: row;
justify-content: center;
}

.v2-event-notify__container .v2-event-notify__message-text {
gap: 16px;
}
}

@media (min-width: 1200px) {
.v2-event-notify__container .v2-event-notify__text-wrapper {
margin: 48px auto;
gap: 24px;
}

.v2-event-notify__container .v2-event-notify__title {
font-size: var(--f-heading-3-font-size);
letter-spacing: var(--f-heading-3-letter-spacing);
line-height: var(--f-heading-3-line-height);
margin: 0;
}

.v2-event-notify__container .v2-event-notify__text-wrapper p {
font-size: var(--f-body-2-font-size);
letter-spacing: var(--f-body-2-letter-spacing);
line-height: var(--f-body-2-line-height);
}

.v2-event-notify__container .event-notify__wrapper {
column-gap: 20px;
row-gap: 24px;
}

.v2-event-notify__container .event-notify__wrapper > * {
width: calc(50% - 10px);
}

.v2-event-notify__container .event-notify__agreement-section {
margin-top: 48px;
}

.v2-event-notify__container .v2-event-notify__message-text {
gap: 24px;
padding: 48px 0;
}

.v2-event-notify__container .v2-event-notify__button-wrapper {
margin-bottom: 48px;
}
}
Loading

0 comments on commit b32f113

Please sign in to comment.