diff --git a/src/App.vue b/src/App.vue index 10d1172..9161f73 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,6 +14,7 @@ import { reminders } from '@/native/reminders' import { useAuthStore } from '@/stores/auth' import { useUiStore } from '@/stores/ui' import { demo, exitDemo } from '@/demo' +import { ADS_ENABLED } from '@/config/features' const auth = useAuthStore() const ui = useUiStore() @@ -22,8 +23,8 @@ const router = useRouter() // 로그인 또는 둘러보기(데모) 상태면 사이드바/전체 셸 표시 const authed = computed(() => auth.isAuthenticated || demo.on) -// 광고: 유료(PREMIUM) 회원에게는 표시하지 않음 -const showAds = computed(() => !auth.isPremium) +// 광고: 광고 기능이 켜져 있고 유료(PREMIUM) 회원이 아닐 때만 표시 (레이아웃 하단 여백도 함께 제어) +const showAds = computed(() => ADS_ENABLED && !auth.isPremium) // 공개 법적 고지(개인정보처리방침·약관)는 웹 브라우저에서도 접근 허용 (앱 마켓 정책 URL) const isPublicLegal = computed(() => !!route.meta.public) diff --git a/src/components/AdBanner.vue b/src/components/AdBanner.vue index 348fa5e..bfc5dbf 100644 --- a/src/components/AdBanner.vue +++ b/src/components/AdBanner.vue @@ -1,8 +1,9 @@