first commit
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<script setup lang="ts">
|
||||
// 공통 헤더 — 메인('home')은 커피챗 CTA, 서브 페이지('back')는 채용 홈 복귀 링크
|
||||
interface Props {
|
||||
variant?: 'home' | 'back'
|
||||
}
|
||||
withDefaults(defineProps<Props>(), {
|
||||
variant: 'home',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<header>
|
||||
<div class="wrap nav">
|
||||
<NuxtLink to="/" class="logo" aria-label="이너탭 홈">
|
||||
<img src="/images/img-itab.png" alt="innertab" >
|
||||
</NuxtLink>
|
||||
|
||||
<NuxtLink v-if="variant === 'home'" to="/coffee-chat" class="nav-cta">
|
||||
커피챗 신청
|
||||
</NuxtLink>
|
||||
<NuxtLink v-else to="/" class="back">← 채용 홈으로</NuxtLink>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
background: rgba(250, 248, 244, 0.82);
|
||||
backdrop-filter: blur(0.875rem); /* 14px */
|
||||
border-bottom: 0.0625rem solid var(--line);
|
||||
}
|
||||
|
||||
.nav {
|
||||
height: 4.5rem; /* 72px */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
height: 1.75rem; /* 28px */
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-cta {
|
||||
font-size: 0.9375rem; /* 15px */
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
background: var(--brand);
|
||||
padding: 0.625rem 1.375rem; /* 10px 22px */
|
||||
border-radius: 6.25rem; /* 100px */
|
||||
white-space: nowrap;
|
||||
transition: background 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-cta:hover {
|
||||
background: #161e36;
|
||||
transform: translateY(-0.0625rem);
|
||||
}
|
||||
|
||||
.back {
|
||||
font-size: 0.875rem; /* 14px */
|
||||
font-weight: 600;
|
||||
color: var(--ink-soft);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4375rem; /* 7px */
|
||||
}
|
||||
|
||||
.back:hover {
|
||||
color: var(--ink);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user