Skip to content

Commit 4716a6c

Browse files
committed
styling tweaks
1 parent 9711d07 commit 4716a6c

File tree

6 files changed

+40
-20
lines changed

6 files changed

+40
-20
lines changed

src/components/FlexibleSection.astro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface Props {
1010
maxWidth?: number;
1111
variant?: 'white' | 'gray';
1212
theme?: 'light' | 'dark';
13+
bottomBorder?: boolean;
1314
}
1415
1516
const {
@@ -20,6 +21,7 @@ const {
2021
maxWidth = 1100,
2122
variant = 'white',
2223
theme = 'light',
24+
bottomBorder = true,
2325
} = Astro.props;
2426
---
2527

@@ -35,7 +37,7 @@ const {
3537
>
3638
<ContentLimiter maxWidth={maxWidth}>
3739
<div class="flexible-content">
38-
<div class="header">
40+
<div class={clsx("header", { "with-bottom-border": bottomBorder })}>
3941
<TitleTag class="section-title" id={id ? `${id}-title` : undefined} set:html={title}></TitleTag>
4042
</div>
4143

@@ -91,10 +93,16 @@ const {
9193
flex-direction: column;
9294
width: 100%;
9395

94-
.header {
96+
.header {
9597
width: 100%;
9698
box-sizing: border-box;
9799
padding-bottom: 2rem;
100+
101+
&.with-bottom-border .section-title {
102+
border-bottom: 1px solid var(--text-body-primary);
103+
margin-bottom: 2rem;
104+
padding-bottom: 1rem;
105+
}
98106

99107
.section-title {
100108
@include typography(section);

src/pages/blog/index.astro

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,12 @@ const url = "https://defguard.net/blog";
8787
@use "../../styles/mixins/breakpoints" as *;
8888

8989
#blog-page {
90-
padding-top: var(--nav-height);
9190
background-color: var(--surface-frame-bg);
9291
}
9392

94-
#blog-header {
95-
.section-title {
96-
@include typography(section);
97-
}
98-
p {
99-
@include typography(paragraph);
100-
margin-bottom: 1.5rem;
101-
}
102-
}
103-
10493
.blog-posts-listing {
10594
padding: 2rem 0 4rem;
95+
background-color: #f5f5f5;
10696

10797
.container {
10898
max-width: 1200px;
@@ -131,6 +121,7 @@ const url = "https://defguard.net/blog";
131121
text-decoration: none;
132122
color: inherit;
133123
padding: 20px;
124+
background-color: #f9f9f9;
134125
border-width: 0 0 2px 0;
135126
border-style: solid;
136127
border-color: #f5f5f5;

src/pages/compare.astro

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ const tags = [
5858
/>
5959
<Navigation activeSlug="/compare/" />
6060
<main id="compare-page">
61-
<ProductSection>
61+
<ProductSection padding="none">
6262
<header id="compare-header">
63-
<h1>Compare of WireGuard® Solutions<br />(on date: 2024.08)</h1>
63+
<h1>Compare of WireGuard® Solutions<br /></h1>
64+
<p class="compare-date">(on date: 2025.05)</p>
6465
</header>
6566
<div id="features-table">
6667
<FeaturesTable data={featuresTableData} client:load />
@@ -76,6 +77,11 @@ const tags = [
7677

7778
<style lang="scss" is:global>
7879
#compare-page {
80+
.product-section {
81+
padding-top: 4rem !important; /* Match the 4rem padding from FlexibleSection */
82+
padding-bottom: 4rem !important;
83+
}
84+
7985
.contact {
8086
width: 100%;
8187
border-top: 1px solid var(--border-separator);
@@ -101,7 +107,15 @@ const tags = [
101107
h1 {
102108
@include typography(section);
103109
text-align: left;
104-
padding-bottom: 50px;
110+
padding-bottom: 0.5rem; // reduced padding to accommodate date text
111+
}
112+
113+
.compare-date {
114+
font-size: 0.875rem;
115+
color: var(--text-secondary, #666);
116+
text-align: left;
117+
margin-top: 0.25rem;
118+
margin-bottom: 2rem;
105119
}
106120
}
107121
</style>

src/pages/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ const tags = [
385385

386386
.section-title {
387387
@include typography(section); // Change back to section typography for main sections
388-
border-bottom: 1px solid var(--text-body-primary);
389388
padding-bottom: 1rem;
390389
margin-bottom: 2rem;
391390
}

src/pages/press.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ const tags = [
363363
text-decoration: none; // Remove default link styling
364364
color: inherit; // Keep text color
365365
padding: 20px;
366+
background-color: #f9f9f9;
366367
border-width: 0 0 2px 0;
367368
border-style: solid;
368369
border-color: #f5f5f5;

src/pages/pricing.astro

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import BookDemoForm from "../components/form/BookDemoForm/BookDemoForm";
77
import PricingHeaderContent from "../data/pricing/page-header.mdx";
88
import { PricingCards } from "../components/pricing/Pricing";
99
import ContentLimiter from "../components/ContentLimiter.astro";
10+
import FlexibleSection from "../components/FlexibleSection.astro";
1011
1112
const pricingCollection = await getCollection("pricing");
1213
// sort and map to prop type
@@ -64,7 +65,13 @@ const tags = [
6465
<main id="pricing-page">
6566
<ContentLimiter contentId="pricing-tiers" maxWidth={1100}>
6667
<header>
67-
<h1>Pricing</h1>
68+
<FlexibleSection
69+
title="Pricing"
70+
titleTag="h1"
71+
id="blog-header"
72+
variant="white"
73+
theme="light"
74+
>
6875
<PricingHeaderContent />
6976
</header>
7077
<PricingCards client:load data={pricingData} />
@@ -141,11 +148,11 @@ const tags = [
141148
}
142149

143150
#pricing-tiers {
144-
padding-top: calc(100px - var(--nav-height));
151+
// padding-top: calc(100px - var(--nav-height));
145152
padding-bottom: calc(100px - var(--nav-height));
146153

147154
@include break-up(md) {
148-
padding-top: calc(200px - var(--nav-height));
155+
// padding-top: calc(200px - var(--nav-height));
149156
padding-bottom: calc(200px - var(--nav-height));
150157
}
151158

0 commit comments

Comments
 (0)