Skip to content

Commit

Permalink
Add landing background color that matches the landing image.
Browse files Browse the repository at this point in the history
  • Loading branch information
natebass committed Nov 15, 2023
1 parent aee82f1 commit cd1d074
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 26 deletions.
40 changes: 19 additions & 21 deletions src/components/home/homeSectionLandingImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,25 @@ import "@/styles/pages/home.scss"
* @constructor
*/
export default function HomeSectionLandingImage({ sectionType }) {
return (
<section className={`home-section-${SectionType.dark} home-landing-image`}>
<div className={`home-landing-container`}>
<h1 className={`home-landing-heading`}>
<span>We are</span> <br />
Open Sacramento
</h1>
<p className={`home-section-paragraph`}>
Join us to address civic challenges and enhance public services for
Sacramento residents through technology and open data. Volunteer now for a
better future!
</p>
<div className={`home-buttons-group`}>
<a href="" className={`home-button`}>Get Started</a>
<a href="" className={`home-button home-button-alt`}> View Projects</a>
</div>
return (
<div className={'home-landing-background'}>
<section className={`home-landing-image`}>
<div className={`home-landing-container`}>
<h1 className={`home-landing-heading`}>
<span>We are</span> <br />
Open Sacramento
</h1>
<p className={`home-section-paragraph`}>
Join us to address civic challenges and enhance public services for
Sacramento residents through technology and open data. Volunteer now for a
better future!
</p>
<div className={`home-buttons-group`}>
<a href="" className={`home-button`}>Get Started</a>
<a href="" className={`home-button home-button-alt`}> View Projects</a>
</div>
</div>
</section>
</div>
<img
src="/img/towerbridgenight.png"
alt="Tower Bridge"
className={`home-section-landing-image`} />
</section>
)
}
2 changes: 1 addition & 1 deletion styles/abstracts/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $primary-500: #112971;
$secondary-500: #ffc107;
$neutral-900: #060718;
$primary-900: #00081f;
$hero-background-color: #030303;
$landing-background-color: #030303;

/*
Screen breakpoints
Expand Down
4 changes: 2 additions & 2 deletions styles/components/navigation-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $toolbar-height: 84px;
width: 100%;
height: $toolbar-height;
color: $secondary-50;
background: $hero-background-color;
background: $landing-background-color;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
z-index: 4;
// overflow: hidden;
Expand Down Expand Up @@ -159,7 +159,7 @@ img {
.navbar-extended-mobile-container {
height: 100%;
color: $secondary-50;
background: $hero-background-color;
background: $landing-background-color;
}

.navbar-extended-desktop-left-container {
Expand Down
8 changes: 6 additions & 2 deletions styles/pages/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ Home page layout
}
}

.home-landing-background {
background-color: $landing-background-color;
color: $neutral-50;
}

.home-landing-container {
width: 40%;
min-height: 721px;
Expand All @@ -30,6 +35,7 @@ Home page layout
flex-direction: column;
justify-content: center;
gap: 24px;
color: $neutral-50;

@media (max-width: $screen-xl) {
width: 70%;
Expand Down Expand Up @@ -66,8 +72,6 @@ Home page layout

.home-section-landing-image {
display: none;
background: $hero-background-color;

@media (max-width: $screen-sm) {
display: block;
width: 100%;
Expand Down

0 comments on commit cd1d074

Please sign in to comment.