Spaces:
Paused
Paused
Commit ·
c86893a
1
Parent(s): d3e44c7
Integrate GitHub Discussions and Product Hunt cyber-icons in floating header with responsive layout protection and neon glow effects
Browse files- components/header.tsx +35 -3
components/header.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { LanguageToggle } from "@/components/LanguageToggle";
|
|
| 7 |
import { useLanguage } from "@/components/LanguageContext";
|
| 8 |
|
| 9 |
export function Header() {
|
| 10 |
-
const { t } = useLanguage();
|
| 11 |
|
| 12 |
return (
|
| 13 |
<motion.header
|
|
@@ -34,12 +34,44 @@ export function Header() {
|
|
| 34 |
</Link>
|
| 35 |
|
| 36 |
{/* Status Area */}
|
| 37 |
-
<div className="flex items-center gap-3 text-xs font-mono">
|
| 38 |
<span className="hidden sm:inline-block text-muted-foreground tracking-widest uppercase">{t("preLaunch")}</span>
|
| 39 |
-
<div className="flex items-center justify-center h-5 px-2.5 rounded-full border border-primary/30 bg-primary/10">
|
| 40 |
<span className="w-1.5 h-1.5 bg-primary rounded-full animate-pulse mr-2 shadow-[0_0_8px_var(--primary-glow)]"></span>
|
| 41 |
<span className="text-primary text-[10px] tracking-wider uppercase font-bold">{t("preLaunchShort")}</span>
|
| 42 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
<LanguageToggle />
|
| 44 |
<ThemeToggle />
|
| 45 |
</div>
|
|
|
|
| 7 |
import { useLanguage } from "@/components/LanguageContext";
|
| 8 |
|
| 9 |
export function Header() {
|
| 10 |
+
const { t, language } = useLanguage();
|
| 11 |
|
| 12 |
return (
|
| 13 |
<motion.header
|
|
|
|
| 34 |
</Link>
|
| 35 |
|
| 36 |
{/* Status Area */}
|
| 37 |
+
<div className="flex items-center gap-2 sm:gap-3 text-xs font-mono">
|
| 38 |
<span className="hidden sm:inline-block text-muted-foreground tracking-widest uppercase">{t("preLaunch")}</span>
|
| 39 |
+
<div className="hidden sm:inline-flex items-center justify-center h-5 px-2.5 rounded-full border border-primary/30 bg-primary/10">
|
| 40 |
<span className="w-1.5 h-1.5 bg-primary rounded-full animate-pulse mr-2 shadow-[0_0_8px_var(--primary-glow)]"></span>
|
| 41 |
<span className="text-primary text-[10px] tracking-wider uppercase font-bold">{t("preLaunchShort")}</span>
|
| 42 |
</div>
|
| 43 |
+
|
| 44 |
+
{/* Cyber Community Links */}
|
| 45 |
+
<div className="flex items-center gap-1 sm:gap-1.5 px-1 border-l border-r border-white/5 dark:border-white/10">
|
| 46 |
+
{/* GitHub Discussions */}
|
| 47 |
+
<a
|
| 48 |
+
href="https://github.com/orgs/community/discussions/196796"
|
| 49 |
+
target="_blank"
|
| 50 |
+
rel="noopener noreferrer"
|
| 51 |
+
className="text-muted-foreground hover:text-primary transition-all duration-300 p-1 hover:drop-shadow-[0_0_8px_var(--primary-glow)] hover:scale-105 active:scale-95"
|
| 52 |
+
aria-label={language === "ar" ? "مناقشات جيت هاب" : "GitHub Discussions"}
|
| 53 |
+
title={language === "ar" ? "مناقشات جيت هاب" : "GitHub Discussions"}
|
| 54 |
+
>
|
| 55 |
+
<svg className="w-4 h-4 fill-current" viewBox="0 0 24 24" aria-hidden="true">
|
| 56 |
+
<path fillRule="evenodd" clipRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" />
|
| 57 |
+
</svg>
|
| 58 |
+
</a>
|
| 59 |
+
|
| 60 |
+
{/* Product Hunt Launch */}
|
| 61 |
+
<a
|
| 62 |
+
href="https://www.producthunt.com/products/hubapi?launch=hubapi"
|
| 63 |
+
target="_blank"
|
| 64 |
+
rel="noopener noreferrer"
|
| 65 |
+
className="text-muted-foreground hover:text-primary transition-all duration-300 p-1 hover:drop-shadow-[0_0_8px_var(--primary-glow)] hover:scale-105 active:scale-95"
|
| 66 |
+
aria-label={language === "ar" ? "برودكت هانت" : "Product Hunt Launch"}
|
| 67 |
+
title={language === "ar" ? "برودكت هانت" : "Product Hunt Launch"}
|
| 68 |
+
>
|
| 69 |
+
<svg className="w-4 h-4 fill-current" viewBox="0 0 24 24" aria-hidden="true">
|
| 70 |
+
<path d="M13.6 8.4h-2.8v3.2h2.8c.9 0 1.6-.7 1.6-1.6s-.7-1.6-1.6-1.6zm-1.6 10c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm1-13H9v10h2v-4h2.6c2.1 0 3.8-1.7 3.8-3.8S15.7 5.4 13 5.4z" />
|
| 71 |
+
</svg>
|
| 72 |
+
</a>
|
| 73 |
+
</div>
|
| 74 |
+
|
| 75 |
<LanguageToggle />
|
| 76 |
<ThemeToggle />
|
| 77 |
</div>
|