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

Footer [TMZ-61] #33

Merged
merged 48 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e7a6d85
TMZ-70 wip adding header
mserino Oct 1, 2024
117ae35
TMZ-70 add style and content controls
mserino Oct 2, 2024
ecafaf7
TMZ-70 adding advanced controls
mserino Oct 3, 2024
cf16840
TMZ-70 lint
mserino Oct 3, 2024
386037d
TMZ-70 lint
mserino Oct 3, 2024
2fc0050
TMZ-70 addressing CR comments
mserino Oct 7, 2024
e72dfde
TMZ-70 adding and styling header logo and title
mserino Oct 7, 2024
4a6803a
TMZ-70 styles for site identity and placeholders
mserino Oct 8, 2024
f7ff73b
TMZ-70 wip adding toggle
mserino Oct 8, 2024
c40ba68
TMZ-70 lint
mserino Oct 8, 2024
1cc4748
TMZ-70 wip
mserino Oct 8, 2024
ff97d66
TMZ-70 moving Header into TemplateParts module
mserino Oct 8, 2024
72dfe45
Merge branch 'feature/TMZ-70-header' into feature/TMZ-70-header-logo-…
mserino Oct 8, 2024
edef777
TMZ-70 CR comments
mserino Oct 8, 2024
df700fc
Merge branch 'feature/TMZ-70-header' into feature/TMZ-70-header-logo-…
mserino Oct 8, 2024
40b3adf
TMZ-70 add menu item and style highlight and underline on hover
mserino Oct 8, 2024
fa97bee
use wp native function for site logo / title/ url
nuritsha Oct 9, 2024
e720cdd
TMZ-70 navigation active state
mserino Oct 9, 2024
1a4d6c1
Merge pull request #3 from 10up/tweak/TMZ-70-structure-changes
mserino Oct 9, 2024
76a4885
remove custom advanced tab
nuritsha Oct 9, 2024
be8e2b6
remove advanced related code
nuritsha Oct 9, 2024
0208724
Merge branch 'tweak/TMZ-70-structure-changes' into feature/TMZ-70-hea…
nuritsha Oct 9, 2024
78c081e
Merge branch 'master' into feature/TMZ-70-header-logo-title
mserino Oct 9, 2024
2097c1f
TMZ-70 chevron and submenu style wip
mserino Oct 9, 2024
f471593
TMZ-70 box stylings and responsive
mserino Oct 11, 2024
b18347c
TMZ-70 responsive styles
mserino Oct 11, 2024
30eff69
TMZ-70 last child styles
mserino Oct 11, 2024
3a60982
Merge branch 'master' into feature/TMZ-70-header-logo-title
mserino Oct 11, 2024
ec722f6
TMZ-70 lint
mserino Oct 13, 2024
677cbb2
TMZ-70 adding JS functionality
mserino Oct 13, 2024
e95e5d6
TMZ-60 header dropdown functionality
mserino Oct 14, 2024
a55ec75
TMZ-60 behavior functionality wip
mserino Oct 15, 2024
7335e30
TMZ-60 adding scroll behavior
mserino Oct 16, 2024
a73c74c
TMZ-60 lint
mserino Oct 16, 2024
589b403
TMZ-60 lint
mserino Oct 16, 2024
7f2d823
TMZ-61 footer controls and base render
mserino Oct 17, 2024
cc27a45
TMZ-61 render side content
mserino Oct 17, 2024
5fa8d23
TMZ-61 footer rendering and styles
mserino Oct 18, 2024
74d9dcd
TMZ-61 adjusting containers
mserino Oct 18, 2024
3c7e69a
TMZ-61 footer site title and padding default
mserino Oct 18, 2024
7199af6
Merge branch 'master' into feature/TMZ-61-footer
mserino Oct 21, 2024
2f2d506
TMZ-61 enqueue icons
mserino Oct 21, 2024
5acfe28
TMZ-61 lint
mserino Oct 21, 2024
25f2d8f
Merge branch 'master' into feature/TMZ-61-footer
mserino Oct 21, 2024
d192d16
TMZ-61 helloPlusLogo available in the window
mserino Oct 21, 2024
7d9e7df
TMZ-61 addressing CR comments
mserino Oct 22, 2024
76842dd
TMZ-61 improvements
mserino Oct 22, 2024
5d3504b
Merge branch 'master' into feature/TMZ-61-footer
mserino Oct 22, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export default class helloPlusLogo {
}
}

new helloPlusLogo();
const HelloPlusLogoClass = new helloPlusLogo();
window.helloPlusLogo = HelloPlusLogoClass;
202 changes: 202 additions & 0 deletions modules/template-parts/assets/scss/hello-plus-footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
@import "./breakpoints";
@import "./variables";

