Skip to content

Commit

Permalink
Search Engine Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
holybaechu committed Feb 23, 2024
1 parent 2a19739 commit e4aa213
Show file tree
Hide file tree
Showing 18 changed files with 154 additions and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
},
"type": "module",
"dependencies": {
"@sveltejs/amp": "^1.1.0",
"@types/node": "^20.11.19",
"dotenv": "^16.4.5"
"dotenv": "^16.4.5",
"dropcss": "^1.0.16"
}
}
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!doctype html>
<html lang="en">

<html lang="en" amp>
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
Expand All @@ -9,7 +10,6 @@
<meta property="og:url" content="https://boost.rappytv.com/" />
<meta property="og:type" content="website" />
<meta property="theme-color" content="#f8bef8" />
<meta property="og:title" content="✨ Boost Notifications" />
<meta property="og:site_name" content="✨ Boost Notifications" />
<meta property="og:description" content="The best way to get notified when your members boost your server." />

Expand Down
7 changes: 3 additions & 4 deletions src/components/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script>
import { slide } from 'svelte/transition';
import { cubicOut } from 'svelte/easing';
import Logo from "$lib/images/logo.webp"
import Button from "./Button.svelte";
Expand Down Expand Up @@ -36,7 +33,9 @@
</div>

{#if hamburgerMenuOpen}
<div class="font-semibold space-y-5 w-full hover:*:text-secondary *:block backdrop-blur-md p-5">
<div
class="font-semibold space-y-5 w-full hover:*:text-secondary *:block backdrop-blur-md p-5"
>
{@html
document.getElementById("nav-links")?.innerHTML
}
Expand Down
5 changes: 5 additions & 0 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { page } from '$app/stores';
</script>

<head>
<meta property="og:title" content="{$page.status} {$page.error?.message || "Unknown error"}" />
<title>{$page.status} {$page.error?.message || "Unknown error"}</title>
</head>

<div class="flex flex-col h-screen justify-center items-center space-y-1">
<div class="text-6xl font-black">
{$page.status}
Expand Down
1 change: 1 addition & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<svelte:head>
<meta property="og:title" content="✨ Boost Notifications" />
<title>Boost Notifications - Home</title>
</svelte:head>

Expand Down
5 changes: 5 additions & 0 deletions src/routes/contact/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Contact" />
<title>Boost Notifications - Contact</title>
</head>

<RedirectPage url="https://rappytv.com/" />
7 changes: 6 additions & 1 deletion src/routes/doc/privacy/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<script>
import Link from "$components/Link.svelte";
</script>

<head>
<meta property="og:title" content="Privacy Policy" />
<title>Boost Notifications - Privacy Policy</title>
</head>

<div class="py-40 px-10 md:px-40 space-y-6">
<div class="text-center text-4xl font-black">
Privacy Policy
Expand Down
7 changes: 6 additions & 1 deletion src/routes/doc/terms/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<script>
import Link from "$components/Link.svelte";
</script>

<head>
<meta property="og:title" content="Terms of Service" />
<title>Boost Notifications - Terms of Service</title>
</head>

<div class="py-40 px-10 md:px-40 space-y-6">
<div class="text-center text-4xl font-black">
Terms of Service
Expand Down
5 changes: 5 additions & 0 deletions src/routes/feedback/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Feedback" />
<title>Boost Notifications - Feedback</title>
</head>

<RedirectPage url="https://boost-feedback.rappytv.com/" />
5 changes: 5 additions & 0 deletions src/routes/invite/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Invite" />
<title>Boost Notifications - Invite</title>
</head>

<RedirectPage url="https://discord.com/api/oauth2/authorize?client_id=1067880912538304583&permissions=8&scope=applications.commands%20bot" />
5 changes: 5 additions & 0 deletions src/routes/review/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Review" />
<title>Boost Notifications - Review</title>
</head>

<RedirectPage url="https://top.gg/bot/1067880912538304583#reviews" />
90 changes: 90 additions & 0 deletions src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
const selfURL = "https://boost.rappy.tv";

const pages = [
{
loc: "/",
lastmod: "2024-02-23",
changefreq: "daily",
priority: 1
},
{
loc: "/invite",
lastmod: "2024-02-23",
changefreq: "monthly",
priority: 0.9
},
{
loc: "/vote",
lastmod: "2024-02-23",
changefreq: "monthly",
priority: 0.8
},
{
loc: "/review",
lastmod: "2024-02-23",
changefreq: "monthly",
priority: 0.8
},
{
loc: "/support",
lastmod: "2024-02-23",
changefreq: "monthly",
priority: 0.7
},
{
loc: "/feedback",
lastmod: "2024-02-23",
changefreq: "monthly",
priority: 0.7
},
{
loc: "/status",
lastmod: "2024-02-23",
changefreq: "monthly",
priority: 0.6
},
{
loc: "/docs/privacy",
lastmod: "2024-02-23",
changefreq: "weekly",
priority: 0.4
},
{
loc: "/docs/terms",
lastmod: "2024-02-23",
changefreq: "weekly",
priority: 0.4
},
]

export async function GET() {
return new Response(
`
<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="https://www.w3.org/1999/xhtml"
xmlns:mobile="https://www.google.com/schemas/sitemap-mobile/1.0"
xmlns:news="https://www.google.com/schemas/sitemap-news/0.9"
xmlns:image="https://www.google.com/schemas/sitemap-image/1.1"
xmlns:video="https://www.google.com/schemas/sitemap-video/1.1"
>
${pages
.map(
(page) => `
<url>
<loc>${selfURL}${page.loc}</loc>
<changefreq>${page.changefreq}</changefreq>
<priority>${page.priority}</priority>
<lastmod>${page.lastmod}</lastmod>
</url>
`,
).join('')}
</urlset>`.trim(),
{
headers: {
'Content-Type': 'application/xml'
}
}
);
}
5 changes: 5 additions & 0 deletions src/routes/status/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Status" />
<title>Boost Notifications - Status</title>
</head>

<RedirectPage url="https://status.rappytv.com/status/bots" />
5 changes: 5 additions & 0 deletions src/routes/support/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Support" />
<title>Boost Notifications - Support</title>
</head>

<RedirectPage url="https://discord.gg/HaddzQrCbG" />
5 changes: 5 additions & 0 deletions src/routes/vote/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
import RedirectPage from "$components/RedirectPage.svelte";
</script>

<head>
<meta property="og:title" content="Vote" />
<title>Boost Notifications - Vote</title>
</head>

<RedirectPage url="https://top.gg/bot/1067880912538304583/vote" />
Binary file added static/favicon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const config = {

alias: {
$components: './src/components',
}
},

inlineStyleThreshold: Infinity,
}
};

Expand Down

0 comments on commit e4aa213

Please sign in to comment.