호스트네임 위치변경건.

This commit is contained in:
junghoon86.park
2024-06-14 17:12:34 +09:00
parent 494e98502b
commit e6aba049e8
2 changed files with 88 additions and 45 deletions

View File

@@ -1,18 +1,27 @@
import React, { memo, useCallback, useEffect, useState } from "react"; import React, {
memo,
useCallback,
useEffect,
useState,
} from 'react';
import classNames from "classnames"; import classNames from 'classnames';
import Spottable from "@enact/spotlight/Spottable"; import Spottable from '@enact/spotlight/Spottable';
import defaultLogoImg from "../../../assets/images/ic-tab-partners-default@3x.png"; import defaultLogoImg
import defaultimgHorizontal from "../../../assets/images/img-thumb-empty-hor@3x.png"; from '../../../assets/images/ic-tab-partners-default@3x.png';
import defaultImageItem from "../../../assets/images/img-thumb-empty-product@3x.png"; import defaultimgHorizontal
import defaultimgVertical from "../../../assets/images/img-thumb-empty-ver@3x.png"; from '../../../assets/images/img-thumb-empty-hor@3x.png';
import IcLiveShow from "../../../assets/images/tag/tag-liveshow.png"; import defaultImageItem
import usePriceInfo from "../../hooks/usePriceInfo"; from '../../../assets/images/img-thumb-empty-product@3x.png';
import { $L } from "../../utils/helperMethods"; import defaultimgVertical
import CustomImage from "../CustomImage/CustomImage"; from '../../../assets/images/img-thumb-empty-ver@3x.png';
import css from "./TItemCard.module.less"; import IcLiveShow from '../../../assets/images/tag/tag-liveshow.png';
import usePriceInfo from '../../hooks/usePriceInfo';
import { $L } from '../../utils/helperMethods';
import CustomImage from '../CustomImage/CustomImage';
import css from './TItemCard.module.less';
const SpottableComponent = Spottable("div"); const SpottableComponent = Spottable("div");
@@ -185,8 +194,12 @@ export default memo(function TItemCard({
<CustomImage src={logo} fallbackSrc={defaultLogoImg} /> <CustomImage src={logo} fallbackSrc={defaultLogoImg} />
</div> </div>
)} )}
<h3 className={css.title}>{productName}</h3>
{catNm !== null && <h4 className={css.hstmNmTitle}>{catNm}</h4>} <h3 className={css.title}>
{catNm !== null && <p className={css.hstmNmTitle}>{catNm}</p>}
<h3 className={css.productNameTitle}>{productName}</h3>
</h3>
{priceInfo ? ( {priceInfo ? (
<p className={css.priceInfo}> <p className={css.priceInfo}>
{parseFloat(originalPrice.replace("$", "")) === 0 ? ( {parseFloat(originalPrice.replace("$", "")) === 0 ? (

View File

@@ -157,6 +157,26 @@
overflow: hidden; overflow: hidden;
} }
> h3 {
height: 64px;
font-weight: bold;
line-height: 1.33;
font-size: 24px;
color: @COLOR_GRAY06;
.elip(@clamp:2);
overflow: hidden;
> h3 {
height: 64px;
font-weight: bold;
line-height: 1.33;
font-size: 24px;
color: @COLOR_GRAY06;
.elip(@clamp:2);
overflow: hidden;
}
}
> p { > p {
font-weight: bold; font-weight: bold;
font-size: 30px; font-size: 30px;
@@ -280,31 +300,38 @@
.title { .title {
.size(@w: 438px, @h: 64px); .size(@w: 438px, @h: 64px);
margin-left: 10px; margin-left: 10px;
align-self: center;
font-weight: bold; .productNameTitle {
line-height: 1.33; align-self: center;
.elip(@clamp: 2); font-weight: bold;
line-height: 1.33;
.elip(@clamp: 2);
}
} }
&.hstNmWrap { &.hstNmWrap {
margin-top: 11px; margin-top: 11px;
.size(@w: 508px, @h: 107px); .size(@w: 508px, @h: 107px);
.title { .title {
margin-left: 10px; margin-left: 15px;
.size(@w: 438px, @h: 60px); .size(@w: 430px, @h: 100px);
align-self: flex-start; .productNameTitle {
font-weight: bold; .size(@w: 430px, @h: 60px);
line-height: 30px; align-self: flex-start;
.elip(@clamp: 2); font-weight: bold;
} line-height: 30px;
.hstmNmTitle { .elip(@clamp: 2);
margin: 5px 0 0 70px; }
.size(@w: 438px, @h: 26px); .hstmNmTitle {
color: #767676; margin: 5px 0 5px 0px;
font-size: 22px; .size(@w: 430px, @h: 26px);
line-height: 1.18; color: #767676;
.elip(@clamp: 1); font-size: 22px;
font-weight: normal; line-height: 1.18;
.elip(@clamp: 1);
font-weight: normal;
}
} }
} }
} }
@@ -361,18 +388,21 @@
} }
.title { .title {
margin-top: 8px; margin-top: 8px;
width: 270px;
.elip(@clamp: 9); .hstmNmTitle {
font-weight: bold; margin-top: 5px;
line-height: 32px; .size(@w: 270px, @h: 30px);
} color: #767676;
.hstmNmTitle { font-size: 22px;
margin-top: 5px; .elip(@clamp: 1);
.size(@w: 270px, @h: 30px); font-weight: normal;
color: #767676; }
font-size: 22px; .productNameTitle {
.elip(@clamp: 1); width: 270px;
font-weight: normal; .elip(@clamp: 9);
font-weight: bold;
line-height: 32px;
}
} }
} }
} }