diff --git a/app/app.vue b/app/app.vue
index cd7184c..7e3e42c 100644
--- a/app/app.vue
+++ b/app/app.vue
@@ -145,15 +145,16 @@ onBeforeUnmount(() => {
{{ gameData?.game_name }}
+
-
- {
@confirm-button-event="confirm.storeConfirmButtonEvent"
@cancel-button-event="confirm.storeCancelButtonEvent"
/>
- {
})
const isDuplication = computed(() => props.type === 'duplication')
const isSingle = computed(() => props.type === 'single')
-const isCustom = computed(() => props.type === 'custom')
const platformIcon = computed(() => PLATFORM_ICON_MAP[props.platform])
const duplicationImage = computed(() =>
isDuplication.value ? DUP_IMAGE_MAP[props.platform] : ''
@@ -80,8 +79,8 @@ const handleClick = () => {
return
}
- const url = gameData?.market_json[props.platform]?.url || ''
- window.open(url, '_blank')
+ const url = gameData?.market_json[props.platform]?.url
+ if (url) window.open(url, '_blank')
}
@@ -103,7 +102,7 @@ const handleClick = () => {
@@ -114,25 +113,19 @@ const handleClick = () => {
-
-
-
-
-
-
diff --git a/layers/components/atoms/icons/LogoApple.vue b/layers/components/atoms/icons/LogoApple.vue
index 5a51064..28a0ff5 100644
--- a/layers/components/atoms/icons/LogoApple.vue
+++ b/layers/components/atoms/icons/LogoApple.vue
@@ -6,7 +6,7 @@ interface Props {
withDefaults(defineProps(), {
size: 20,
- color: '#ffffff',
+ color: 'white',
})
@@ -15,14 +15,14 @@ withDefaults(defineProps(), {
xmlns="http://www.w3.org/2000/svg"
:width="size"
:height="size"
- viewBox="0 0 36 36"
+ viewBox="0 0 20 20"
:fill="color"
>
diff --git a/layers/components/atoms/icons/ShareLine.vue b/layers/components/atoms/icons/ShareLine.vue
index 5f4822b..68998ef 100644
--- a/layers/components/atoms/icons/ShareLine.vue
+++ b/layers/components/atoms/icons/ShareLine.vue
@@ -6,7 +6,7 @@ interface Props {
withDefaults(defineProps(), {
size: 24,
- color: 'white',
+ color: 'rgba(255,255,255,0.5)',
})
@@ -16,13 +16,12 @@ withDefaults(defineProps(), {
:width="size"
:height="size"
viewBox="0 0 24 24"
- fill="none"
+ :fill="color"
>
diff --git a/layers/components/blocks/CardNews.vue b/layers/components/blocks/CardNews.vue
index 929e499..88f9b93 100644
--- a/layers/components/blocks/CardNews.vue
+++ b/layers/components/blocks/CardNews.vue
@@ -72,7 +72,7 @@ const handleLinkClick = (title: string) => {
@apply absolute bottom-0 left-0 w-full pt-[14px] px-[18px] pb-[16px] flex flex-col justify-end border-t border-white/10 bg-black/40 shadow-[0_-10px_10px_0_rgba(0,0,0,0.25)] backdrop-blur-[25px] md:pt-[20px] text-left md:px-[26px] md:pb-[26px];
}
.card-title {
- @apply text-[14px] leading-[20px] font-medium text-white md:text-[18px] md:leading-[26px];
+ @apply text-[14px] leading-[20px] font-medium text-white line-clamp-1 md:text-[18px] md:leading-[26px];
}
.card-description {
@apply mt-[6px] text-[12px] leading-[18px] text-white/50 md:mt-1 md:text-[14px] md:leading-[24px];
diff --git a/layers/components/blocks/UtileContainer.vue b/layers/components/blocks/UtileContainer.vue
index 86a3fde..7e269c6 100644
--- a/layers/components/blocks/UtileContainer.vue
+++ b/layers/components/blocks/UtileContainer.vue
@@ -22,15 +22,17 @@ const pinToParent = computed(() => {
-
+
+
+
diff --git a/layers/components/layouts/Main.vue b/layers/components/layouts/Main.vue
index 33afd4a..8bdd6bf 100644
--- a/layers/components/layouts/Main.vue
+++ b/layers/components/layouts/Main.vue
@@ -59,7 +59,6 @@ watchEffect(() => {
setupSeoMeta(props.pageData?.meta_tag_json)
}
})
-
@@ -84,6 +83,12 @@ watchEffect(() => {
diff --git a/layers/components/widgets/ButtonList.vue b/layers/components/widgets/ButtonList.vue
index 46c8739..fbbcd31 100644
--- a/layers/components/widgets/ButtonList.vue
+++ b/layers/components/widgets/ButtonList.vue
@@ -5,73 +5,74 @@ import type {
} from '#layers/types/api/pageData'
import type { ButtonType } from '#layers/types/components/button'
-interface ButtonListProps {
+interface Props {
resourcesData: PageDataResourceGroup[]
pageVerTmplSeq: number
}
-
-const props = defineProps()
+const props = defineProps()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
-const BUTTON_TYPE_MAP = {
- URL: {
- _self: 'internal' as const,
- _blank: 'external' as const,
- },
- DOWNLOAD: 'download' as const,
-} as const
-const DEFAULT_BUTTON_TYPE: ButtonType = 'action'
-
-const getButtonType = (btnInfo: PageDataResourceGroupBtnInfo): ButtonType => {
- const btnType = btnInfo?.detail?.btn_type
- const btnTarget = btnInfo?.detail?.action?.link_target
-
- if (btnType === 'URL' && btnTarget) {
- return BUTTON_TYPE_MAP.URL[btnTarget] || DEFAULT_BUTTON_TYPE
- }
-
- if (btnType === 'DOWNLOAD') {
- return BUTTON_TYPE_MAP.DOWNLOAD
- }
-
- return DEFAULT_BUTTON_TYPE
+const getBtnType = (item?: PageDataResourceGroupBtnInfo): ButtonType => {
+ const t = item?.detail?.btn_type
+ const target = item?.detail?.action?.link_target
+ if (t === 'URL' && target)
+ return target === '_blank' ? 'external' : 'internal'
+ if (t === 'DOWNLOAD') return 'download'
+ return 'action'
}
-const handleSendLog = (index: number) => {
+const getBgColor = (item?: PageDataResourceGroupBtnInfo): string =>
+ getColorCode({
+ colorName: item?.color_name_btn,
+ colorCode: item?.color_code_btn,
+ })
+
+const getTextColor = (item?: PageDataResourceGroupBtnInfo): string =>
+ getColorCode({
+ colorName: item?.color_name_txt,
+ colorCode: item?.color_code_txt,
+ })
+
+const handleLogClick = (index: number) => {
sendLog(
locale.value,
useAnalyticsLogDataDirect(props.resourcesData[index], props.pageVerTmplSeq)
)
}
+
+// 편의상
+const buttonList = computed(() => props.resourcesData || [])
-
+
+
+ {{ button.btn_info?.txt_btn_name }}
+
{{ button.btn_info?.txt_btn_name }}
diff --git a/layers/components/blocks/modal/Client.vue b/layers/components/widgets/modal/Client.vue
similarity index 98%
rename from layers/components/blocks/modal/Client.vue
rename to layers/components/widgets/modal/Client.vue
index 25bfa38..ce8a93a 100644
--- a/layers/components/blocks/modal/Client.vue
+++ b/layers/components/widgets/modal/Client.vue
@@ -4,7 +4,7 @@ const { isShowCheckLauncher, isShowDownloadLauncher, downloadLauncher } =
-
-
+
diff --git a/layers/templates/GrContents01/index.vue b/layers/templates/GrContents01/index.vue
index 682792c..9b2746a 100644
--- a/layers/templates/GrContents01/index.vue
+++ b/layers/templates/GrContents01/index.vue
@@ -1,7 +1,6 @@