Skip to content

Commit 08fd296

Browse files
committed
styling tweaks
1 parent 85ec370 commit 08fd296

File tree

7 files changed

+65
-136
lines changed

7 files changed

+65
-136
lines changed

src/components/CTASection.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const {
3838
<ContentLimiter maxWidth={maxWidth}>
3939
<div class="cta-content">
4040
<h2 class="cta-title" id={id ? `${id}-title` : undefined}>{title}</h2>
41+
<p class="cta-description">{description}</p>
4142
<div class="cta-button-container">
4243
<AstroButton
4344
text={buttonText}
@@ -48,7 +49,6 @@ const {
4849
}}
4950
/>
5051
</div>
51-
<p class="cta-description">{description}</p>
5252
</div>
5353
</ContentLimiter>
5454
</section>
@@ -94,15 +94,15 @@ const {
9494
width: 100%;
9595

9696
.cta-title {
97-
@include typography(h2);
98-
margin-bottom: 1.5rem;
97+
@include typography(h1);
98+
margin-bottom: 0.5rem;
9999
max-width: 800px;
100100
}
101101

102102
.cta-description {
103103
@include typography(paragraph);
104-
margin-top: 1.5rem;
105-
margin-bottom: 0;
104+
margin-bottom: 1.5rem;
105+
margin-top: 0;
106106
max-width: 700px;
107107
}
108108

src/components/server/ServerSidebar.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ const { sections, title = "Main Features" } = Astro.props;
9090
// Intersection Observer to highlight active section
9191
const observerOptions = {
9292
root: null,
93-
rootMargin: "0px",
94-
threshold: 0.8,
93+
rootMargin: "-20px",
94+
threshold: 1,
9595
};
9696

9797
const observer = new IntersectionObserver((entries) => {

src/pages/_home/components/HomeHeader.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const { trustedBy = true, title, description } = Astro.props;
4646
<!-- <div class="hero-image-container">
4747
<Image src={headerImage} alt="Defguard Zero-Trust VPN diagram" loading={"eager"} />
4848
</div> -->
49-
{trustedBy && <TrustedBy />}
49+
{trustedBy && <TrustedBy forceScroll={true} />}
5050
</HomeSection>
5151

5252
<style lang="scss" is:global>

src/pages/_home/components/TrustedBy.astro

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ import prusa from "./assets/trustedBy/prusa.png";
88
import acquinox from "./assets/trustedBy/acquinox.png";
99
import truevo from "./assets/trustedBy/truevo.png";
1010
import hostinger from "./assets/trustedBy/hostinger.webp";
11+
12+
interface Props {
13+
forceScroll?: boolean;
14+
}
15+
16+
const { forceScroll = false } = Astro.props;
1117
---
1218

13-
<div id="trusted-by">
19+
<div id="trusted-by" class:list={[{ "force-scroll": forceScroll }]}>
1420
<p>Trusted by</p>
1521
<div class="track-container">
1622
<div class="track">
@@ -23,7 +29,6 @@ import hostinger from "./assets/trustedBy/hostinger.webp";
2329
<Image src={truevo} alt="truevo logo image" />
2430
<Image src={deepImage} alt="deepimage logo image" />
2531

26-
<!-- Duplicate logos for seamless scrolling -->
2732
<div class="scroll-duplicate">
2833
<Image src={prusa} alt="prusa logo image" />
2934
<!-- <Image src={penske} alt="team penske logo image" /> -->
@@ -74,13 +79,13 @@ import hostinger from "./assets/trustedBy/hostinger.webp";
7479
width: 100%;
7580
display: flex;
7681
align-items: center;
77-
column-gap: 30px;
82+
column-gap: 50px;
7883

7984
@include break-up(lg) {
8085
flex-flow: row wrap;
8186
justify-content: space-between;
8287
row-gap: 8px;
83-
column-gap: 10px;
88+
column-gap: 50px;
8489
}
8590

8691
@include break-down(lg) {
@@ -97,12 +102,56 @@ import hostinger from "./assets/trustedBy/hostinger.webp";
97102
.scroll-duplicate {
98103
display: flex;
99104
align-items: center;
100-
column-gap: 30px;
105+
column-gap: 50px;
101106

102107
@include break-up(lg) {
103108
display: none;
104109
}
105110
}
106111
}
112+
113+
&.force-scroll {
114+
.track-container {
115+
overflow: hidden;
116+
}
117+
118+
.track {
119+
animation: scroll 20s linear infinite;
120+
width: max-content;
121+
padding: 15px 0;
122+
flex-flow: row nowrap;
123+
justify-content: flex-start;
124+
125+
img {
126+
max-height: 50px;
127+
width: auto;
128+
}
129+
130+
.scroll-duplicate {
131+
display: flex;
132+
align-items: center;
133+
column-gap: 50px;
134+
}
135+
}
136+
137+
@include break-up(lg) {
138+
.track-container {
139+
overflow: hidden;
140+
}
141+
142+
.track {
143+
animation: scroll 25s linear infinite;
144+
width: max-content;
145+
flex-flow: row nowrap;
146+
justify-content: flex-start;
147+
148+
.scroll-duplicate {
149+
display: flex;
150+
align-items: center;
151+
column-gap: 30px;
152+
}
153+
}
154+
}
155+
}
107156
}
108157
</style>

src/pages/_server.astro

Lines changed: 0 additions & 120 deletions
This file was deleted.

src/pages/download-confirm.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const tags = [
6666
<ProductSection padding="none">
6767
<FlexibleSection title="Download defguard Server" id="release-info" variant="white" theme="light">
6868
<div slot="left">
69-
<GithubReleases repoUrl="https://github.com/DefGuard/defguard" count={5} />
69+
<GithubReleases repoUrl="https://github.com/DefGuard/defguard" />
7070
</div>
7171
<div slot="right">
7272
<NewsletterSection

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ const tags = [
368368
<FlexibleIdentitySection />
369369

370370
<CTASection
371-
title="Ready to Experience the Most Secure, Flexible, and Compliant WireGuard® VPN?"
372-
description="Deploy our open-source VPN in minutes and secure your remote workforce with enterprise-level features."
371+
title="Ready to Experience the Most Secure, and Compliant VPN?"
372+
description="Deploy our open-source WireGuard® protocol VPN in minutes and secure your remote workforce with enterprise-level features."
373373
buttonText="Book a Demo"
374374
buttonLink="/book-a-demo?utm_source=landingpage"
375375
id="cta-download"

0 commit comments

Comments
 (0)