diff --git a/web/components/Icons.tsx b/web/components/Icons.tsx index 09ce2c6..2215c48 100644 --- a/web/components/Icons.tsx +++ b/web/components/Icons.tsx @@ -23,3 +23,428 @@ export const GitHubIcon: FC = ({ className, ...otherProps }) => { ) } + +export const Logo: FC = ({ className, ...otherProps }) => { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} + +export const VsCodeIcon: FC = ({ className, ...otherProps }) => { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} + +export const JetBrainsIcon: FC = ({ className, ...otherProps }) => { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} diff --git a/web/components/InstallCard.tsx b/web/components/InstallCard.tsx index fe7628a..a454ef8 100644 --- a/web/components/InstallCard.tsx +++ b/web/components/InstallCard.tsx @@ -2,18 +2,26 @@ import Image from 'next/image' import React from 'react' interface PageProps { - image: StaticImageData + // image: StaticImageData + Icon: any name: string enabled: boolean link: string } -export default function InstallCard({ image, name, enabled, link }: PageProps) { +export default function InstallCard({ + // image, + name, + enabled, + link, + Icon, +}: PageProps) { return (
{/* IDE details */}
- + {/* {name} */} +
{name}
{/* Button links */} diff --git a/web/components/Installation.tsx b/web/components/Installation.tsx index 9b62ffb..4d37840 100644 --- a/web/components/Installation.tsx +++ b/web/components/Installation.tsx @@ -1,9 +1,8 @@ -import React from 'react' -import vscodelogo from '../public/vscode.svg' -import jetbrainslogo from '../public/jetbrains.svg' +import React, { FC } from 'react' +import { JetBrainsIcon, VsCodeIcon } from './Icons' import InstallCard from './InstallCard' -export default function Installation() { +const Installation: FC = () => { return (
@@ -13,13 +12,13 @@ export default function Installation() {
) } + +export default Installation diff --git a/web/components/Navbar.tsx b/web/components/Navbar.tsx index ab480e5..a4e26cc 100644 --- a/web/components/Navbar.tsx +++ b/web/components/Navbar.tsx @@ -1,20 +1,14 @@ import Image from 'next/image' import Link from 'next/link' import React from 'react' -import { GitHubIcon } from './Icons' +import { GitHubIcon, Logo } from './Icons' export default function Navbar() { return (
- React and Next.js Snippets Logo + React & Next.js Snippets diff --git a/web/public/jetbrains.svg b/web/public/jetbrains.svg deleted file mode 100644 index 90259fd..0000000 --- a/web/public/jetbrains.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/web/public/logo.svg b/web/public/logo.svg index 3a84a79..2217f2a 100644 --- a/web/public/logo.svg +++ b/web/public/logo.svg @@ -1 +1,33 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/public/vscode.svg b/web/public/vscode.svg deleted file mode 100644 index 919c3bc..0000000 --- a/web/public/vscode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file