Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ayush #87

Merged
merged 18 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
264 changes: 149 additions & 115 deletions app/(default)/events/EventCard.css
Original file line number Diff line number Diff line change
@@ -1,173 +1,207 @@
h2 {
font-family: 'Arial Narrow Bold', sans-serif;
margin-top: 60px;
padding-bottom: 30px;
font-size: 2.5em;
color: #00c853;
text-align: center;
}

.event-cards-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
justify-content: center;
margin-bottom: 40px;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

.event-card {
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
overflow: hidden;
background-color: #fff;
transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
max-width: 400px;
margin: 0 auto;
width: 300px;
height: 400px;
perspective: 1000px;
margin: 20px;
}

.event-card-inner {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 0.8s;
}

.event-card:hover {
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
transform: scale(1.05);
.event-card:hover .event-card-inner {
transform: rotateY(180deg);
}

.event-container {
text-decoration: none;
color: inherit;

.event-card-front,
.event-card-back {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
background-color: black;
color: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border: 2px solid #00c853;
}

.event-card-front {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.event-poster-container {
max-height: 220px;
overflow: hidden;
border-bottom: 1px solid #eee;
.event-card-back {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
transform: rotateY(180deg);
}

.event-poster {
.event-card-back img {
width: 100%;
height: auto;
max-height: 150px;
opacity: 0.2;
object-fit: cover;
transition: transform 0.3s ease;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}

.event-poster-container:hover .event-poster {
transform: scale(1.05);
.event-card-back p {
z-index: 1;
position: relative;
color: white;
font-size: 1.2em;
text-align: center;
}

.event-poster-container {
position: relative;
width: 280px;
padding-bottom: 75%;
display: flex;
justify-content: center;
align-items: center;
}

.event-poster {
position: absolute;
top: -40px;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}

.event-content-container {
padding: 20px;
text-align: center;
}

.event-content-container h3 {
margin: 0 0 12px;
font-size: 1.6em;
color: #333;
margin-bottom: 0;
font-size: 1.4em;
}

.event-content-container p {
margin: 6px 0;
color: #666;
line-height: 1.5;
margin-top: 0px;
margin-bottom: 25px;
font-size: 1em;
}

.event-content-container p:last-child {
color: #999;
font-size: 0.9em;
button {
margin-top: 70px !important;
background-color: black;
color: yellow;
border: 2px solid yellow;
border-radius: 5px;
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
margin: 10px;
}

form {
max-width: 400px;
margin: 20px auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
button:hover {
background-color: yellow;
color: black;
}

form div {
margin-bottom: 16px;
form {
background-color: black;
color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
border: 2px solid yellow;
width: 80%;
margin: 40px auto;
}

form label {
display: block;
margin-bottom: 8px;
color: yellow;
font-weight: bold;
color: #333;
display: block;
margin-bottom: 10px;
}

form input[type="text"],
form input[type="date"],
form textarea {
form input,
form textarea,
form select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
box-sizing: border-box;
font-size: 1em;
color: #333;
}

form button[type="submit"] {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
margin-bottom: 20px;
border: 2px solid yellow;
border-radius: 5px;
background-color: black !important;
color: white !important;
font-size: 1em;
transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
background-color: #0056b3;
}

button {
display: block;
margin: 60px auto;
padding: 10px 20px;
background-color: #28a745;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1em;
transition: background-color 0.3s ease;
form input::placeholder,
form textarea::placeholder {
color: grey !important;
opacity: 1;
}

button:hover {
background-color: #218838;
form input:focus,
form textarea:focus,
form select:focus {
border-color: yellow;
outline: none;
}

h2 {
font-family: 'Arial Narrow Bold', sans-serif;
margin-top: 40px;
padding-bottom: 30px;
font-size: 2.5em;
color: yellow;
text-align: center;
input[type="text"],
input[type="date"],
textarea {
background-color: black !important;
color: white !important;
}

.event-card-inner {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.6s ease-in-out;
input[type="text"]::placeholder,
input[type="date"]::placeholder,
textarea::placeholder {
color: grey !important;
opacity: 1;
}

.event-card-front,
.event-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
top: 0;
left: 0;
form button {
margin-top: 20px;
}

.event-card-back {
transform: rotateY(180deg);
padding: 20px;
background-color: #000000;
display: flex;
align-items: center;
justify-content: center;
section {
margin-bottom: 40px;
}

.event-card:hover .event-card-inner {
transform: rotateY(180deg);
.upcoming-events,
.ongoing-events,
.past-events {
margin-top: 60px;
}
Loading
Loading