-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
achievements page responsiveness issues
- Loading branch information
1 parent
816e476
commit a3caa18
Showing
4 changed files
with
123 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,109 @@ | ||
.card-container { | ||
perspective: 1000px; /* Enable 3D space for flip effect */ | ||
position: relative; | ||
width: 100%; | ||
max-width: 600px; | ||
height: 500px; /* Ensure consistent height */ | ||
} | ||
|
||
.card-inner { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
transition: transform 0.6s; | ||
transform-style: preserve-3d; | ||
} | ||
|
||
.card-container:hover .card-inner { | ||
transform: rotateY(180deg); | ||
} | ||
|
||
.card-front, | ||
.card-back { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
backface-visibility: hidden; | ||
border-radius: 1rem; | ||
} | ||
|
||
.card-front { | ||
background: rgba(0, 0, 0, 0.5); /* Darker background for the front */ | ||
} | ||
|
||
.card-back { | ||
background: rgba(255, 255, 255, 0.1); /* Darker background for the back */ | ||
transform: rotateY(180deg); | ||
} | ||
|
||
.image-container { | ||
position: relative; | ||
width: 100%; | ||
height: 80%; /* Fixed height for the image container */ | ||
overflow: hidden; | ||
} | ||
|
||
.card-image { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.no-image { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #4a4a4a; /* Placeholder color */ | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: #ffffff; | ||
font-size: 1.25rem; | ||
} | ||
|
||
.image-overlay { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: linear-gradient(to right, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3)); | ||
opacity: 0.5; | ||
/* blur: 10px; */ | ||
border-radius: 50%; | ||
z-index: -1; | ||
} | ||
|
||
.card-title { | ||
font-size: 1.5rem; | ||
color: white; | ||
margin-top: 1rem; | ||
} | ||
|
||
.card-batch { | ||
font-size: 1rem; | ||
color: #d1d1d1; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.achievements { | ||
overflow-y: auto; | ||
max-height: 100%; | ||
padding: 1rem; | ||
background-color: rgba(255, 255, 255, 0.1); | ||
border-radius: 0.5rem; | ||
} | ||
|
||
.achievement { | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.decorative-element { | ||
position: absolute; | ||
bottom: -1px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 75%; | ||
height: 4px; | ||
background-color: #4f46e5; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | ||
} | ||
|
||
perspective: 1000px; /* Enable 3D space for flip effect */ | ||
position: relative; | ||
width: 100%; | ||
max-width: 350px; /* Reduced max width */ | ||
height: 300px; /* Reduced height */ | ||
} | ||
|
||
.card-inner { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
transition: transform 0.6s; | ||
transform-style: preserve-3d; | ||
} | ||
|
||
.card-container:hover .card-inner { | ||
transform: rotateY(180deg); | ||
} | ||
|
||
.card-front, | ||
.card-back { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
backface-visibility: hidden; | ||
border-radius: 1rem; | ||
} | ||
|
||
.card-front { | ||
background: rgba(0, 0, 0, 0.5); /* Darker background for the front */ | ||
} | ||
|
||
.card-back { | ||
background: rgba(0, 0, 0, 0.5); /* Consistent background for the back */ | ||
transform: rotateY(180deg); | ||
} | ||
|
||
.image-container { | ||
position: relative; | ||
width: 100%; | ||
height: 66%; /* Adjusted height for image container */ | ||
overflow: hidden; | ||
} | ||
|
||
.card-image { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.no-image { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #4a4a4a; /* Placeholder color */ | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: #ffffff; | ||
font-size: 1rem; /* Adjusted font size */ | ||
} | ||
|
||
.image-overlay { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: linear-gradient(to right, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3)); | ||
opacity: 0.5; | ||
border-radius: 50%; | ||
z-index: -1; | ||
} | ||
|
||
.card-title { | ||
font-size: 1.25rem; /* Adjusted font size */ | ||
color: white; | ||
margin-top: 0.5rem; /* Adjusted margin */ | ||
} | ||
|
||
.card-batch { | ||
font-size: 0.875rem; /* Adjusted font size */ | ||
color: #d1d1d1; | ||
margin-bottom: 0.5rem; /* Adjusted margin */ | ||
} | ||
|
||
.achievements { | ||
overflow-y: auto; | ||
max-height: 100%; /* Adjusted height */ | ||
padding: 1rem; | ||
background-color: rgba(0, 0, 0, 0.5); /* Consistent background color */ | ||
border-radius: 0.5rem; | ||
} | ||
|
||
.achievement { | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.decorative-element { | ||
position: absolute; | ||
bottom: -1px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 75%; | ||
height: 4px; | ||
background-color: #4f46e5; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters