File tree 9 files changed +119
-62
lines changed
9 files changed +119
-62
lines changed Original file line number Diff line number Diff line change 6
6
font-size : 20px ;
7
7
width : 100vw ;
8
8
gap : 20px ;
9
+ min-height : 100vh ;
10
+ scroll-behavior : smooth;
9
11
}
10
12
11
13
.Block h1 {
16
18
}
17
19
18
20
.Dark-Theme {
21
+ background-color : rgb (45 , 45 , 48 );
22
+ color : rgb (196 , 192 , 192 );
23
+ }
24
+
25
+ .Dark-Theme : hover {
26
+ transition : all 1s ;
19
27
background-color : # 2a2a37 ;
20
28
color : rgb (233 , 230 , 229 );
21
29
}
22
30
23
31
.Light-Theme {
24
- background-color : rgb (233 , 230 , 229 );
32
+ background-color : rgb (209 , 199 , 199 );
33
+ color : rgb (54 , 53 , 52 );
34
+ }
35
+
36
+ .Light-Theme : hover {
37
+ transition : all 1s ;
38
+ background-color : rgb (233 , 229 , 229 );
25
39
color : rgb (68 , 67 , 66 );
40
+ }
41
+
42
+ .Block a img : hover {
43
+ transition : all 1s ;
44
+ -webkit-transform : scale (1.1 );
45
+ -moz-transform : scale (1.1 );
46
+ -o-transform : scale (1.1 );
47
+ -ms-transform : scale (1.1 );
48
+ transform : scale (1.1 );
49
+ border-radius : 20px ;
26
50
}
Original file line number Diff line number Diff line change 13
13
14
14
.slider {
15
15
display : flex;
16
- height : 100 % ;
17
- width : 100 % ;
16
+ height : 80 vh ;
17
+ width : 80 vw ;
18
18
align-items : center;
19
19
justify-content : center;
20
20
margin : auto;
21
21
margin-top : 0% ;
22
- position : relative ;
22
+ position : absolute ;
23
23
}
24
24
25
25
.slider li {
29
29
30
30
.slider img {
31
31
margin : auto;
32
- height : 100 % ;
33
- width : 100 % ;
32
+ height : 80 vh ;
33
+ width : 80 vw ;
34
34
vertical-align : top;
35
35
}
36
36
65
65
.slider img {
66
66
opacity : 0 ;
67
67
visibility : hidden;
68
+ transition : opacity 800ms ;
68
69
}
69
70
70
71
.slider li input : checked ~ img {
71
72
opacity : 1 ;
72
73
visibility : visible;
73
74
z-index : 10 ;
75
+ }
76
+
77
+ # FPOO p : hover ~ h1 {
78
+ color : red;
74
79
}
Original file line number Diff line number Diff line change 1
- footer {
2
- height : 80px ;
3
- display : flex;
4
- flex-direction : row;
5
- align-items : center;
6
- justify-content : space-around;
7
- max-width : 500px ;
8
- padding-top : 10px ;
9
- }
10
-
11
- # contact-Us {
12
- display : flex;
13
- flex-direction : column;
14
- gap : 10px ;
15
- height : 100% ;
16
- }
17
-
18
- footer a {
19
- color : rgb (233 , 230 , 229 );
20
- font-size : 30px ;
21
- }
22
-
23
- # redes-Sociais-Block {
24
- display : flex;
25
- flex-direction : column;
26
- height : 100% ;
27
- }
28
-
29
- # links-a {
30
- display : flex;
31
- flex-direction : row;
32
- align-items : center;
33
- justify-content : space-between;
34
- width : 150px ;
35
- height : 40px ;
36
- }
37
-
38
- # links-a a : hover {
39
- transition : all 1s ;
40
- color : # c40000 ;
41
- font-size : 35px ;
42
- }
1
+ footer {
2
+ height : 80px ;
3
+ display : flex;
4
+ flex-direction : row;
5
+ align-items : center;
6
+ justify-content : space-around;
7
+ max-width : 500px ;
8
+ padding-top : 10px ;
9
+ }
10
+
11
+ # contact-Us {
12
+ display : flex;
13
+ flex-direction : column;
14
+ gap : 10px ;
15
+ height : 100% ;
16
+ }
17
+
18
+ footer a {
19
+ color : rgb (233 , 230 , 229 );
20
+ font-size : 30px ;
21
+ }
22
+
23
+ # redes-Sociais-Block {
24
+ display : flex;
25
+ flex-direction : column;
26
+ height : 100% ;
27
+ }
28
+
29
+ # links-a {
30
+ display : flex;
31
+ flex-direction : row;
32
+ align-items : center;
33
+ justify-content : space-between;
34
+ width : 150px ;
35
+ height : 40px ;
36
+ }
37
+
38
+ # links-a a : hover {
39
+ transition : all 1s ;
40
+ color : # c40000 ;
41
+ transition : all 1s ;
42
+ -webkit-transform : scale (1.1 );
43
+ -moz-transform : scale (1.1 );
44
+ -o-transform : scale (1.1 );
45
+ -ms-transform : scale (1.1 );
46
+ transform : scale (1.1 );
47
+ }
Original file line number Diff line number Diff line change 1
1
.FPOO {
2
2
display : flex;
3
3
flex-direction : column;
4
- height : 100vh ;
5
4
}
6
5
7
6
.FPOO h1 {
Original file line number Diff line number Diff line change 83
83
< img src ="img/senai-slider3.jpg " />
84
84
</ li >
85
85
</ ul >
86
-
86
+ < script src =" slider.js " > </ script >
87
87
</ div >
88
88
< div id ="FPOO " class ="FPOO Block Dark-Theme ">
89
89
< h1 >
Original file line number Diff line number Diff line change 1
1
.LIMA {
2
2
text-align : justify;
3
3
width : 100vw ;
4
- height : 120vh ;
5
4
}
6
5
7
6
# imageLima-Line {
Original file line number Diff line number Diff line change 17
17
# conteudo-Container {
18
18
flex-direction : column;
19
19
}
20
+ .slider ,
21
+ .slider img {
22
+ height : 50vh ;
23
+ }
20
24
# conteudo-Container {
21
25
width : 100vw ;
22
26
}
23
- .each-VideoAndText {
24
- background-color : black
25
- }
26
27
.LIMA p ,
27
28
.SOP p {
28
- width : 90 vw ;
29
+ width : 100 % ;
29
30
}
30
31
article {
31
32
width : 90% ;
77
78
}
78
79
}
79
80
80
- @media (max-width : 1087px ) {
81
- .FPOO ,
82
- .LIMA {
83
- height : 110% ;
84
- }
85
- }
86
-
87
81
@media (min-width : 1238px ) {
88
82
# aside-FPOO {
89
83
justify-content : space-between;
Original file line number Diff line number Diff line change
1
+ let time = 5000 ,
2
+ currentImageIndex = 0 ,
3
+ images = document
4
+ . querySelectorAll ( ".slider li img" )
5
+ max = images . length ;
6
+
7
+ function click ( id ) {
8
+
9
+ var element = document . getElementById ( id ) ;
10
+ if ( element . click )
11
+ element . click ( ) ;
12
+ else if ( document . createEvent ) {
13
+ var eventObj = document . createEvent ( 'MouseEvents' ) ;
14
+ eventObj . initEvent ( 'click' , true , true ) ;
15
+ element . dispatchEvent ( eventObj ) ;
16
+ }
17
+
18
+ }
19
+
20
+ function start ( ) {
21
+ setInterval ( ( ) => {
22
+
23
+
24
+ click ( 'slide1' )
25
+ click ( 'slide2' )
26
+ click ( 'slide3' )
27
+
28
+ } , time )
29
+ }
30
+
31
+ window . addEventListener ( "load" , start )
You can’t perform that action at this time.
0 commit comments