Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions landing-page/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,30 @@

@layer base {
.dark, .dark:root {
--background: 0 0% 5%; /* Very dark gray/black #0d0d0d */
--foreground: 0 0% 98%;
--primary: 48 100% 50%; /* #FFCC00 */
--primary-foreground: 0 0% 0%;
--secondary: 145 100% 39%; /* #00C853 */
--secondary-foreground: 0 0% 100%;
--card: 0 0% 10%;
--card-foreground: 0 0% 98%;
--border: 0 0% 20%;
--background: #212121;
--foreground: #fafafa;
--primary: #FFCC00;
--primary-foreground: #000000;
--secondary: #2E8B00;
--secondary-foreground: #ffffff;
--card: #292929;
--card-foreground: #fafafa;
--border: #333333;
}
Comment thread
Sarthakkad05 marked this conversation as resolved.
}

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 0%;
--primary: 48 100% 50%; /* #FFCC00 */
--primary-foreground: 0 0% 0%;
--secondary: 145 100% 39%; /* #00C853 */
--secondary-foreground: 0 0% 100%;
--card: 0 0% 100%;
--card-foreground: 0 0% 0%;
--border: 0 0% 0%;
--background: #ffffff;
--foreground: #000000;
--primary: #FFCC00;
--primary-foreground: #000000;
--secondary: #2E8B00;
--secondary-foreground: #ffffff;
--card: #ffffff;
--card-foreground: #000000;
--border: #000000;
}


}
Comment thread
Sarthakkad05 marked this conversation as resolved.

@layer base {
Expand All @@ -53,4 +51,4 @@
-ms-overflow-style: none;
scrollbar-width: none;
}
}
}
38 changes: 28 additions & 10 deletions landing-page/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,42 @@ const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const playfair = Playfair_Display({ subsets: ["latin"], variable: "--font-playfair" });

export const metadata: Metadata = {
title: "Social Share Button - Lightweight social sharing",
description: "Lightweight socialshare button library for modern websites. Zero dependencies, <10KB, Any framework.",
title: "SocialShareButton",
description: "Lightweight social share button library",
};

export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${inter.variable} ${playfair.variable} antialiased font-sans bg-background text-foreground`}
>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
{children}
<body className={`${inter.variable} ${playfair.variable} font-sans`}>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem={false}>

{/* Three-column layout */}
<div className="flex min-h-screen">

{/* Left fixed panel */}
<div className="hidden lg:block w-[120px] shrink-0">
<div className="fixed top-0 left-0 w-[120px] h-full bg-[#e8e8e8] dark:bg-[#111111] border-r border-neutral-200 dark:border-neutral-900 z-40" />
</div>
Comment thread
Sarthakkad05 marked this conversation as resolved.

{/* Main content */}
<div className="flex-1 min-w-0">
{children}
</div>

{/* Right fixed panel */}
<div className="hidden lg:block w-[120px] shrink-0">
<div className="fixed top-0 right-0 w-[120px] h-full bg-[#e8e8e8] dark:bg-[#111111] border-l border-neutral-200 dark:border-neutral-900 z-40" />
</div>

</div>

</ThemeProvider>
</body>
</html>
);
}
}
2 changes: 1 addition & 1 deletion landing-page/src/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function Hero() {

{/* Floating Mockup */}
<div className="relative mx-auto w-full max-w-md lg:max-w-none lg:ml-auto perspective-1000">
<div className="rounded-xl border-2 border-[#FFCC00] bg-background p-6 shadow-[0_0_30px_rgba(255,204,0,0.15)] transform-gpu hover:-translate-y-2 transition-transform duration-500">
<div className="rounded-xl border-2 border-[#FFCC00] bg-card p-6 shadow-[0_0_30px_rgba(255,204,0,0.15)] transform-gpu hover:-translate-y-2 transition-transform duration-500">
<div className="flex items-center justify-between mb-8 cursor-move">
<h3 className="font-serif text-2xl font-bold text-center w-full text-[#00C853]">Share this Page</h3>
<button className="absolute right-4 top-4 text-neutral-400 hover:text-foreground">✕</button>
Expand Down
2 changes: 1 addition & 1 deletion landing-page/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function Navbar() {
const { theme, setTheme } = useTheme();

return (
<nav className="fixed top-0 w-full z-50 border-b border-white/10 bg-background/80 backdrop-blur-md">
<nav className="fixed top-0 left-0 right-0 lg:left-[120px] lg:right-[120px] z-50 border-b border-white/10 bg-background/80 backdrop-blur-md">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center h-16">
{/* Logo */}
Expand Down
Loading