Skip to content

Commit

Permalink
fix: 아이콘 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cobocho committed Jul 17, 2024
1 parent 4fe5056 commit 2a0ee44
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions apps/web/src/app/(landing)/_components/IconBox/IconBox.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/* eslint-disable import/no-unresolved */
'use client'

import { motion } from 'framer-motion'
import React from 'react'
import Image from 'next/image'

// import Notion from '@/public/image/Notion.png'
// import Jira from '@/public/image/Jira.png'
// import Excel from '@/public/image/Excel.png'
// import FileIcon from '@/public/image/File.png'
// import Folder from '@/public/image/Folder.png'
// import Pen from '@/public/image/Pen.png'
// import SpredadSheet from '@/public/image/SpredadSheet.png'

import Notion from './assets/Notion.png'
import Jira from './assets/Jira.png'
import Excel from './assets/Excel.png'
import FileIcon from './assets/File.png'
import Folder from './assets/Folder.png'
import Pen from './assets/Pen.png'
import SpredadSheet from './assets/spredadSheet.png'
import { IconBoxContainer } from './IconBox.css'

interface IconBoxProps {
Expand Down Expand Up @@ -107,15 +105,15 @@ export const IconBox = ({ name }: IconBoxProps) => {
right: icon?.right ? icon?.right : undefined,
}

// const iconImage = {
// notion: Notion,
// jira: Jira,
// excel: Excel,
// file: FileIcon,
// folder: Folder,
// pen: Pen,
// spredadSheet: SpredadSheet,
// }
const iconImage = {
notion: Notion,
jira: Jira,
excel: Excel,
file: FileIcon,
folder: Folder,
pen: Pen,
spredadSheet: SpredadSheet,
}

return (
<motion.div
Expand Down Expand Up @@ -155,8 +153,7 @@ export const IconBox = ({ name }: IconBoxProps) => {
}}
>
<Image
// src={iconImage[name]}
src={`/image/${name}.png`}
src={iconImage[name]}
alt={`Icon Image of ${name}`}
width={icon.width}
height={icon.height}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a0ee44

Please sign in to comment.