Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(public): minor tweaks

Carl-Gerhard Lindesvärdb30a76165df5
diff --git a/apps/public/app/sitemap.ts b/apps/public/app/sitemap.ts
index 12ce406a0..ac629d16d 100644
--- a/apps/public/app/sitemap.ts
+++ b/apps/public/app/sitemap.ts
@@ -1,10 +1,11 @@
-import { articleSource, source } from '@/lib/source';
+import { articleSource, pageSource, source } from '@/lib/source';
import type { MetadataRoute } from 'next';
import { url } from './layout.config';
-const articles = await articleSource.getPages();
-const docs = await source.getPages();
-export default function sitemap(): MetadataRoute.Sitemap {
+export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
+ const articles = await articleSource.getPages();
+ const docs = await source.getPages();
+ const pages = await pageSource.getPages();
return [
{
url: url('/'),
@@ -36,5 +37,11 @@ export default function sitemap(): MetadataRoute.Sitemap {
changeFrequency: 'monthly' as const,
priority: 0.3,
})),
+ ...pages.map((item) => ({
+ url: url(item.url),
+ lastModified: item.data.lastModified,
+ changeFrequency: 'monthly' as const,
+ priority: 0.3,
+ })),
];
}
diff --git a/apps/public/components/hero.tsx b/apps/public/components/hero.tsx
index 40d608e27..a09c0c34b 100644
--- a/apps/public/components/hero.tsx
+++ b/apps/public/components/hero.tsx
@@ -14,17 +14,17 @@ export function Hero() {
{/* Content */}
<div className="container relative z-10">
<div className="max-w-2xl col gap-4 pt-28 text-center mx-auto ">
- <h1 className="text-6xl font-bold leading-[1.1] animate-fade-up">
+ <h1 className="text-6xl font-bold leading-[1.1]">
An open-source alternative to <span>Mixpanel</span>
</h1>
- <p className="text-xl text-muted-foreground animate-fade-up">
+ <p className="text-xl text-muted-foreground">
The power of Mixpanel, the ease of Plausible and nothing from Google
Analytics 😉
</p>
</div>
{/* CTA */}
- <div className="row gap-4 center-center my-12 animate-fade-up">
+ <div className="row gap-4 center-center my-12">
<Button size="lg" asChild>
<Link href="https://dashboard.openpanel.dev/register">
Try it for free
diff --git a/apps/public/components/navbar.tsx b/apps/public/components/navbar.tsx
index 343daf49f..5c3f40a8b 100644
--- a/apps/public/components/navbar.tsx
+++ b/apps/public/components/navbar.tsx
@@ -41,7 +41,7 @@ const Navbar = () => {
}
return (
- <nav className="fixed top-4 z-50 w-full animate-fade-down" ref={navbarRef}>
+ <nav className="fixed top-4 z-50 w-full" ref={navbarRef}>
<div className="container">
<div
className={cn(