Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextJS Image component #400

Merged
merged 1 commit into from
Oct 30, 2023
Merged
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
5 changes: 3 additions & 2 deletions apps/website/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Divider, Heading, HStack, Image, Link, Text, VStack } from "@chakra-ui/react"
import { Divider, Heading, HStack, Link, Text, VStack } from "@chakra-ui/react"
import Image from "next/image"
import IconArrowUpRight from "../icons/IconArrowUpRight"
import IconDiscord from "../icons/IconDiscord"

export default function Footer() {
return (
<VStack py="7" justify="space-between" h="611px" pt="28" pb="10">
<Image htmlWidth="79px" src="./semaphore-icon.svg" alt="Semaphore logo" />
<Image width="79" height="158" src="./semaphore-icon.svg" alt="Semaphore logo" />
<HStack fontSize="18px" spacing="10">
<Link href="/projects">
<Heading fontSize="18px" fontWeight="normal">
Expand Down
5 changes: 3 additions & 2 deletions apps/website/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
"use client"

import { Heading, HStack, Image, Link } from "@chakra-ui/react"
import { Heading, HStack, Link } from "@chakra-ui/react"
import { usePathname } from "next/navigation"
import Image from "next/image"
import IconArrowUpRight from "../icons/IconArrowUpRight"

export default function Navbar() {
const pathname = usePathname()

return (
<HStack py="7" justify="space-between">
<Image htmlWidth="148px" src="./semaphore-logo.svg" alt="Semaphore logo" />
<Image width="148" height="40" src="./semaphore-logo.svg" alt="Semaphore logo" />
<HStack fontSize="18px" spacing="10">
<Link
href="/projects"
Expand Down
Loading