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

Adding News Letter Notice to Draw Attention #51

Merged
merged 26 commits into from Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
387d402
Added the new svgs and icons.
Majed-Habli Mar 8, 2024
01767c5
Created the new news-letter metabox component.
Majed-Habli Mar 8, 2024
5702157
Added the css for the new metabox component.
Majed-Habli Mar 8, 2024
8346881
Added the js for the new metabox component.
Majed-Habli Mar 8, 2024
ac72e9c
requiring the new scripts in class-drawattention.
Majed-Habli Mar 8, 2024
e4766f3
Requiring review from 'gnarza' ci bypass
otto-bot-git Mar 8, 2024
f15bab0
Automated code formatting on branch done.
otto-bot-git Mar 8, 2024
b3313f2
Updated the javascript to handle last element focused correctly.
Majed-Habli Mar 8, 2024
6937787
Fixed naming conventions.
Majed-Habli Mar 8, 2024
06e194a
Applied fixes to names.
Majed-Habli Mar 8, 2024
0f7e5ba
Merge branch 'implementing-news-letter-component' of https://github.c…
Majed-Habli Mar 8, 2024
bd55c37
Automated code formatting on branch done.
otto-bot-git Mar 8, 2024
9c7d33c
Updated naming conventions.
Majed-Habli Mar 8, 2024
61a153c
Automated code formatting on branch done.
otto-bot-git Mar 8, 2024
cfdb278
Updated the form structure.
Majed-Habli Mar 11, 2024
99c489a
Updated the js to handle modal closing and form submission more grace…
Majed-Habli Mar 11, 2024
cfcddd5
Updated the modal styles as needed.
Majed-Habli Mar 11, 2024
e96ba4e
Automated code formatting on branch done.
otto-bot-git Mar 11, 2024
f04c16f
Updated the css.
Majed-Habli Mar 13, 2024
607f45d
Updated component elements.
Majed-Habli Mar 13, 2024
1e0cce4
Updated the structure of set_meta_boxes_position function.
Majed-Habli Mar 13, 2024
f631181
Merge branch 'implementing-news-letter-component' of https://github.c…
Majed-Habli Mar 13, 2024
922dc4e
Automated code formatting on branch done.
otto-bot-git Mar 13, 2024
8609b03
Fixed typo News Letter to Newsletter.
Majed-Habli Mar 14, 2024
b50daa3
Updated the font styles and image padding.
Majed-Habli Mar 14, 2024
7153907
Made the form take us to a new tab page instead of loading the url on…
Majed-Habli Mar 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file.
280 changes: 280 additions & 0 deletions public/assets/css/custom-meta-box-styles.css
@@ -0,0 +1,280 @@
#DrawAttention_Newsletter {
box-shadow: none;
padding: 0;
border: none;

}

#DrawAttention_Newsletter .postbox-header {
display: none;
}

#DrawAttention_Newsletter .inside{
padding: 0;
}

#DrawAttention_Newsletter.closed .inside {
display: flex !important;
}

.news-letter-container {
font-size: 16px;
padding: 1rem 0;
font-weight: 600;
line-height: 24px;
text-align:center;
position: relative;
font-family: poppins;
box-shadow: 0px 4px 4px 0px #00000040;
}

.w-full {
width: 100%;
}

.modal .modal-content-container {
display: flex;
flex-direction: column;
}

.modal .modal-content .close-button-container {
position: relative;
z-index: 2;
}

.modal .modal-content .close-button-container .dismiss-banner {
top: 6px;
right: 6px;
border: none;
padding: 6px;
display: flex;
box-shadow: none;
position: absolute;
justify-content: flex-end;
cursor: pointer;
background-color: transparent;
}

.news-letter-container button {
border: none;
padding: 8px 16px;
font-weight: 700;
line-height: 24px;
text-transform: uppercase;
background-color: #F5EC55;
box-shadow: 0px 1px 2px 0px #00000030;
}

.news-letter-container button span {
letter-spacing: 2px;
}

.news-letter-container button :hover {
cursor: pointer;
}


.news-letter-container .content-container {
gap: 10px;
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}

form .modal-container .error-message-container{
width: 100%;
display: flex;
align-items: flex-start !important;
}

form .modal-container .error-message-container p {
padding: 0;
}

.modal-container button{
background: linear-gradient(to right, #92CAA4, #1E5263);
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
.news-letter-container .content-container p {
margin: 0;
padding: 0 16px;
}

.news-letter-container .content-container .content-notice {
color: #B5BEC7;
font-size: 10px;
line-height: 15px;
}

.news-letter-container .content-container .md-content-notice {
font-size: 13px;
font-style: italic;
}

.news-letter-container .content-container .input-field {
gap: 16px;
width: 100%;
display:flex;
flex-direction: column;
}

.news-letter-container .content-container {
width: 100%;
}

.news-letter-container .content-container .outer-content {
display:flex;
flex-direction: column;
}

.news-letter-container .content-container .outer-content button:focus {
outline: 2px solid #F5EC55;
border-radius: 3px;
outline-offset: 3px;
}


.news-letter-container .content-container .input-field button {
width: 100%;
}

.news-letter-container .content-container .input-field button:focus {
outline: 2px solid #92CAA4;
outline-offset: 2px;
}

.news-letter-container .content-container {
width: 100%;
}

.news-letter-container .content-container .input-field label {
font-size: 13px;
line-height: 19.5px;
}

.news-letter-container .content-container .outer-content p {
font-size: 13px;
color: black;
padding-bottom: 16px;
line-height: 19.5px;
}

.news-letter-container .content-container .input-field .input-field-container {
gap: 10px;
display: flex;
flex-direction: row-reverse;
border-radius: 3px;
align-items: center;
border: 1px solid #B7B7B7;
}

.news-letter-container .content-container .input-field .input-field-container img {
padding-right: 10px;
border-right: 1px solid #92CAA4;
}

.news-letter-container .content-container .input-field .input-field-container input {
border: none;
height: 100%;
width: 100%;
color: #B7B7B7;
font-weight: normal;
padding: 11px 8px;
}

.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
align-items: center;
justify-content: center;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}

.modal .news-letter-container{
box-shadow: none;
}

.modal-content {
display: flex;
background-color: #fefefe;
min-width: 350px;
max-width: 600px;
color: #92CAA4;
}

.modal-content .news-letter-container {
padding: 30px 40px 16px 40px;
}

.modal-content .modal-info {
display: flex;
height: 100%;
flex-direction: column;
gap: 12px;
align-items: start;
}

.modal-content .modal-info .cta {
font-size: 14px;
color: black;
padding: 0;
line-height: 19.5px;
}

.modal-content .modal-info p {
padding: 0;
text-align: start;
}

.modal-content .modal-info h2 {
display: block;
font-size: 18px;
margin-bottom: 0;
text-transform: uppercase;
}

.modal-content .modal-info h2 span{
display: inline-block;
}

.modal-content .modal-info .headline{
font-weight: bold;
font-size: 26px;
letter-spacing: 2px;
text-transform: uppercase;
background: linear-gradient(to right, #92CAA4, #1E5263);
-webkit-background-clip: text;
color: transparent;
}

.modal-content .modal-info .modal-statement{
font-weight: 300;
font-size: 16px;
color: #2C2C29;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}

.modal-container .error-message{
font-size: 13px;
font-weight: 400;
display: none;
}
4 changes: 4 additions & 0 deletions public/assets/images/close-icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/assets/images/handle-icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions public/assets/images/letter.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/assets/images/mail-icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.