Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion src/components/Trendz/BottomCTASection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
gap: 16px;
width: 100%;

@include trendz-up(sm) {
@include trendz-up(md) {
flex-direction: row;
justify-content: center;
align-items: center;
Expand All @@ -116,6 +116,11 @@
border: 1.5px solid #fff;
box-sizing: border-box;

@include trendz-down(xs) {
padding-left: 16px;
padding-right: 16px;
}

&--primary {
background: #fff;
color: var(--color-trendz-accent);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Trendz/FAQSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ const categories = [

#trendz-faq {
background: #fff;
padding: 32px 20px;
padding: 0 20px 32px;
box-sizing: border-box;

@include trendz-up(sm) {
padding: 60px 50px;
padding: 0 50px 60px;
}

@include trendz-up(lg) {
Expand Down
63 changes: 44 additions & 19 deletions src/components/Trendz/HeroSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ const sphereImg = await getImage({
border-color: var(--color-trendz-accent-hover);
color: #ffffff;
}

@include trendz-down(xs) {
padding-left: 16px;
padding-right: 16px;
}
}

.btn-outline {
Expand All @@ -232,6 +237,11 @@ const sphereImg = await getImage({
background: var(--color-trendz-accent);
color: #ffffff;
}

@include trendz-down(xs) {
padding-left: 16px;
padding-right: 16px;
}
}

// Heading slides in from left on page load (matches Animate.css fadeInLeft)
Expand All @@ -242,7 +252,20 @@ const sphereImg = await getImage({
animation-fill-mode: both;
}

// 600px+ — hero image visible below content, buttons go horizontal
@include trendz-down(xs) {
#trendz-hero .hero-container #hero-content {
align-items: center;
text-align: center;

padding: 20px 0;

:global(.trendz-chip) {
margin-left: auto;
margin-right: auto;
}
}
}

@include trendz-up(sm) {
#trendz-hero .hero-container {
margin: 0 40px;
Expand All @@ -254,16 +277,6 @@ const sphereImg = await getImage({
.pe-subTitle {
margin-bottom: 40px;
}

.btn-block {
padding: 0;
flex-direction: row;
width: unset;

div {
width: unset;
}
}
}

.hero-image {
Expand Down Expand Up @@ -291,14 +304,6 @@ const sphereImg = await getImage({
right: 10%;
}
}

.btn-accent {
width: auto;
}

.btn-outline {
width: auto;
}
}

// 960px+ — max-width container, larger fonts, more icons appear
Expand All @@ -308,6 +313,18 @@ const sphereImg = await getImage({
width: calc(100% - 100px);
max-width: 1200px;

#hero-content {
.btn-block {
padding: 0;
flex-direction: row;
width: unset;

div {
width: unset;
}
}
}

.hero-image {
padding: 12% 4% 10% 4%;
}
Expand Down Expand Up @@ -348,6 +365,14 @@ const sphereImg = await getImage({
right: 0;
}
}

.btn-accent {
width: auto;
}

.btn-outline {
width: auto;
}
}

// 1280px+ — side-by-side layout, max container width
Expand Down
15 changes: 13 additions & 2 deletions src/components/Trendz/HowIotImprovesBusinessSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ const items = [
box-sizing: border-box;

@include trendz-up(sm) {
padding: 50px 50px;
}

@include trendz-up(md) {
padding: 100px 50px;
}
}
Expand All @@ -226,6 +230,10 @@ const items = [
text-align: center;
margin: 0 0 100px;

@include trendz-down(sm) {
margin-bottom: 50px;
}

@include trendz-down(xs) {
@include trendz-h3;
margin-bottom: 32px;
Expand Down Expand Up @@ -397,12 +405,15 @@ const items = [

.panel-chips {
display: flex;
flex-direction: column;
flex-direction: row;
gap: 12px;
margin-bottom: 24px;

@include trendz-down(xs) {
flex-direction: column;
}

@include trendz-up(lg) {
flex-direction: row;
margin-bottom: 0;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Trendz/MetricExplorerSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import YouTubeVideo from '../YouTubeVideo.astro';

#trendz-metric-explorer {
background: #fff;
padding: 32px 20px;
padding: 0 20px 32px;
box-sizing: border-box;

@include trendz-up(sm) {
padding: 60px 50px;
padding: 0 50px 60px;
}

@include trendz-up(lg) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Trendz/TopFeaturesSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ const cards = [

#trendz-top-features {
background: var(--web-BG, #f4f8fe);
padding: 32px 20px;
padding: 0 20px 32px;
box-sizing: border-box;

@include trendz-up(sm) {
padding: 60px 50px;
padding: 0 50px 60px;
}

@include trendz-up(lg) {
Expand Down