From 8eb6b409b48ceb3ddbd2e978a82c6c7625bc523a Mon Sep 17 00:00:00 2001 From: poojagunturu96 Date: Tue, 12 Nov 2024 18:34:55 -0600 Subject: [PATCH 1/2] update styles and markup for cci cta bar --- src/scss/components/_cta-bar.scss | 64 ++++++++++++ src/templates/office-cci-home.twig | 122 ++++++++++++++++++++++ src/templates/partials/anchor-header.twig | 2 +- src/templates/partials/cta-bar.twig | 23 +++- src/templates/partials/social-links.twig | 8 +- 5 files changed, 211 insertions(+), 8 deletions(-) create mode 100644 src/templates/office-cci-home.twig diff --git a/src/scss/components/_cta-bar.scss b/src/scss/components/_cta-bar.scss index 620addcbe..1b448117e 100644 --- a/src/scss/components/_cta-bar.scss +++ b/src/scss/components/_cta-bar.scss @@ -42,3 +42,67 @@ transition: opacity 0.2s; background: $white; } + +// CCI CTA bar +.cta-bar.link-list { + display: flex; + background-color: $blue-lighter; + color: $navy; + flex-direction: column; + align-items: center; + padding-top: $spacing-2; + + @include breakpoint(md) { + padding-bottom: $spacing-2; + } + + @include breakpoint(lg) { + flex-direction: row; + justify-content: center; + align-items: baseline; + line-height: $line-height-solid; + } + + .cta-bar__links { + margin-bottom: $spacing-1; + + @include breakpoint(sm) { + margin-bottom: 0; + } + + @include breakpoint(lg) { + padding-right: $spacing-5; + border-right: 1px solid $gray-light; + } + } + + a.cta-bar__link { + font-size: $typescale-2; + @include link-border; + white-space: nowrap; + + &:not(:first-child) { + margin-left: $spacing-3; + + @include breakpoint(lg) { + margin-left: $spacing-5; + } + } + } + + ul { + @include breakpoint(lg) { + padding-left: rem(28); + } + } + + &:hover, + &:focus { + background: $blue-lighter; + + .cta-bar__text, + .cta-bar__button { + opacity: 1; + } + } +} diff --git a/src/templates/office-cci-home.twig b/src/templates/office-cci-home.twig new file mode 100644 index 000000000..43a73debd --- /dev/null +++ b/src/templates/office-cci-home.twig @@ -0,0 +1,122 @@ +{% extends "anchor-layout.twig" %} + +{% set page_title = 'Center for Careers and Internships' %} + +{% set office_header_nav = + office_header_nav|default( + [ + { + text: 'See An Advisor', + active: true, + items: [ + { + text: 'Helpful Links' + }, + { + text: 'How to apply' + }, + { + text: 'Types of aid' + }, + { + text: 'Education Loans' + } + ] + }, + { + text: 'Events and Programs', + items: [ + { + text: 'Helpful Links' + }, + { + text: 'How to apply' + }, + { + text: 'Types of aid' + }, + { + text: 'Education Loans' + } + ] + }, + { + text: 'CCI News' + }, + { + text: 'I Want To...', + items: [ + { + text: 'Helpful Links' + }, + { + text: 'How to apply' + }, + { + text: 'Types of aid' + }, + { + text: 'Education Loans' + } + ] + }, + { + text: 'Alumni', + items: [ + { + text: 'Helpful Links' + }, + { + text: 'How to apply' + }, + { + text: 'Types of aid' + }, + { + text: 'Education Loans' + } + ] + }, + { + text: 'Faculty' + }, + { + text: 'Employers', + items: [ + { + text: 'Helpful Links' + }, + { + text: 'How to apply' + }, + { + text: 'Types of aid' + }, + { + text: 'Education Loans' + } + ] + }, + { + text: 'Families' + } + ] + ) +%} + +{% block layout_header %} + {% include 'partials/midd-header.twig' %} + {% embed 'partials/anchor-header.twig' with { + is_front: true + }%} + {% block anchor_header_content %} + {% include 'partials/cta-bar.twig' with { + cci: true + } %} + {% endblock %} + {% endembed %} +{% endblock %} + +{% block page %} + {% include 'partials/top-level-layout.twig' %} +{% endblock %} diff --git a/src/templates/partials/anchor-header.twig b/src/templates/partials/anchor-header.twig index fffcb00a4..de80cd544 100644 --- a/src/templates/partials/anchor-header.twig +++ b/src/templates/partials/anchor-header.twig @@ -1,4 +1,4 @@ -{% set is_front = false %} +{# {% set is_front = false %} #}
diff --git a/src/templates/partials/cta-bar.twig b/src/templates/partials/cta-bar.twig index 5ffff6dde..0f89ec35d 100644 --- a/src/templates/partials/cta-bar.twig +++ b/src/templates/partials/cta-bar.twig @@ -1,4 +1,19 @@ - - {{ text }} - {{ button }} - +{% if cci %} + +{% else %} + + {{ text }} + {{ button }} + +{% endif %} diff --git a/src/templates/partials/social-links.twig b/src/templates/partials/social-links.twig index 325669c33..6706d8629 100644 --- a/src/templates/partials/social-links.twig +++ b/src/templates/partials/social-links.twig @@ -1,8 +1,10 @@ +{% set social_items = items|default(['discord', 'linkedin', 'instagram', 'tiktok', 'youtube', 'mastodon', 'pinterest', 'twitter', 'vimeo', 'facebook', 'wechat', 'weibo', 'x', 'threads']) %} +