.ehp-footer {
--footer-logo-width: 68px;
--footer-title-color: #28292B;
--footer-description-color: #28292B;
--footer-copyright-color: #28292B;
--footer-menu-heading-color: #28292B;
--footer-contact-heading-color: #28292B;
--footer-menu-item-spacing: 8px;
--footer-menu-item-color: #28292B;
--footer-menu-item-color-hover: #555963;
--footer-contact-information-color: #28292B;
--footer-box-border-width: 1px;
--footer-box-border-color: #555963;

--footer-icon-size-default: 20px;
--footer-icon-size-small: 16px;
--footer-icon-size-large: 24px;
--footer-icon-size: var(--footer-icon-size-default);
--footer-icon-spacing-default: 16px;
--footer-icon-spacing-small: 12px;
--footer-icon-spacing-large: 20px;
--footer-icon-spacing: var(--footer-icon-spacing-default);
--footer-icon-color: #28292B;
--footer-icon-color-hover: #555963;

--footer-box-padding-block-start: 40px;
--footer-box-padding-block-end: 40px;
--footer-box-padding-inline-start: 40px;
--footer-box-padding-inline-end: 40px;

--footer-vertical-gap-content-default: 20px;
--footer-vertical-gap-copyright-default: 60px;
--footer-vertical-gap-content-narrow: 16px;
--footer-vertical-gap-copyright-narrow: 44px;
--footer-vertical-gap-content-wide: 28px;
--footer-vertical-gap-copyright-wide: 88px;
--footer-vertical-gap-content: var(--footer-vertical-gap-content-default);
--footer-vertical-gap-copyright: var(--footer-vertical-gap-copyright-default);

--footer-text-width-default: 320px;
--footer-text-width-narrow: 204px;
--footer-text-width-wide: 500px;
--footer-text-width: var(--footer-text-width-default);

@media screen and (min-width: $screen-tablet-min) {
--footer-box-padding-block-start: 60px;
--footer-box-padding-block-end: 60px;
--footer-box-padding-inline-start: 60px;
--footer-box-padding-inline-end: 60px;
}

@media screen and (min-width: $screen-desktop-min) {
--footer-box-padding-block-start: 100px;
--footer-box-padding-block-end: 100px;
--footer-box-padding-inline-start: 100px;
--footer-box-padding-inline-end: 100px;
}

display: flex;
flex-direction: column;
gap: var(--footer-vertical-gap-copyright);
padding-block-start: var(--footer-box-padding-block-start);
padding-block-end: var(--footer-box-padding-block-end);
padding-inline-start: var(--footer-box-padding-inline-start);
padding-inline-end: var(--footer-box-padding-inline-end);

&.has-box-border {
border-top: var(--footer-box-border-width) solid var(--footer-box-border-color);
}

&__row {
display: flex;
flex-direction: column;
gap: 20px;

@media screen and (min-width: $screen-tablet-min) {
gap: 0;
flex-direction: row;
justify-content: space-between;
}
}

&__nav-container {
@media screen and (min-width: $screen-tablet-min) {
display: flex;
justify-content: center;
}
}

&__contact-container {
@media screen and (min-width: $screen-tablet-min) {
display: flex;
justify-content: flex-end;
}
}

&__side-content,
&__navigation,
&__contact {
max-width: var(--footer-text-width);
width: 100%;
}

&__side-content {
display: flex;
flex-direction: column;
gap: var(--footer-vertical-gap-content);
}

&__site-link {
align-items: center;
display: flex;
margin: 0;

img {
width: var(--footer-logo-width);
}
}

&__site-title {
color: var(--footer-title-color);
margin: 0;
}

&__description {
color: var(--footer-description-color);
margin: 0;
}

&__copyright {
color: var(--footer-copyright-color);
grid-column: 1 / -1;
}

&__social-icons {
display: flex;
flex-direction: row;
gap: var(--footer-icon-spacing);
}

&__social-icon {
align-items: center;
color: var(--footer-icon-color);
display: inline-flex;
font-size: var(--footer-icon-size);
transition: $transition;

svg {
fill: var(--footer-icon-color);
height: var(--footer-icon-size);
width: var(--footer-icon-size);
transition: $transition;
}

&:hover,
&:focus {
color: var(--footer-icon-color-hover);
transition: $transition;

svg {
fill: var(--footer-icon-color-hover);
transition: $transition;
}
}
}

&__menu-heading {
color: var(--footer-menu-heading-color);
margin: 0 0 20px;
}

&__contact-heading {
color: var(--footer-contact-heading-color);
margin: 0 0 20px;
}

&__contact-information {
color: var(--footer-contact-information-color);
}

&__menu {
display: flex;
flex-direction: column;
gap: var(--footer-menu-item-spacing);
list-style: none;
padding: 0;
}

&__menu-item,
&__menu-item:not([href]):not([tabindex]) {
color: var(--footer-menu-item-color);
display: inline-flex;

&:hover,
&:focus {
color: var(--footer-menu-item-color-hover);
}
}
}
Loading
Loading