{"id":23925256,"url":"https://github.com/programming-communities/nav-bar-nextjs","last_synced_at":"2025-02-24T00:16:12.223Z","repository":{"id":263351476,"uuid":"890105747","full_name":"Programming-Communities/Nav-Bar-Nextjs","owner":"Programming-Communities","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-18T01:58:25.000Z","size":541,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T20:13:35.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Programming-Communities.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-18T01:55:13.000Z","updated_at":"2024-12-23T03:50:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0629dd59-16f5-48cc-b110-306f560992b1","html_url":"https://github.com/Programming-Communities/Nav-Bar-Nextjs","commit_stats":null,"previous_names":["programming-communities/nav-bar-nextjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2FNav-Bar-Nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2FNav-Bar-Nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2FNav-Bar-Nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2FNav-Bar-Nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Programming-Communities","download_url":"https://codeload.github.com/Programming-Communities/Nav-Bar-Nextjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395747,"owners_count":19794572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-05T20:12:43.895Z","updated_at":"2025-02-24T00:16:12.213Z","avatar_url":"https://github.com/Programming-Communities.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Nav Bar\n\n![alt text](\u003cpublic/Screenshot 2024-11-18 064959.png\u003e)\n![alt text](\u003cpublic/Screenshot 2024-11-18 064932.png\u003e)\n![alt text](\u003cpublic/Screenshot 2024-11-18 065038.png\u003e)\n\n```import { HtmlHTMLAttributes } from \"react\";\nimport { cva } from \"class-variance-authority\";\n\nconst classes = cva('border h-12 rounded-full px-6 font-medium', {\n  variants: {\n    variant: {\n      primary: 'bg-lime-400 text-neutral-950 border-lime-400',\n      secondary: 'border-white text-white bg-transparent',\n    },\n  },\n});\n\nexport default function Button(\n  props: { \n    variant: \"primary\" | \"secondary\";\n  } \u0026 HtmlHTMLAttributes\u003cHTMLButtonElement\u003e\n) {\n  const { variant, className, ...otherProps } = props;\n\n  return (\n    \u003cbutton\n      className={classes({\n        variant,\n        className,\n      })}\n      {...otherProps}\n    /\u003e\n  );\n}\n\n```\n\n\n\n```import Image from \"next/image\";\nimport logoImage from \"@/assets/images/logo.svg\";\nimport Button from \"@/components/Button\";\n\n\nconst navLinks = [\n    { label: \"Home\", href: \"#\" },\n    { label: \"Features\", href: \"#features\" },\n    { label: \"Integrations\", href: \"#integrations\" },\n    { label: \"FAQs\", href: \"#faqs\" },\n];\n\nexport default function Navbar() {\n    return (\n        \u003csection className=\"py-4 lg:py-8\"\u003e\n            \u003cdiv className=\"container max-w-5xl\"\u003e\n                \u003cdiv className=\"grid grid-cols-2 lg:grid-cols-3 border border-white/15 rounded-full p-2 px-4 md:pr-2 items-center\"\u003e\n                    \u003cdiv\u003e\n                        \u003cImage src={logoImage} alt=\"Layers Logo\" className=\"h-9 md:h-auto  w-auto\" /\u003e\n                    \u003c/div\u003e\n                    \u003cdiv className=\"lg:flex justify-center items-center hidden\"\u003e\n                        \u003cnav className=\"flex gap-6 font-medium\"\u003e\n                            {navLinks.map((link) =\u003e (\n                                \u003ca href = {link.href} key = {link.label}\u003e\n                                    {link.label}\n                                \u003c/a\u003e\n                            ))}\n                        \u003c/nav\u003e\n                    \u003c/div\u003e\n                    \u003cdiv className=\"flex justify-end gap-4\"\u003e\n                        \u003csvg\n                            xmlns=\"http://www.w3.org/2000/svg\"\n                            width=\"24\"\n                            height=\"24\"\n                            viewBox=\"0 0 24 24\"\n                            fill=\"none\"\n                            stroke=\"currentColor\"\n                            strokeWidth=\"2\"\n                            strokeLinecap=\"round\"\n                            strokeLinejoin=\"round\"\n                            className=\"feather feather-menu md:hidden\"\n                        \u003e\n                            \u003cline x1=\"3\" y1=\"12\" x2=\"21\" y2=\"12\"\u003e\u003c/line\u003e\n                            \u003cline x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\"\u003e\u003c/line\u003e\n                            \u003cline x1=\"3\" y1=\"18\" x2=\"21\" y2=\"18\"\u003e\u003c/line\u003e\n                        \u003c/svg\u003e\n                        \u003cButton variant=\"secondary\" className=\"hidden md:inline-flex items-center\"\u003eLog In\u003c/Button\u003e\n                        \u003cButton variant=\"primary\" className=\"hidden md:inline-flex items-center\"\u003eSign Up\u003c/Button\u003e\n                        \n                    \u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/section\u003e\n    );\n}\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramming-communities%2Fnav-bar-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogramming-communities%2Fnav-bar-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramming-communities%2Fnav-bar-nextjs/lists"}