Skip to content

Commit 0b0fdda

Browse files
committed
chore: footer and privacy updates
1 parent 79cae91 commit 0b0fdda

File tree

6 files changed

+26
-29
lines changed

6 files changed

+26
-29
lines changed

src/assets/privacy-policy/pp-13-04-2025-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Privacy Policy – 10xRules.ai
1+
# 10xRules.ai
22

33
**Last updated:** April 13, 2025
44

src/assets/privacy-policy/pp-13-04-2025-pl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Polityka Prywatności – 10xRules.ai
1+
# 10xRules.ai
22

33
**Data ostatniej aktualizacji:** 13 kwietnia 2025
44

src/components/Footer.tsx

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { GitBranch, Rocket, FileText, Videotape } from 'lucide-react';
1+
import { GitBranch, Rocket, BadgeInfo } from 'lucide-react';
22

33
export default function Footer() {
44
return (
55
<footer className="sticky bottom-0 z-10 w-full bg-gray-900 text-gray-400 p-4 border-t border-gray-800 hidden md:block">
66
<div className="flex flex-col sm:flex-row justify-between items-center">
77
<div className="flex items-center space-x-2 mb-2 sm:mb-0">
8-
<span className="text-sm">{new Date().getFullYear()} - 10xRules by 10xDevs.pl</span>
9-
{/* <span className="text-sm">Env: {envName}</span> */}
8+
<span className="text-sm">Made by 10xDevs & Friends</span>
109
</div>
1110
<div className="flex gap-6 text-sm">
1211
<a
@@ -19,22 +18,11 @@ export default function Footer() {
1918
10xDevs.pl
2019
</a>
2120
<a
22-
href="https://github.com/przeprogramowani/10x-test-planner"
23-
target="_blank"
24-
rel="noopener noreferrer"
25-
className="text-gray-400 hover:text-indigo-400 transition-colors duration-200 ease-in-out flex items-center"
26-
>
27-
<Videotape className="size-4 mr-1" />
28-
10xTestPlanner
29-
</a>
30-
<a
31-
href="https://github.com/przeprogramowani/10x-magic-docs"
32-
target="_blank"
33-
rel="noopener noreferrer"
21+
href="/privacy/en"
3422
className="text-gray-400 hover:text-indigo-400 transition-colors duration-200 ease-in-out flex items-center"
3523
>
36-
<FileText className="size-4 mr-1" />
37-
10xMagicDocs
24+
<BadgeInfo className="size-4 mr-1" />
25+
Privacy
3826
</a>
3927
<a
4028
href="https://github.com/przeprogramowani/ai-rules-builder"
@@ -43,7 +31,7 @@ export default function Footer() {
4331
className="text-gray-400 hover:text-indigo-400 transition-colors duration-200 ease-in-out flex items-center"
4432
>
4533
<GitBranch className="size-4 mr-1" />
46-
Contribute
34+
Improve this app
4735
</a>
4836
</div>
4937
</div>

src/components/Topbar.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ export default function Topbar({ title = '10xRules.ai', initialUser }: TopbarPro
2525
return (
2626
<header className="sticky top-0 z-10 w-full bg-gray-900 border-b border-gray-800 p-3 px-4 md:p-4 md:px-6 shadow-md">
2727
<div className="flex flex-row justify-between items-center">
28-
<div className="flex items-center space-x-3 group">
29-
<WandSparkles className="size-4 text-blue-400 group-hover:text-teal-400 transition-colors duration-300" />
30-
<h1 className="font-mono text-lg md:text-xl font-semibold bg-gradient-to-r from-blue-400 to-teal-400 bg-clip-text text-transparent group-hover:from-teal-400 group-hover:to-purple-400 transition-colors duration-300">
31-
{title}
32-
</h1>
33-
</div>
28+
<a href="/">
29+
<div className="flex items-center space-x-3 group">
30+
<WandSparkles className="size-4 text-blue-400 group-hover:text-teal-400 transition-colors duration-300" />
31+
<h1 className="font-mono text-lg md:text-xl font-semibold bg-gradient-to-r from-blue-400 to-teal-400 bg-clip-text text-transparent group-hover:from-teal-400 group-hover:to-purple-400 transition-colors duration-300">
32+
{title}
33+
</h1>
34+
</div>
35+
</a>
3436

3537
<div className="flex flex-row items-center space-x-4">
3638
<div className="w-auto">

src/components/privacy/PrivacyLayout.astro

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---
2+
import Footer from '../Footer.tsx';
3+
import Topbar from '../Topbar.tsx';
4+
5+
const user = Astro.locals.user;
6+
27
interface Props {
38
title: string;
49
lang: 'en' | 'pl';
@@ -9,8 +14,9 @@ const otherLang = lang === 'en' ? 'pl' : 'en';
914
const otherLangPath = `/privacy/${otherLang}`;
1015
---
1116

12-
<div class="min-h-full bg-gray-950 py-8 px-4 sm:px-6 lg:px-8">
13-
<div class="max-w-4xl mx-auto">
17+
<div class="min-h-full bg-gray-950">
18+
<Topbar client:load initialUser={user} />
19+
<div class="max-w-4xl mx-auto py-16">
1420
<div class="flex justify-between items-center mb-8">
1521
<h1 class="text-3xl font-bold text-white">{title}</h1>
1622
<a
@@ -26,4 +32,5 @@ const otherLangPath = `/privacy/${otherLang}`;
2632
</article>
2733
</div>
2834
</div>
35+
<Footer />
2936
</div>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Layout from '../layouts/Layout.astro';
33
import Topbar from '../components/Topbar';
44
import TwoPane from '../components/TwoPane';
55
import Footer from '../components/Footer';
6-
const user = Astro.locals.user;
76
7+
const user = Astro.locals.user;
88
const initialUrl = Astro.url;
99
---
1010

0 commit comments

Comments
 (0)