메타 태그 body 적용 완료
This commit is contained in:
2026-10-20 13:07:14 +09:00
parent 74d8cea5a8
commit 9f27300fe6
19 changed files with 593 additions and 115 deletions
+25 -2
View File
@@ -187,7 +187,8 @@
</div>
<div class="grid grid-cols-3 sm:grid-cols-6 gap-2 text-center">
<button
v-for="subj in subjects"
v-for="subj in subjects"
:data-subject="subj.name"
:key="subj.name"
type="button"
@click="formData.subject = subj.name"
@@ -478,7 +479,28 @@ const currentNotice = ref(rollingMessages[0])
let rollingIdx = 0
onMounted(() => {
formData.grade = currentGradeOptions.value[1] || currentGradeOptions.value[0]
// 외부 모달에서 과목 선택 시 반응형 폼 자동 동기화
if (typeof window !== 'undefined') {
window.addEventListener('select-subject', (e) => {
if (e.detail && e.detail.subject) {
const target = e.detail.subject;
try {
if (typeof subjects !== 'undefined' && Array.isArray(subjects)) {
const found = subjects.find(s => s.name === target || s.label.startsWith(target));
if (found) formData.subject = found.name;
} else if (typeof subjectOptions !== 'undefined' && Array.isArray(subjectOptions)) {
const found = subjectOptions.find(s => s === target || s.startsWith(target));
if (found) formData.subject = found;
} else {
formData.subject = target;
}
} catch (_) {
formData.subject = target;
}
}
});
}
formData.grade = currentGradeOptions.value[1] || currentGradeOptions.value[0]
setInterval(() => {
rollingIdx = (rollingIdx + 1) % rollingMessages.length
currentNotice.value = rollingMessages[rollingIdx]
@@ -592,6 +614,7 @@ useHead({
],
meta: [
{ name: 'naver-site-verification', content: 'dfb36e971115b72176e1c1e37c6ca27a95e855e3' },
{ name: 'google-site-verification', content: 'DvXzTXFe_DBt8nrIiI7SwWYgOENNAWNW5op79syf5pM' },
{ name: 'description', content: '과외 비용·시세 투명 비교부터 무료 시범수업 신청까지. 명문대 및 베테랑 전문 강사진 1:1 맞춤 배정 솔루션' },
{ property: 'og:type', content: 'website' },
{ property: 'og:site_name', content: '과외매칭센터' },