@@ -24,11 +24,12 @@ import SocialIcon from "../components/SocialIcon";
24
24
import ActualPage from "../components/global/ActualPage" ;
25
25
import YouTube from "react-youtube" ;
26
26
import Gallery from "../components/global/Gallery" ;
27
- import { useEffect } from "react" ;
27
+ import { useEffect , useState } from "react" ;
28
28
import AOS from "aos" ;
29
29
import "aos/dist/aos.css" ;
30
30
import { Parallax } from "react-scroll-parallax" ;
31
31
import { useTranslation } from "react-i18next" ;
32
+ import ArtiusCharButton from "../components/ArtiusCharButton" ;
32
33
33
34
const NewArtius = ( ) => {
34
35
useEffect ( ( ) => {
@@ -43,6 +44,20 @@ const NewArtius = () => {
43
44
const slides = [ pic1 , pic2 , pic3 ] ;
44
45
const slides2 = [ pic4 , pic6 , pic5 ] ;
45
46
47
+ const [ currentCharTitle , setCurrentCharTitle ] = useState ( t ( "games.newArtius.characters.pivolo.title" ) )
48
+ const [ currentCharSubtitle , setCurrentCharSubtitle ] = useState ( "Current char title." )
49
+ const [ currentCharDesc , setCurrentCharDesc ] = useState ( "Current char description." )
50
+ const [ currentCharImg , setCurrentCharImg ] = useState ( "/" )
51
+
52
+ function setCharacter ( characterName : string ) {
53
+ const path = `games.newArtius.characters.${ characterName } `
54
+
55
+ setCurrentCharTitle ( t ( `${ path } .title` ) )
56
+ setCurrentCharSubtitle ( t ( `${ path } .subtitle` ) )
57
+ setCurrentCharDesc ( t ( `${ path } .desc` ) )
58
+ setCurrentCharImg ( t ( `${ path } .img` ) )
59
+ }
60
+
46
61
return (
47
62
< ActualPage singleColumn = { true } >
48
63
< div
@@ -127,7 +142,7 @@ const NewArtius = () => {
127
142
className = "flex items-center justify-center"
128
143
>
129
144
< p className = "font-adlib text-pvic-blue drop-shadow-[3px_3px_0px_rgba(0,0,0,1)] text-3xl xl:text-5xl p-5 xl:mr-20 xl:p-0 text-right max-w-[800px]" >
130
- { t ( "games.newArtius.text2" ) }
145
+ { t ( "games.newArtius.text2" ) }
131
146
</ p >
132
147
</ div >
133
148
</ div >
@@ -137,15 +152,27 @@ const NewArtius = () => {
137
152
{ /* Desktop */ }
138
153
< div
139
154
data-aos = "fade-up"
140
- className = { `mt-20 mb-20 w-full max-w-[1400px] h-screen hidden xl:inline` }
141
- style = { { backgroundImage : `url(${ t ( "games.newArtius.tailored" ) } )` , backgroundSize : "contain" , backgroundPosition : "center" , backgroundRepeat : "no-repeat" } }
155
+ className = { `mt-20 mb-20 w-full max-w-[1250px] h-screen hidden xl:inline` }
156
+ style = { {
157
+ backgroundImage : `url(${ t ( "games.newArtius.tailored" ) } )` ,
158
+ backgroundSize : "contain" ,
159
+ backgroundPosition : "center" ,
160
+ backgroundRepeat : "no-repeat" ,
161
+ } }
142
162
/>
143
163
144
164
{ /* Mobile */ }
145
165
< div
146
166
data-aos = "fade-up"
147
167
className = { `mt-10 mb-10 w-full max-w-[600px] h-screen xl:hidden` }
148
- style = { { backgroundImage : `url(${ t ( "games.newArtius.tailoredMobile" ) } )` , backgroundSize : "contain" , backgroundPosition : "center" , backgroundRepeat : "no-repeat" } }
168
+ style = { {
169
+ backgroundImage : `url(${ t (
170
+ "games.newArtius.tailoredMobile"
171
+ ) } )`,
172
+ backgroundSize : "contain" ,
173
+ backgroundPosition : "center" ,
174
+ backgroundRepeat : "no-repeat" ,
175
+ } }
149
176
/>
150
177
</ div >
151
178
@@ -180,8 +207,10 @@ const NewArtius = () => {
180
207
< Gallery picSize = "325px" slides = { slides } />
181
208
</ div >
182
209
210
+
211
+
183
212
{ /* Final */ }
184
- < div className = "mt-30 p-5 xl:p-0 flex flex-col items-center justify-center" >
213
+ < div className = "mt-20 p-5 xl:p-0 flex flex-col items-center justify-center" >
185
214
< img
186
215
data-aos = "fade-up"
187
216
className = "w-full max-w-[1250px] h-fit"
@@ -205,3 +234,4 @@ const NewArtius = () => {
205
234
} ;
206
235
207
236
export default NewArtius ;
237
+
0 commit comments