1
1
<template >
2
- <div class =" flex h-full min-h-screen w-full items-center justify-center bg-[url('/background-blue.jpg')] bg-cover bg-center transition-all duration-300 " >
3
- <div class = " flex flex-col items-center justify-center overflow-hidden transition-all duration-300 " >
4
- < CardBox vertical-centered class =" rounded-none px-6 py-12 transition-all duration-300 sm:mx-8 sm:rounded-2xl sm:p-12 lg:mx-96 " is-form >
5
- < a href = " https://fipu.unipu.hr/ " target = " _blank " class =" mx-auto w-max " >
6
- < img :src = " fipu_unipu " alt = " Fakultet informatike u Puli - logotip " class =" mb-3 object-contain transition-all duration-300 sm:h-32 2xl:mb-6 " / >
7
- </ a >
2
+ <div class =" flex min-h-screen w-full flex-col items-center justify-start bg-gray-50 transition-all duration-300 sm:min-h-screen sm:justify- center sm: bg-opacity-70 sm:bg- [url('/background-blue.jpg')] sm: bg-cover sm: bg-center" >
3
+ <!-- Mobile only heading -- >
4
+ < div class =" mt-12 block bg-gray-50 p-2 text-left sm:hidden " >
5
+ < h2 data-aos = " zoom-in " class =" text-7xl font-bold text-fipu_gray " >Dobrodošli na</ h2 >
6
+ < h1 data-aos = " zoom-in " data-aos-delay = " 500 " class =" text-6xl font-bold text-fipu_blue " >FIPU Praksu</ h1 >
7
+ </ div >
8
8
9
- <h2 class =" mb-4 mt-6 text-center text-2xl font-bold text-fipu_gray md:text-center lg:text-3xl xl:mb-6 2xl:text-4xl" >Dobrodošli na <span class =" text-fipu_blue" >FIPU Praksu</span ></h2 >
9
+ <div class =" mt-8 flex w-full flex-1 flex-col items-center justify-center transition-all duration-300 sm:mt-0 sm:flex-none" >
10
+ <CardBox vertical-centered class =" mx-0 flex h-full w-full flex-1 flex-col px-0 pb-8 pt-8 transition-all duration-300 sm:mx-6 sm:h-auto sm:w-auto sm:flex-none sm:rounded-2xl sm:p-10 md:px-12 lg:mx-60 lg:p-12" is-form >
11
+ <div class =" flex flex-1 flex-col justify-between" >
12
+ <div >
13
+ <!-- Logo, shown only on larger screens -->
14
+ <a href =" https://fipu.unipu.hr/" target =" _blank" class =" mx-auto hidden w-max sm:block" >
15
+ <img :src =" fipu_unipu" alt =" Fakultet informatike u Puli - logotip" class =" mb-4 h-24 object-contain transition-all duration-300 sm:h-28 lg:h-32" />
16
+ </a >
10
17
11
- <h2 class =" mx-auto mb-2 mt-6 max-w-3xl text-center sm:mt-0 md:text-sm lg:text-sm 2xl:mb-10 2xl:text-base" >
12
- Molimo prijavite se kako biste pregledali stanje vaše prakse ili prijavili zadatke. Ako želite samo pregledati dostupne zadatke i poduzeća, možete nastaviti kao
13
- <a class =" hover-underline-animation cursor-pointer text-fipu_text_blue hover:text-fipu_blue" @click =" router.push('/moja-praksa')" > gost</a >.
14
- </h2 >
18
+ <!-- Hide heading on mobile -->
19
+ <div data-aos =" zoom-in" data-aos-delay =" 200" class =" hidden sm:block" >
20
+ <h2 class =" mb-4 mt-4 text-center text-2xl font-bold text-fipu_gray sm:text-2xl lg:text-4xl" >Dobrodošli na <span class =" text-fipu_blue" >FIPU Praksu</span ></h2 >
21
+ </div >
22
+ <!-- Content paragraphs -->
23
+ <p class =" mx-auto mb-8 max-w-md p-2 text-left text-base text-gray-600 sm:mb-5 sm:max-w-2xl sm:p-0 sm:text-center sm:text-base lg:text-lg" >
24
+ Molimo prijavite se kako biste pregledali stanje vaše prakse ili prijavili zadatke. Ako želite samo pregledati dostupne zadatke i poduzeća, možete nastaviti kao
25
+ <a class =" hover-underline-animation cursor-pointer text-fipu_text_blue hover:text-fipu_blue" @click =" router.push('/moja-praksa')" > gost. </a >
26
+ </p >
15
27
16
- <div class =" mx-auto my-6 flex justify-center sm:my-4 " >
17
- <GoogleLogin :callback =" callback" />
18
- </div >
28
+ <div class =" my-6 flex w-full justify-center sm:my-6 " >
29
+ <GoogleLogin :callback =" callback" />
30
+ </div >
19
31
20
- < h2 class =" mb-2 text-center md: text-sm lg: text-sm 2xl :mb-4 2xl: text-base" >
21
- Poslodavac ste ili mentor te želite prijaviti novi zadatak za praksu? To možete učiniti
22
- <a class =" hover-underline-animation cursor-pointer text-fipu_text_blue hover:text-fipu_blue" @click =" router.push('/poslodavci/novi-zadatak')" > ovdje</a >.
23
- </ h2 >
32
+ < p class =" mb-0 p- 2 text-left text-base text-gray-600 sm :mb-3 sm:p-0 sm: text-center sm:text- base lg:text-lg " >
33
+ Poslodavac ste ili mentor te želite prijaviti novi zadatak za praksu? To možete učiniti
34
+ <a class =" hover-underline-animation cursor-pointer text-fipu_text_blue hover:text-fipu_blue" @click =" router.push('/poslodavci/novi-zadatak')" > ovdje. </a >
35
+ </ p >
24
36
25
- <h2 class =" text-center md:text-sm lg:text-sm 2xl:mb-4 2xl:text-base" >
26
- Prije nego se prijavite, pročitajte
27
- <a class =" hover-underline-animation cursor-pointer text-fipu_text_blue hover:text-fipu_blue" @click =" router.push('/upute')" >upute</a > kako izvodimo praksu na FIPU.
28
- </h2 >
37
+ <p class =" mb-12 p-2 text-left text-base text-gray-600 sm:mb-0 sm:p-0 sm:text-center sm:text-base lg:text-lg" >
38
+ Prije nego se prijavite, pročitajte
39
+ <a class =" hover-underline-animation cursor-pointer text-fipu_text_blue hover:text-fipu_blue" @click =" router.push('/upute')" > upute </a >
40
+ kako izvodimo praksu na FIPU.
41
+ </p >
42
+ </div >
43
+ <!-- Logo at the bottom, centered on mobile -->
44
+ <div class =" flex justify-center sm:hidden" >
45
+ <a href =" https://fipu.unipu.hr/" target =" _blank" class =" w-max" >
46
+ <img :src =" fipu_unipu" alt =" Fakultet informatike u Puli - logotip" class =" h-15 object-contain p-2" />
47
+ </a >
48
+ </div >
49
+ </div >
29
50
</CardBox >
30
51
</div >
31
52
<SnackBar />
41
62
.fast-animation {
42
63
animation-duration : 0.5s ;
43
64
}
65
+
44
66
.hover-underline-animation {
45
67
position : relative ;
46
68
}
@@ -67,29 +89,30 @@ body {
67
89
<script setup>
68
90
import SnackBar from " @/components/Premium/SnackBar.vue" ;
69
91
import CardBox from " @/components/Cardbox/CardBox.vue" ;
92
+ import { decodeCredential } from " vue3-google-login" ;
70
93
import { isUnipuEmail } from " @/helpers/validators" ;
71
94
import { mainStore , snackBarStore } from " @/main" ;
95
+ import fipu_unipu from " /fipu_unipu.png" ;
72
96
import { useRouter } from " vue-router" ;
97
+ import Utils from " @/helpers/utils" ;
98
+ import { onMounted } from " vue" ;
99
+ import AOS from " aos" ;
73
100
74
- // Public images
75
- import fipu_unipu from " /fipu_unipu.png" ;
101
+ onMounted (() => {
102
+ AOS .init ();
103
+ });
76
104
77
105
const router = useRouter ();
78
106
79
- import { decodeCredential } from " vue3-google-login" ;
80
- import Utils from " @/helpers/utils" ;
81
-
82
107
const callback = async (response ) => {
83
108
const decodedToken = decodeCredential (response .credential );
84
109
85
110
if (! decodedToken) {
86
111
snackBarStore .pushMessage (" Prijava nije uspjela! Molimo kontaktirajte voditelja prakse." , " error" );
87
112
return ;
88
113
}
89
- console .log (" decodedToken" , decodedToken);
90
114
if (isUnipuEmail (decodedToken .email ) || decodedToken .email === " lukablaskovic2000@gmail.com" ) {
91
115
let response = await mainStore .handleLogin (decodedToken);
92
- console .log (response);
93
116
if (response .status === " success" ) snackBarStore .pushMessage (" Uspješna prijava!" , " success" );
94
117
await Utils .wait (1 );
95
118
} else {
0 commit comments