From 82295502202b59ac4b50bac824a4c05afe401818 Mon Sep 17 00:00:00 2001 From: clkim Date: Thu, 30 Oct 2025 21:32:17 +0900 Subject: [PATCH] =?UTF-8?q?feat.=20getResolvedHost=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80,=20img=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/components/atoms/Button/Launcher.vue | 5 +-- layers/components/atoms/Button/Sns.vue | 4 +- layers/components/atoms/Img.vue | 37 +++++++++++-------- layers/components/atoms/ResourcesImg.vue | 41 +++++++++++++++++++++ layers/templates/GrContents01/index.vue | 2 +- layers/utils/styleUtil.ts | 20 ++++++++-- 6 files changed, 84 insertions(+), 25 deletions(-) create mode 100644 layers/components/atoms/ResourcesImg.vue diff --git a/layers/components/atoms/Button/Launcher.vue b/layers/components/atoms/Button/Launcher.vue index 8918489..16d9ece 100644 --- a/layers/components/atoms/Button/Launcher.vue +++ b/layers/components/atoms/Button/Launcher.vue @@ -49,9 +49,6 @@ const componentTag = computed(() => { const isDuplication = computed(() => props.type === 'duplication') const isSingle = computed(() => props.type === 'single') const platformIcon = computed(() => PLATFORM_ICON_MAP[props.platform]) -const duplicationImage = computed(() => - isDuplication.value ? DUP_IMAGE_MAP[props.platform] : '' -) const inlineStyle = computed(() => { const style: CSSProperties = {} @@ -63,7 +60,7 @@ const inlineStyle = computed(() => { style.color = props.textColor } if (props.type === 'duplication') { - style.backgroundImage = `url(${duplicationImage.value})` + style.backgroundImage = `url(${getImageHost(DUP_IMAGE_MAP[props.platform])})` } return style }) diff --git a/layers/components/atoms/Button/Sns.vue b/layers/components/atoms/Button/Sns.vue index ca3194f..0ef8347 100644 --- a/layers/components/atoms/Button/Sns.vue +++ b/layers/components/atoms/Button/Sns.vue @@ -77,7 +77,7 @@ const handleCopy = async () => { target="_blank" class="sns-item" :style="{ - backgroundImage: `url(/images/common/ic-v2-logo-${key}-fill.svg)`, + backgroundImage: `url(${getImageHost(`/images/common/ic-v2-logo-${key}-fill.svg`)})`, }" > {{ key }} @@ -87,7 +87,7 @@ const handleCopy = async () => { type="button" class="sns-item" :style="{ - backgroundImage: `url(/images/common/ic-v2-community-link-line.svg)`, + backgroundImage: `url(${getImageHost('/images/common/ic-v2-community-link-line.svg')})`, }" @click="handleCopy" > diff --git a/layers/components/atoms/Img.vue b/layers/components/atoms/Img.vue index 8ec9a47..2343cea 100644 --- a/layers/components/atoms/Img.vue +++ b/layers/components/atoms/Img.vue @@ -1,38 +1,45 @@