Skip to content

Commit

Permalink
fix responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhagarwal1 committed Nov 9, 2024
1 parent 5dd6803 commit 36f04fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function RootLayout({ children }) {
<Sidebar />

{/* Main content area */}
<main className="content-area ml-20 mt-16 p-4">
<main className="content-area">
<div className="gtranslate_wrapper">
<Suspense fallback={<Loader />}>
{children}
Expand Down
10 changes: 6 additions & 4 deletions src/components/Global/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ import { HelpCircle, Info, Phone, Book, Rocket, TrendingUp } from 'lucide-react'

const Sidebar = () => {
const menuItems = [
{ href: "/RulesAndRegulations", label: "Rules and Regulations", icon: <Book /> },
{ href: "/participationterms", label: "Participation Terms", icon: <Info /> },
{ href: "/HelpCenter", label: "Help Center", icon: <HelpCircle /> },
{ href: "/sandbox", label: "Sanbox", icon: <Book /> },
{ href: "/moonshots", label: "Moonshots", icon: <Info /> },
{ href: "/storytime", label: "Story Line", icon: <HelpCircle /> },
{ href: "/Contact", label: "Contact Us", icon: <Phone /> },
{ href: "/innovate", label: "Innovate", icon: <Rocket /> },
{ href: "/growth", label: "Growth", icon: <TrendingUp /> },
];

return (
<aside className="hidden lg:flex fixed left-0 top-0 w-20 h-full bg-black text-white shadow-lg p-4 z-50">
<aside
className="hidden lg:flex fixed left-0 top-0 h-full bg-black text-white shadow-lg p-4 z-50"
style={{ width: '60px', marginTop: '6rem' }}>
<div className="flex flex-col space-y-8 items-center mt-20">
{menuItems.map((item, index) => (
<Link key={index} href={item.href} className="group relative flex items-center justify-center hover:text-blue-300 transition duration-200">
Expand Down

0 comments on commit 36f04fc

Please sign in to comment.