index.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <template>
  2. <div>
  3. <section
  4. id="quem-somos"
  5. class="relative min-h-screen flex flex-col bg-cover bg-center"
  6. :style="{ backgroundImage: `url(${heroBg})` }"
  7. >
  8. <div class="absolute inset-0 bg-violet-normal/80"></div>
  9. <div class="relative z-10 flex-1 flex items-center">
  10. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full py-16 lg:py-24">
  11. <div class="max-w-2xl">
  12. <h1
  13. class="reveal text-h2 text-white mb-6"
  14. style="font-size: clamp(2rem, 5vw, 3.75rem);"
  15. >
  16. Ser PRATI é fazer parte de algo maior
  17. </h1>
  18. <p class="reveal reveal-delay-1 text-subtitle-1 text-white/85 mb-10 leading-relaxed">
  19. Benefícios exclusivos, parceiros de qualidade e uma comunidade
  20. que cuida de você e sua família.
  21. </p>
  22. <div class="reveal reveal-delay-2 flex flex-col sm:flex-row gap-4">
  23. <button
  24. @click="scrollTo('associe-se')"
  25. class="btn-primary"
  26. >
  27. ASSOCIE-SE AGORA
  28. </button>
  29. <button
  30. @click="scrollTo('beneficios')"
  31. class="btn-outline"
  32. >
  33. CONHEÇA OS BENEFÍCIOS
  34. </button>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="relative z-10 bg-violet-dark/60 backdrop-blur-sm">
  40. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
  41. <div class="grid grid-cols-3 gap-4 text-center">
  42. <div class="reveal reveal-delay-1 flex flex-col items-center gap-1">
  43. <span class="material-icons text-white/80 text-3xl lg:text-4xl">group</span>
  44. <span class="text-h5 text-white font-bold" style="font-size: clamp(1.1rem, 2.5vw, 1.5rem);">1.000+</span>
  45. <span class="text-caption text-white/70 lg:text-sm">Associados</span>
  46. </div>
  47. <div class="reveal reveal-delay-2 flex flex-col items-center gap-1">
  48. <span class="material-icons text-white/80 text-3xl lg:text-4xl">handshake</span>
  49. <span class="text-h5 text-white font-bold" style="font-size: clamp(1.1rem, 2.5vw, 1.5rem);">50+</span>
  50. <span class="text-caption text-white/70 lg:text-sm">Parceiros</span>
  51. </div>
  52. <div class="reveal reveal-delay-3 flex flex-col items-center gap-1">
  53. <span class="material-icons text-white/80 text-3xl lg:text-4xl">history</span>
  54. <span class="text-h5 text-white font-bold" style="font-size: clamp(1.1rem, 2.5vw, 1.5rem);">30+</span>
  55. <span class="text-caption text-white/70 lg:text-sm">Anos de História</span>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </section>
  61. <section id="beneficios" class="bg-neutral-light py-16 lg:py-24">
  62. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  63. <div class="reveal text-center mb-12 lg:mb-16">
  64. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  65. Benefícios para você
  66. </h2>
  67. </div>
  68. <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
  69. <div
  70. v-for="(benefit, index) in benefits"
  71. :key="benefit.title"
  72. :class="`reveal reveal-delay-${index + 1}`"
  73. class="benefit-card"
  74. >
  75. <div class="benefit-icon-wrap">
  76. <span class="material-icons text-violet-normal text-2xl">{{ benefit.icon }}</span>
  77. </div>
  78. <h3 class="text-subtitle-1 font-semibold text-text mt-4 mb-2">
  79. {{ benefit.title }}
  80. </h3>
  81. <p class="text-body-2 text-text-2 leading-relaxed">
  82. {{ benefit.description }}
  83. </p>
  84. </div>
  85. </div>
  86. </div>
  87. </section>
  88. <section id="associe-se" class="bg-violet-light py-16 lg:py-24">
  89. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  90. <div class="reveal text-center mb-10 lg:mb-12">
  91. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  92. Associe-se
  93. </h2>
  94. </div>
  95. <div class="reveal reveal-delay-1 max-w-3xl mx-auto">
  96. <div class="mb-0">
  97. <button class="tab-active">
  98. NOVA ASSOCIAÇÃO
  99. </button>
  100. </div>
  101. <div class="bg-white rounded-b-2xl rounded-tr-2xl shadow-md p-6 lg:p-10">
  102. <form @submit.prevent="handleSubmit" novalidate>
  103. <div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-6">
  104. <div class="field-group">
  105. <label class="field-label">Nome Completo</label>
  106. <div class="field-input-wrap">
  107. <span class="material-icons field-icon">person</span>
  108. <input
  109. v-model="form.nomeCompleto"
  110. type="text"
  111. placeholder="Seu Nome"
  112. class="field-input"
  113. />
  114. </div>
  115. </div>
  116. <div class="field-group">
  117. <label class="field-label">CPF</label>
  118. <div class="field-input-wrap">
  119. <span class="material-icons field-icon">badge</span>
  120. <input
  121. :value="form.cpf"
  122. @input="handleCPF"
  123. type="text"
  124. placeholder="000.000.000-00"
  125. maxlength="14"
  126. class="field-input"
  127. />
  128. </div>
  129. </div>
  130. <div class="field-group">
  131. <label class="field-label">E-mail</label>
  132. <div class="field-input-wrap">
  133. <span class="material-icons field-icon">email</span>
  134. <input
  135. v-model="form.email"
  136. type="email"
  137. placeholder="nome@conta.com"
  138. class="field-input"
  139. />
  140. </div>
  141. </div>
  142. <div class="field-group">
  143. <label class="field-label">Telefone</label>
  144. <div class="field-input-wrap">
  145. <span class="material-icons field-icon">phone</span>
  146. <input
  147. v-model="form.telefone"
  148. type="tel"
  149. placeholder="00000000"
  150. class="field-input"
  151. />
  152. </div>
  153. </div>
  154. <div class="field-group">
  155. <label class="field-label">Cargo</label>
  156. <div class="field-input-wrap">
  157. <span class="material-icons field-icon">work</span>
  158. <input
  159. v-model="form.cargo"
  160. type="text"
  161. placeholder="Assistente Financeiro"
  162. class="field-input"
  163. />
  164. </div>
  165. </div>
  166. <div class="field-group">
  167. <label class="field-label">Setor</label>
  168. <div class="field-input-wrap">
  169. <span class="material-icons field-icon">business</span>
  170. <input
  171. v-model="form.setor"
  172. type="text"
  173. placeholder="Financeiro"
  174. class="field-input"
  175. />
  176. </div>
  177. </div>
  178. </div>
  179. <div class="flex justify-center">
  180. <button type="submit" class="btn-submit">
  181. ENVIAR SOLICITAÇÃO
  182. </button>
  183. </div>
  184. </form>
  185. </div>
  186. </div>
  187. </div>
  188. </section>
  189. <Transition name="toast">
  190. <div
  191. v-if="showSuccess"
  192. class="fixed bottom-6 right-6 z-50 bg-violet-normal text-white px-5 py-4 rounded-xl shadow-xl flex items-center gap-3"
  193. >
  194. <span class="material-icons text-xl">check_circle</span>
  195. <span class="text-sm font-medium">Solicitação enviada com sucesso!</span>
  196. </div>
  197. </Transition>
  198. </div>
  199. </template>
  200. <script setup lang="ts">
  201. import heroBg from '~/assets/images/imagem_fundo.png'
  202. useHead({ title: 'Ser Prati — Associação dos Servidores' })
  203. definePageMeta({ layout: 'default' })
  204. const scrollTo = (id: string) => {
  205. document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' })
  206. }
  207. const benefits = [
  208. {
  209. icon: 'local_offer',
  210. title: 'Descontos Exclusivos',
  211. description: 'Até 50% de desconto em parceiros selecionados.',
  212. },
  213. {
  214. icon: 'health_and_safety',
  215. title: 'Convênios Médicos',
  216. description: 'Planos de saúde com condições especiais.',
  217. },
  218. {
  219. icon: 'store',
  220. title: 'Loja do Associado',
  221. description: 'Produtos com preços diferenciados.',
  222. },
  223. {
  224. icon: 'badge',
  225. title: 'Carteirinha Digital',
  226. description: 'Acesso rápido aos benefícios pelo celular.',
  227. },
  228. {
  229. icon: 'notifications',
  230. title: 'Notificações',
  231. description: 'Fique por dentro das novidades e promoções.',
  232. },
  233. {
  234. icon: 'family_restroom',
  235. title: 'Dependentes',
  236. description: 'Inclua sua família nos benefícios.',
  237. },
  238. ]
  239. const form = reactive({
  240. nomeCompleto: '',
  241. cpf: '',
  242. email: '',
  243. telefone: '',
  244. cargo: '',
  245. setor: '',
  246. })
  247. const formatCPF = (value: string): string => {
  248. return value
  249. .replace(/\D/g, '')
  250. .replace(/(\d{3})(\d)/, '$1.$2')
  251. .replace(/(\d{3})(\d)/, '$1.$2')
  252. .replace(/(\d{3})(\d{1,2})$/, '$1-$2')
  253. .slice(0, 14)
  254. }
  255. const handleCPF = (e: Event) => {
  256. form.cpf = formatCPF((e.target as HTMLInputElement).value)
  257. }
  258. const showSuccess = ref(false)
  259. const handleSubmit = () => {
  260. console.log({ ...form })
  261. showSuccess.value = true
  262. setTimeout(() => { showSuccess.value = false }, 4000)
  263. Object.assign(form, {
  264. nomeCompleto: '',
  265. cpf: '',
  266. email: '',
  267. telefone: '',
  268. cargo: '',
  269. setor: '',
  270. })
  271. }
  272. onMounted(() => {
  273. const observer = new IntersectionObserver(
  274. (entries) => {
  275. entries.forEach((entry) => {
  276. if (entry.isIntersecting) {
  277. entry.target.classList.add('is-visible')
  278. observer.unobserve(entry.target)
  279. }
  280. })
  281. },
  282. { threshold: 0.1, rootMargin: '0px 0px -40px 0px' }
  283. )
  284. document.querySelectorAll('.reveal').forEach((el) => observer.observe(el))
  285. })
  286. </script>
  287. <style scoped>
  288. .btn-primary {
  289. background-color: #ffffff;
  290. color: #661d75;
  291. font-family: "Nunito", sans-serif;
  292. font-weight: 600;
  293. font-size: 0.875rem;
  294. letter-spacing: 1px;
  295. padding: 0.75rem 1.75rem;
  296. border-radius: 0.5rem;
  297. transition: background-color 0.2s, color 0.2s;
  298. cursor: pointer;
  299. white-space: nowrap;
  300. }
  301. .btn-primary:hover {
  302. background-color: #f0e8f1;
  303. }
  304. .btn-outline {
  305. background-color: transparent;
  306. color: #ffffff;
  307. font-family: "Nunito", sans-serif;
  308. font-weight: 600;
  309. font-size: 0.875rem;
  310. letter-spacing: 1px;
  311. padding: 0.75rem 1.75rem;
  312. border-radius: 0.5rem;
  313. border: 2px solid rgba(255, 255, 255, 0.75);
  314. transition: background-color 0.2s, border-color 0.2s;
  315. cursor: pointer;
  316. white-space: nowrap;
  317. }
  318. .btn-outline:hover {
  319. background-color: rgba(255, 255, 255, 0.1);
  320. border-color: #ffffff;
  321. }
  322. .benefit-card {
  323. background-color: #ffffff;
  324. border-radius: 1rem;
  325. padding: 1.75rem;
  326. box-shadow: 0 2px 12px rgba(102, 29, 117, 0.07);
  327. transition: box-shadow 0.2s, transform 0.2s;
  328. }
  329. .benefit-card:hover {
  330. box-shadow: 0 6px 24px rgba(102, 29, 117, 0.13);
  331. transform: translateY(-2px);
  332. }
  333. .benefit-icon-wrap {
  334. display: inline-flex;
  335. align-items: center;
  336. justify-content: center;
  337. width: 48px;
  338. height: 48px;
  339. background-color: #f0e8f1;
  340. border-radius: 0.75rem;
  341. }
  342. .tab-active {
  343. background-color: #661d75;
  344. color: #ffffff;
  345. font-family: "Nunito", sans-serif;
  346. font-weight: 600;
  347. font-size: 0.75rem;
  348. letter-spacing: 1.25px;
  349. padding: 0.625rem 1.5rem;
  350. border-radius: 0.5rem 0.5rem 0 0;
  351. cursor: default;
  352. }
  353. .field-group {
  354. display: flex;
  355. flex-direction: column;
  356. gap: 0.375rem;
  357. }
  358. .field-label {
  359. font-family: "Nunito", sans-serif;
  360. font-size: 0.8125rem;
  361. font-weight: 600;
  362. color: #505050;
  363. }
  364. .field-input-wrap {
  365. display: flex;
  366. align-items: center;
  367. gap: 0.5rem;
  368. border: 1.5px solid #C0C0C0;
  369. border-radius: 0.5rem;
  370. padding: 0.5rem 0.75rem;
  371. background-color: #fefefe;
  372. transition: border-color 0.2s;
  373. }
  374. .field-input-wrap:focus-within {
  375. border-color: #661d75;
  376. }
  377. .field-icon {
  378. font-size: 1.125rem;
  379. color: #b6b6b6;
  380. flex-shrink: 0;
  381. }
  382. .field-input {
  383. flex: 1;
  384. border: none;
  385. outline: none;
  386. background: transparent;
  387. font-family: "Nunito", sans-serif;
  388. font-size: 0.875rem;
  389. color: #161616;
  390. }
  391. .field-input::placeholder {
  392. color: #b6b6b6;
  393. }
  394. .btn-submit {
  395. background-color: #661d75;
  396. color: #ffffff;
  397. font-family: "Nunito", sans-serif;
  398. font-weight: 600;
  399. font-size: 0.875rem;
  400. letter-spacing: 1.25px;
  401. padding: 0.875rem 3rem;
  402. border-radius: 0.5rem;
  403. transition: background-color 0.2s;
  404. cursor: pointer;
  405. }
  406. .btn-submit:hover {
  407. background-color: #5c1a69;
  408. }
  409. .toast-enter-active,
  410. .toast-leave-active {
  411. transition: opacity 0.4s ease, transform 0.4s ease;
  412. }
  413. .toast-enter-from,
  414. .toast-leave-to {
  415. opacity: 0;
  416. transform: translateY(12px);
  417. }
  418. </style>