Skip to content

Commit

Permalink
fix: ASAP 썸네일 임시 이미지로 대체
Browse files Browse the repository at this point in the history
  • Loading branch information
solar3070 committed Sep 4, 2023
1 parent 9e94623 commit e650290
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion src/views/ProjectPage/components/project/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ReactComponent as AppStore } from '../../assets/app-store-40x40.svg';
import { ReactComponent as Github } from '../../assets/github-40x40.svg';
import { ReactComponent as Instagram } from '../../assets/instagram-30x30.svg';
import { ReactComponent as PlayStore } from '../../assets/play-store-40x40.svg';
import asap from '../../assets/temp-asap-thumbnail.png';
import { ReactComponent as Web } from '../../assets/website-40x40.svg';
import { ReactComponent as Youtube } from '../../assets/youtube-30x30.svg';
import styles from './project-card.module.scss';
Expand All @@ -16,7 +17,23 @@ export function ProjectCard({ project }: { project: ProjectType }) {
return (
<Link href={`/project/${project.id}`}>
<article className={`${styles.item} ${GTM_CLASS.projectCard}`}>
{RepresentativeImageRender(project.logoImage, project?.thumbnailImage)}
{
/* 임시 코드 */
project.name === 'ASAP' ? (
<div className={styles['image-wrapper']}>
<Image
className={`${GTM_CLASS.projectCard}`}
src={asap}
width={316}
height={176}
alt="thumbnail"
/>
</div>
) : (
RepresentativeImageRender(project.logoImage, project?.thumbnailImage)
)
}
{/* {RepresentativeImageRender(project.logoImage, project?.thumbnailImage)} */}
<div className={`${styles.content} ${GTM_CLASS.projectCard}`}>
<div className={`${styles.types} ${GTM_CLASS.projectCard}`}>
{ServiceTypeRender(project.serviceTypes)}
Expand Down

0 comments on commit e650290

Please sign in to comment.