Spaces:
Paused
Paused
Commit ·
d3aca8c
1
Parent(s): 0975493
Implement dual-location community links: preserve header icons and add glowing cyber-glass badges below waitlist form in hero section with full bilingual support
Browse files- components/hero-section.tsx +44 -0
- lib/languages.ts +8 -0
components/hero-section.tsx
CHANGED
|
@@ -268,6 +268,50 @@ export function HeroSection() {
|
|
| 268 |
</div>
|
| 269 |
</motion.div>
|
| 270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
<motion.p
|
| 272 |
initial={{ y: 20, opacity: 0 }}
|
| 273 |
animate={{ y: 0, opacity: 1 }}
|
|
|
|
| 268 |
</div>
|
| 269 |
</motion.div>
|
| 270 |
|
| 271 |
+
{/* Cyber-Glass Community Badges */}
|
| 272 |
+
<motion.div
|
| 273 |
+
initial={{ y: 20, opacity: 0 }}
|
| 274 |
+
animate={{ y: 0, opacity: 1 }}
|
| 275 |
+
transition={{ duration: 0.6, delay: 0.62, ease: "easeOut" }}
|
| 276 |
+
className="mt-6 grid grid-cols-1 sm:grid-cols-2 gap-4 max-w-xl w-full z-30 relative"
|
| 277 |
+
>
|
| 278 |
+
{/* GitHub Discussions Badge */}
|
| 279 |
+
<a
|
| 280 |
+
href="https://github.com/orgs/community/discussions/196796"
|
| 281 |
+
target="_blank"
|
| 282 |
+
rel="noopener noreferrer"
|
| 283 |
+
className="premium-glass-card group flex items-center gap-4 p-4 rounded-xl border border-white/5 dark:border-white/10 bg-white/[0.02] dark:bg-black/30 backdrop-blur-md transition-all duration-300 hover:border-primary/40 hover:shadow-[0_0_15px_rgba(255,170,64,0.1)] hover:scale-[1.02] active:scale-[0.98]"
|
| 284 |
+
>
|
| 285 |
+
<div className="w-10 h-10 rounded-lg bg-black/10 dark:bg-white/5 border border-white/5 flex items-center justify-center text-muted-foreground group-hover:text-primary transition-colors duration-300 shadow-[inset_0_1px_1px_rgba(255,255,255,0.05)]">
|
| 286 |
+
<svg className="w-5 h-5 fill-current" viewBox="0 0 24 24" aria-hidden="true">
|
| 287 |
+
<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" />
|
| 288 |
+
</svg>
|
| 289 |
+
</div>
|
| 290 |
+
<div className="flex flex-col text-left rtl:text-right">
|
| 291 |
+
<span className="font-mono text-[9px] text-muted-foreground/60 uppercase tracking-widest leading-none mb-1">{t("githubBadgeDesc")}</span>
|
| 292 |
+
<span className="text-xs font-bold text-foreground group-hover:text-primary transition-colors duration-300 tracking-wide leading-none">{t("githubBadgeTitle")}</span>
|
| 293 |
+
</div>
|
| 294 |
+
</a>
|
| 295 |
+
|
| 296 |
+
{/* Product Hunt Badge */}
|
| 297 |
+
<a
|
| 298 |
+
href="https://www.producthunt.com/products/hubapi?launch=hubapi"
|
| 299 |
+
target="_blank"
|
| 300 |
+
rel="noopener noreferrer"
|
| 301 |
+
className="premium-glass-card group flex items-center gap-4 p-4 rounded-xl border border-white/5 dark:border-white/10 bg-white/[0.02] dark:bg-black/30 backdrop-blur-md transition-all duration-300 hover:border-primary/40 hover:shadow-[0_0_15px_rgba(255,170,64,0.1)] hover:scale-[1.02] active:scale-[0.98]"
|
| 302 |
+
>
|
| 303 |
+
<div className="w-10 h-10 rounded-lg bg-black/10 dark:bg-white/5 border border-white/5 flex items-center justify-center text-muted-foreground group-hover:text-primary transition-colors duration-300 shadow-[inset_0_1px_1px_rgba(255,255,255,0.05)]">
|
| 304 |
+
<svg className="w-5 h-5 fill-current" viewBox="0 0 24 24" aria-hidden="true">
|
| 305 |
+
<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" />
|
| 306 |
+
</svg>
|
| 307 |
+
</div>
|
| 308 |
+
<div className="flex flex-col text-left rtl:text-right">
|
| 309 |
+
<span className="font-mono text-[9px] text-muted-foreground/60 uppercase tracking-widest leading-none mb-1">{t("phBadgeDesc")}</span>
|
| 310 |
+
<span className="text-xs font-bold text-foreground group-hover:text-primary transition-colors duration-300 tracking-wide leading-none">{t("phBadgeTitle")}</span>
|
| 311 |
+
</div>
|
| 312 |
+
</a>
|
| 313 |
+
</motion.div>
|
| 314 |
+
|
| 315 |
<motion.p
|
| 316 |
initial={{ y: 20, opacity: 0 }}
|
| 317 |
animate={{ y: 0, opacity: 1 }}
|
lib/languages.ts
CHANGED
|
@@ -16,6 +16,10 @@ export const translations = {
|
|
| 16 |
statusSecure: "SECURE",
|
| 17 |
systemStatus: "System Status",
|
| 18 |
allRightsReserved: "All rights reserved.",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
// Ambient Reading Mode & A/B test
|
| 21 |
ambientMode: "Ambient Mode",
|
|
@@ -364,6 +368,10 @@ export const translations = {
|
|
| 364 |
statusSecure: "آمن للغاية",
|
| 365 |
systemStatus: "حالة النظام",
|
| 366 |
allRightsReserved: "جميع الحقوق محفوظة.",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
|
| 368 |
// Ambient Reading Mode & A/B test
|
| 369 |
ambientMode: "الوضع البسيط",
|
|
|
|
| 16 |
statusSecure: "SECURE",
|
| 17 |
systemStatus: "System Status",
|
| 18 |
allRightsReserved: "All rights reserved.",
|
| 19 |
+
githubBadgeTitle: "GitHub Discussions",
|
| 20 |
+
githubBadgeDesc: "Join Community Debate",
|
| 21 |
+
phBadgeTitle: "Product Hunt",
|
| 22 |
+
phBadgeDesc: "Support & View Launch",
|
| 23 |
|
| 24 |
// Ambient Reading Mode & A/B test
|
| 25 |
ambientMode: "Ambient Mode",
|
|
|
|
| 368 |
statusSecure: "آمن للغاية",
|
| 369 |
systemStatus: "حالة النظام",
|
| 370 |
allRightsReserved: "جميع الحقوق محفوظة.",
|
| 371 |
+
githubBadgeTitle: "مناقشات جيت هاب",
|
| 372 |
+
githubBadgeDesc: "شارك في نقاش المطورين",
|
| 373 |
+
phBadgeTitle: "برودكت هانت",
|
| 374 |
+
phBadgeDesc: "ادعمنا وشاهد الإطلاق",
|
| 375 |
|
| 376 |
// Ambient Reading Mode & A/B test
|
| 377 |
ambientMode: "الوضع البسيط",
|