File tree 3 files changed +31
-2
lines changed
3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,22 @@ body {
24
24
z-index : 999 ;
25
25
}
26
26
27
+ /*Image redendering size controll*/
28
+ .image-container {
29
+ max-width : 350px ; /* Set the maximum width for the image container */
30
+ margin : auto; /* Center the container horizontally */
31
+ cursor : pointer; /* Show the pointer cursor when hovering */
32
+ }
33
+
34
+ .image-container img {
35
+ width : 100% ; /* Make the image fill the container */
36
+ height : auto; /* Maintain aspect ratio */
37
+ transition : transform 0.3s ; /* Add a smooth transition effect */
38
+ }
39
+
40
+ .image-container img : hover {
41
+ transform : scale (1.2 ); /* Scale the image to 120% on hover */
42
+ }
27
43
28
44
/*NavBar style*/
29
45
.navbar {
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ <h4><span class="text-muted">Description:</span></h4>
26
26
< p > < span th:text ="${description} "> </ span > </ p >
27
27
28
28
< h4 > < span class ="text-muted "> Image:</ span > </ h4 >
29
- < img th:src ="@{'data:image/png;base64,' + ${image}} " alt ="Litter Image " />
29
+ < div class ="image-container " onclick ="expandImage() ">
30
+ < img th:src ="@{'data:image/png;base64,' + ${image}} " alt ="Litter Image " />
31
+ </ div >
32
+
30
33
31
34
< h4 > < span class ="text-muted "> Status:</ span > </ h4 >
32
35
< p > < span th:text ="${status} "> </ span > </ p >
@@ -35,4 +38,11 @@ <h4><span class="text-muted">Status:</span></h4>
35
38
36
39
</ div >
37
40
41
+ < script >
42
+ function expandImage ( ) {
43
+ var img = document . querySelector ( '.image-container img' ) ;
44
+ img . style . transform = img . style . transform === 'scale(1.2)' ? 'none' : 'scale(1.2)' ;
45
+ }
46
+ </ script >
47
+
38
48
Original file line number Diff line number Diff line change 25
25
26
26
< nav class ="navbar sticky-top navbar-expand-lg bg-body-tertiary ">
27
27
< div class ="container-fluid ">
28
- < a class ="navbar-brand " style =" color:blue ; " th:href ="@{/} "> LitterSnap</ a >
28
+ < a class ="navbar-brand " style =" color:#1c5485 ; " th:href ="@{/thy/litter } "> LitterSnap</ a >
29
29
< button class ="navbar-toggler " type ="button " data-bs-toggle ="collapse " data-bs-target ="#navbarSupportedContent " aria-controls ="navbarSupportedContent " aria-expanded ="false " aria-label ="Toggle navigation ">
30
30
< span class ="navbar-toggler-icon "> </ span >
31
31
</ button >
38
38
< li class ="nav-item ">
39
39
< a class ="nav-link active " th:href ="@{/thy/users} "> View Users</ a >
40
40
</ li >
41
+ < li class ="nav-item ">
42
+ < a class ="nav-link active " aria-current ="page " th:href ="@{/} "> Logout</ a >
43
+ </ li >
41
44
42
45
</ ul >
43
46
You can’t perform that action at this time.
0 commit comments