Skip to content

Commit 441f890

Browse files
authored
Merge pull request #93 from jsattler/chore-update-landing-page
chore(landing): adapt new domain
2 parents a833f83 + 7961119 commit 441f890

11 files changed

Lines changed: 26 additions & 83 deletions

File tree

website/astro.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import svelte from "@astrojs/svelte";
77

88
// https://astro.build/config
99
export default defineConfig({
10-
site: "https://jsattler.github.io",
11-
base: process.env.NODE_ENV === "production" ? "/BetterCapture/" : "/",
10+
site: "https://bettercapture.app",
1211
integrations: [
1312
svelte(),
1413
sitemap({

website/public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bettercapture.app

website/public/robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ User-agent: *
33
Allow: /
44

55
# Sitemap
6-
Sitemap: https://jsattler.github.io/BetterCapture/sitemap-index.xml
6+
Sitemap: https://bettercapture.app/sitemap-index.xml

website/src/components/CTASection.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
let videoUrl = "https://github.com/jsattler/BetterCapture/releases/latest/download/BetterCapture.dmg";
3-
const base = import.meta.env.BASE_URL;
43
54
let copied = $state(false);
65
@@ -73,13 +72,13 @@
7372
<!-- Bottom branding section -->
7473
<div class="relative h-36 sm:h-48 md:h-64 lg:h-72 overflow-hidden rounded-2xl sm:rounded-3xl m-2 sm:m-3">
7574
<img
76-
src="{base}hero-wallpaper-2.jpg"
75+
src="/hero-wallpaper-2.jpg"
7776
alt=""
7877
class="w-full h-full object-cover"
7978
/>
8079
<div class="absolute inset-0 flex items-center justify-center">
8180
<div class="flex items-center gap-2 sm:gap-3 md:gap-4">
82-
<img src="{base}favicon.svg" alt="BetterCapture logo" class="w-8 h-8 sm:w-10 sm:h-10 md:w-12 md:h-12 lg:w-16 lg:h-16" />
81+
<img src="/favicon.svg" alt="BetterCapture logo" class="w-8 h-8 sm:w-10 sm:h-10 md:w-12 md:h-12 lg:w-16 lg:h-16" />
8382
<span class="text-xl sm:text-2xl md:text-3xl lg:text-5xl font-semibold text-white">BetterCapture</span>
8483
</div>
8584
</div>

website/src/components/FeaturesSection.svelte

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<script lang="ts">
22
import FeatureCard from './FeatureCard.svelte';
33
4-
const base = import.meta.env.BASE_URL;
5-
64
const features = [
75
{
86
title: "Feels Like Home",
@@ -13,8 +11,8 @@
1311
"Lives in your menu bar for instant access",
1412
"Follows Apple's Human Interface Guidelines"
1513
],
16-
imageUrl: `${base}grainy-gradient-feat-1.jpg`,
17-
screenshotUrl: `${base}screenshot-basic.png`
14+
imageUrl: "/grainy-gradient-feat-1.jpg",
15+
screenshotUrl: "/screenshot-basic.png"
1816
},
1917
{
2018
title: "Professional Recording",
@@ -25,7 +23,7 @@
2523
"Record system audio and microphone simultaneously",
2624
"Content filtering to exclude specific windows"
2725
],
28-
imageUrl: `${base}grainy-gradient-feat-2.jpg`,
26+
imageUrl: "/grainy-gradient-feat-2.jpg",
2927
badges: ["ProRes 4444", "HEVC", "H.264"]
3028
},
3129
{
@@ -37,7 +35,7 @@
3735
"No account required to use the app",
3836
"Open source so you can verify our claims"
3937
],
40-
imageUrl: `${base}grainy-gradient-feat-3.jpg`,
38+
imageUrl: "/grainy-gradient-feat-3.jpg",
4139
badges: ["No Tracking", "No Analytics", "100% Local"]
4240
},
4341
{
@@ -49,7 +47,7 @@
4947
"Community-driven development",
5048
"Contribute features or report bugs on GitHub"
5149
],
52-
imageUrl: `${base}grainy-gradient-feat-4.jpg`,
50+
imageUrl: "/grainy-gradient-feat-4.jpg",
5351
badges: ["MIT License", "100% Free", "Open Source"]
5452
}
5553
];

website/src/components/Footer.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
const currentYear = new Date().getFullYear();
3-
const base = import.meta.env.BASE_URL;
43
</script>
54

65
<svelte:head>
@@ -13,7 +12,7 @@
1312
<!-- Brand -->
1413
<div class="flex-1">
1514
<div class="flex items-center gap-2 mb-3 sm:mb-4">
16-
<img src="{base}favicon.svg" alt="BetterCapture logo" class="w-5 h-5 sm:w-6 sm:h-6" />
15+
<img src="/favicon.svg" alt="BetterCapture logo" class="w-5 h-5 sm:w-6 sm:h-6" />
1716
<span class="text-lg sm:text-xl font-semibold text-gray-900">BetterCapture</span>
1817
</div>
1918
<p class="text-gray-600 text-xs sm:text-sm max-w-xs">
@@ -82,7 +81,7 @@
8281
</a>
8382
</li>
8483
<li>
85-
<a href="{base}privacy-policy" class="text-gray-600 hover:text-gray-900 transition-colors text-xs sm:text-sm">
84+
<a href="/privacy-policy" class="text-gray-600 hover:text-gray-900 transition-colors text-xs sm:text-sm">
8685
Privacy Policy
8786
</a>
8887
</li>

website/src/components/Hero.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script lang="ts">
2-
const base = import.meta.env.BASE_URL;
3-
42
let copied = $state(false);
53
64
async function copyToClipboard() {
@@ -22,7 +20,7 @@
2220
<div class="relative w-full min-h-[70vh] sm:min-h-[75vh] md:min-h-[80vh] lg:min-h-[85vh] px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 rounded-2xl sm:rounded-3xl overflow-hidden flex items-center">
2321
<!-- Grainy gradient background -->
2422
<img
25-
src="{base}hero-wallpaper-2.jpg"
23+
src="/hero-wallpaper-2.jpg"
2624
alt=""
2725
class="absolute inset-0 w-full h-full object-cover"
2826
/>
@@ -88,7 +86,7 @@
8886
<div class="hidden lg:flex lg:col-span-2 2xl:col-span-1 items-center justify-center">
8987
<div class="w-full">
9088
<img
91-
src="{base}screenshot-basic.png"
89+
src="/screenshot-basic.png"
9290
alt="Better Capture Screenshot"
9391
class="opacity-90 rounded-2xl w-full h-auto"
9492
/>

website/src/components/Navbar.svelte

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
<script lang="ts">
2-
const base = import.meta.env.BASE_URL;
3-
</script>
4-
51
<nav class="fixed top-0 left-0 right-0 z-50 bg-white/80 backdrop-blur-sm border-b border-gray-100">
62
<div class="max-w-7xl mx-auto px-4 sm:px-6 py-3 sm:py-4">
73
<div class="flex items-center justify-between md:grid md:grid-cols-3">
84
<!-- Logo/Brand -->
9-
<a href="{base}">
5+
<a href="/">
106
<div class="flex items-center gap-2">
11-
<img src="{base}bettercapture-logo.png" alt="BetterCapture logo" class="w-6 h-6" />
7+
<img src="/bettercapture-logo.png" alt="BetterCapture logo" class="w-6 h-6" />
128
<span class="text-lg sm:text-xl font-semibold text-gray-900">BetterCapture</span>
139
</div>
1410
</a>
1511

1612
<!-- Navigation Links (Center) - Hidden on mobile -->
1713
<div class="hidden md:flex items-center justify-center gap-6">
18-
<a href="{base}#hero" class="text-gray-600 hover:text-gray-900 transition-colors text-md font-semibold">Home</a>
19-
<a href="{base}#features" class="text-gray-600 hover:text-gray-900 transition-colors text-md font-semibold">Features</a>
14+
<a href="/#hero" class="text-gray-600 hover:text-gray-900 transition-colors text-md font-semibold">Home</a>
15+
<a href="/#features" class="text-gray-600 hover:text-gray-900 transition-colors text-md font-semibold">Features</a>
2016
<a
2117
href="https://github.com/jsattler/BetterCapture/milestones"
2218
target="_blank"

website/src/layouts/BaseLayout.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const {
1717
title,
1818
description,
1919
canonicalUrl,
20-
ogImage = 'https://jsattler.github.io/BetterCapture/bettercapture-og.png',
20+
ogImage = 'https://bettercapture.app/bettercapture-og.png',
2121
lang = 'en',
2222
robots = 'index, follow',
2323
structuredData = []
@@ -58,8 +58,8 @@ const {
5858
<meta property="twitter:image" content={ogImage} />
5959

6060
<!-- Favicon -->
61-
<link rel="icon" type="image/svg+xml" href={`${import.meta.env.BASE_URL}favicon.svg`} />
62-
<link rel="manifest" href={`${import.meta.env.BASE_URL}site.webmanifest`} />
61+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
62+
<link rel="manifest" href="/site.webmanifest" />
6363

6464
<!-- Theme Color -->
6565
<meta name="theme-color" content="#ffffff" />

website/src/pages/coming-soon.astro

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

0 commit comments

Comments
 (0)