index.vue 13 KB

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