Skip to content

Commit

Permalink
Update headers (#32)
Browse files Browse the repository at this point in the history
* updat meta description

* udpate logo image for og:image

* update headers
  • Loading branch information
cpprian authored Aug 28, 2024
1 parent 1cbe5ff commit f6a3d13
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 42 deletions.
Binary file added public/images/png/defguard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ const isProd = import.meta.env.PROD;
interface Props {
title: string;
description: string;
featuredImage: string;
imageWidth: string;
imageHeight: string;
}
const { title, description, featuredImage, imageWidth, imageHeight} = Astro.props;
const { title, featuredImage, imageWidth, imageHeight} = Astro.props;
const titlePrefix = "defguard enterprise open-source SSO&VPN with 2FA/MFA";
const description = "defguard - enterprise open-source SSO&VPN - the only open-source solution with real WireGuard MFA/2FA & integrated OpenID Connect SSO";
const mainTitle = title.trim() == "" ? titlePrefix : titlePrefix + ": " + title;
---
Expand All @@ -28,7 +28,7 @@ const mainTitle = title.trim() == "" ? titlePrefix : titlePrefix + ": " + title;
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>{mainTitle}</title>
<title>defguard</title>
<meta property="og:title" content={mainTitle} />
<meta property="og:description" content={description} />
<meta property="og:image" content={"http://" + featuredImage} />
Expand Down
9 changes: 6 additions & 3 deletions src/layouts/ProductLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ import BaseLayout from "./BaseLayout.astro";
interface Props {
title: string;
description: string;
featuredImage: string;
imageWidth: string;
imageHeight: string;
}
const { title, description, featuredImage, imageWidth, imageHeight } = Astro.props;
const { title, featuredImage, imageWidth, imageHeight } = Astro.props;
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down Expand Up @@ -62,6 +60,11 @@ const { title, description, featuredImage, imageWidth, imageHeight } = Astro.pro
display: flex;
flex-flow: column;
row-gap: 20px;

& > h2 {
@include typography(h2);
padding-bottom: 20px;
}
}
#matrix {
width: 100%;
Expand Down
3 changes: 1 addition & 2 deletions src/pages/client.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ const clientFeatures = (await getCollection("client-features")).sort(
(f1, f2) => f1.data.order - f2.data.order,
);
const title = "Best Desktop WireGuard Client";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/product/client/main-screen.png";
const imageWidth = "1920";
const imageHeight = "1080";
---

<ProductLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down Expand Up @@ -50,6 +48,7 @@ const imageHeight = "1080";
</ProductImage>
<ProductSection padding="large">
<div class="product-features">
<h2>Why defguard provides the best WireGuard® client</h2>
{
clientFeatures.map(async (f, index) => {
const { Content } = await f.render();
Expand Down
8 changes: 3 additions & 5 deletions src/pages/compare.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import { featuresTableData } from "../data/compare-table";
import { Button } from "../components/buttons/Button/Button";
const title = "Comparison of WireGuard VPN solutions";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand All @@ -24,7 +22,7 @@ const imageHeight = "256";
<main id="compare-page">
<ProductSection>
<header id="compare-header">
<h1>Compare with competition (on date: 2024.08)</h1>
<h1>Compare of WireGuard® Solution<br/>(on date: 2024.08)</h1>
</header>
<div id="features-table">
<FeaturesTable data={featuresTableData} client:only="preact" />
Expand Down
6 changes: 2 additions & 4 deletions src/pages/download-confirm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import Navigation from "../components/base/Navigation.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down
6 changes: 2 additions & 4 deletions src/pages/download.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import { DownloadButtonList } from "../components/download/DownloadButtonList/Do
import DownloadVersion from "../components/download/DownloadVersion.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ const coreFeatures = (await getCollection("core-features")).sort(
);
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/product/core/hero-image.png";
const imageWidth = "1920";
const imageHeight = "1080";
---

<ProductLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down Expand Up @@ -56,6 +54,7 @@ const imageHeight = "1080";
</ProductImage>
<ProductSection padding="large">
<div class="product-features">
<h2>What will you get with Open Source WireGuard® MFA/2FA</h2>
{
coreFeatures.map(async (f, index) => {
const { Content } = await f.render();
Expand Down
6 changes: 2 additions & 4 deletions src/pages/newsletter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import Navigation from "../components/base/Navigation.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down
6 changes: 2 additions & 4 deletions src/pages/openvpn.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ const openvpnFeatures = (await getCollection("openvpn-features")).sort(
(f1, f2) => f1.data.order - f2.data.order,
);
const title = "Migrate from OpenVPN to WireGuard";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<ProductLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down
18 changes: 11 additions & 7 deletions src/pages/pricing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ const pricing = (await getCollection("pricing")).sort(
(p1, p2) => p1.data.order - p2.data.order,
);
const title = "Pricing & Support";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
>
<Navigation activeSlug="/pricing" />
<main id="pricing-page">
<ProductSection padding="large" id="pricing-tiers">
<header><h1>Support & Pricing</h1></header>
<header>
<h1>Support & Pricing</h1>
<h2>Comparison of free and paid packages for Wireguard solution.</h2>
</header>
<div class="tiers">
{
pricing.map(async (p) => {
Expand Down Expand Up @@ -84,15 +85,18 @@ const imageHeight = "256";

header {
display: flex;
flex-flow: row;
align-items: center;
flex-flow: column;
justify-content: flex-start;
width: 100%;
padding-bottom: 50px;

h1 {
text-align: left;
}

h2 {
@include typography(h2);
}
}

.contact {
Expand Down
6 changes: 2 additions & 4 deletions src/pages/purchase-confirm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import BaseLayout from "../layouts/BaseLayout.astro";
import ProductSection from "../layouts/ProductSection.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/png/defguard.png";
const imageWidth = "1080";
const imageHeight = "256";
const imageHeight = "540";
---

<BaseLayout
title={title}
description={description}
featuredImage={featuredImage}
imageWidth={imageWidth}
imageHeight={imageHeight}
Expand Down

0 comments on commit f6a3d13

Please sign in to comment.