-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from ayush1009208/main
Added Edit and Create Form to Events page, UI Fixes to Events Page
- Loading branch information
Showing
3 changed files
with
456 additions
and
259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
.event-cards-container { | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
gap: 20px; | ||
justify-content: center; | ||
margin-bottom: 40px; | ||
} | ||
|
||
.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; | ||
} | ||
|
||
.event-card:hover { | ||
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); | ||
transform: scale(1.05); | ||
} | ||
|
||
.event-container { | ||
text-decoration: none; | ||
color: inherit; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.event-poster-container { | ||
max-height: 220px; | ||
overflow: hidden; | ||
border-bottom: 1px solid #eee; | ||
} | ||
|
||
.event-poster { | ||
width: 100%; | ||
height: auto; | ||
object-fit: cover; | ||
transition: transform 0.3s ease; | ||
} | ||
|
||
.event-poster-container:hover .event-poster { | ||
transform: scale(1.05); | ||
} | ||
|
||
.event-content-container { | ||
padding: 20px; | ||
} | ||
|
||
.event-content-container h3 { | ||
margin: 0 0 12px; | ||
font-size: 1.6em; | ||
color: #333; | ||
} | ||
|
||
.event-content-container p { | ||
margin: 6px 0; | ||
color: #666; | ||
line-height: 1.5; | ||
font-size: 1em; | ||
} | ||
|
||
.event-content-container p:last-child { | ||
color: #999; | ||
font-size: 0.9em; | ||
} | ||
|
||
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); | ||
} | ||
|
||
form div { | ||
margin-bottom: 16px; | ||
} | ||
|
||
form label { | ||
display: block; | ||
margin-bottom: 8px; | ||
font-weight: bold; | ||
color: #333; | ||
} | ||
|
||
form input[type="text"], | ||
form input[type="date"], | ||
form textarea { | ||
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; | ||
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; | ||
} | ||
|
||
button:hover { | ||
background-color: #218838; | ||
} | ||
|
||
h2 { | ||
font-family: 'Arial Narrow Bold', sans-serif; | ||
margin-top: 40px; | ||
padding-bottom: 30px; | ||
font-size: 2.5em; | ||
color: yellow; | ||
text-align: center; | ||
} | ||
|
||
.event-card-inner { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
transform-style: preserve-3d; | ||
transition: transform 0.6s ease-in-out; | ||
} | ||
|
||
.event-card-front, | ||
.event-card-back { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
backface-visibility: hidden; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.event-card-back { | ||
transform: rotateY(180deg); | ||
padding: 20px; | ||
background-color: #000000; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.event-card:hover .event-card-inner { | ||
transform: rotateY(180deg); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.