Skip to content

Commit

Permalink
blow nav logo up
Browse files Browse the repository at this point in the history
  • Loading branch information
frimpongopoku committed Oct 21, 2024
1 parent c6383a6 commit 23eff19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/assets/styles/mobile-only.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
.spt-v2-nav img {
margin: 0px;
height: 55px;
height: 75px;
}
.spt-section-component {
padding: 4vh 1vw;
Expand Down
9 changes: 8 additions & 1 deletion src/assets/styles/pc-only.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@
min-height: 300px;
}

.spt-v2-nav {
display: flex;
flex-direction: row;

}

/* -- SPT THEME ---- */
.spt-v2-nav img {
margin: 0px;
height: 100px;
height: 170px;
margin-left: auto;
}
.spt-s-img {
border-radius: 15px;
Expand Down
7 changes: 5 additions & 2 deletions src/components/themes/sptV2/components/hero/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Hero = ({ themeKey }) => {
autoplay: true,
autoplaySpeed: 10000, //Waiting time for next slide
};
const images = (campaign?.media ||[])?.map(item => item?.media?.url)
const images = (campaign?.media || [])?.map((item) => item?.media?.url);
// const images = [
// // "https://via.placeholder.com/1600x900/1975bb/fff?text=1975bb",
// "https://massenergize-prod-files.s3.amazonaws.com/media/alternative-alternative-energy-clouds-eco-energy-433308.jpg",
Expand All @@ -35,6 +35,7 @@ const Hero = ({ themeKey }) => {
<>
<div className="spt-v2-nav">
<img
className="spt-v2-logo"
// style={{ objectFit: "contain", height: 70 }}
src={primary_logo?.url}
alt=""
Expand All @@ -57,7 +58,9 @@ const Hero = ({ themeKey }) => {
<div className="hero-content">
<h1 className="hero-title">{campaign?.title}</h1>
<p className="hero-subtext">{campaign?.tagline}</p>
<SPTButton themeKey={themeKey} href={campaign?.call_to_action?.url}>{campaign?.call_to_action?.text}</SPTButton>
<SPTButton themeKey={themeKey} href={campaign?.call_to_action?.url}>
{campaign?.call_to_action?.text}
</SPTButton>
{/* <div
className="spt-btn touchable-opacity custom-margin"
style={{ "--my-custom-margin": "20px 0px" }}
Expand Down

0 comments on commit 23eff19

Please sign in to comment.