Skip to content

Commit

Permalink
Merge pull request #476 from Adil-Khan-N/adil4
Browse files Browse the repository at this point in the history
Added Events and Workshops Page
  • Loading branch information
PriyaGhosal authored Oct 13, 2024
2 parents 6a5e64f + 10d3cfb commit 1e99b90
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 65 deletions.
58 changes: 57 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,63 @@ <h3 class="title-lg card-title">Emily Johnson</h3>
</div>

</section>


<section id="events" class="section events" aria-labelledby="events-label">
<div class="container">
<p class="title-sm text-center section-subtitle" id="events-label">Upcoming Workshops</p>

<h2 class="headline-md text-center section-title" data-aos="fade-down">
Join Our Skill Development <span class="span has-after">Events</span>
</h2>

<div class="event-list">
<!-- Event 1 -->
<div class="event-item" data-aos="fade-right">
<div class="event-date-box">
<p class="event-month">Oct</p>
<p class="event-day">20</p>
</div>
<div class="event-details">
<h3 class="event-title">Web Development Bootcamp</h3>
<p class="event-description">Join our intensive bootcamp to learn HTML, CSS, and JavaScript in just one week!</p>
</div>
<a href="#" class="event-button">View Event</a>
</div>

<!-- Event 2 -->
<div class="event-item" data-aos="fade-right">
<div class="event-date-box">
<p class="event-month">Nov</p>
<p class="event-day">05</p>
</div>
<div class="event-details">
<h3 class="event-title">Data Science Workshop</h3>
<p class="event-description">Discover the world of data science with hands-on projects and expert guidance.</p>
</div>
<a href="#" class="event-button">View Event</a>
</div>

<!-- Event 3 -->
<div class="event-item" data-aos="fade-right">
<div class="event-date-box">
<p class="event-month">Dec</p>
<p class="event-day">15</p>
</div>
<div class="event-details">
<h3 class="event-title">Creative Design Thinking</h3>
<p class="event-description">Learn innovative design principles and enhance your creative problem-solving skills.</p>
</div>
<a href="#" class="event-button">View Event</a>
</div>
</div>

<a href="./pages/events.html" class="btn btn-primary see-all" data-aos="zoom-in">View All Workshops</a>
</div>
</section>





</article>
</main>
Expand Down
213 changes: 149 additions & 64 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,84 +1,169 @@
#contact {
padding: 50px 0;
background-color: #008080;
position: relative;
padding: 50px 0;
background-color: #008080;
position: relative;
}

#contact .container {
max-width: 800px;
margin: 0 auto;
padding: 0 15px;
}

/* Section Title */
#contact h2 {
font-size: 3.5rem;
text-align: center;
margin-bottom: 80px;
color: #d6eaff;
font-weight: bold;
text-transform: uppercase;
}

/* Contact Form */
#contact-form {
display: flex;
flex-direction: column;
gap: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
padding: 30px;
width:160%;
}

/* Input Fields */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
width: 100%;
padding: 15px;
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 5px;
transition: border-color 0.3s, box-shadow 0.3s;
}

/* Input Focus Effects */
#contact-form input:focus,
#contact-form textarea:focus {
border-color: #3498db;
box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
outline: none;
}

/* Textarea */
#contact-form textarea {
height: 150px;
resize: none;
}

/* Submit Button */
#contact-form button {
background-color: #3498db;
color: #fff;
width:250px;
padding: 15px;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}

/* Button Hover Effects */
#contact-form button:hover {
background-color: #2980b9;
transform: translateY(-2px);
}

/* Button Focus Effect */
#contact-form button:focus {
outline: none;
box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
/* Container for the events */
.event-list {
display: flex;
flex-direction: column;
gap: 15px; /* Adds more space between the event items */
margin-bottom: 20px;
}

#contact .container {
max-width: 800px;
margin: 0 auto;
padding: 0 15px;
/* Individual event item */
.event-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px; /* Increased padding for more space */
border: 2px solid var(--roman-silver); /* Border matching roman silver */
border-radius: 12px; /* Slightly more rounded corners */
background-color: var(--roman-silver_10); /* Light transparent background */
color: var(--roman-silver); /* Text color using roman silver */
transition: background-color 0.3s ease;
font-size: 1.4rem; /* Bigger font size for better readability */
}

/* Section Title */
#contact h2 {
font-size: 3.5rem;
text-align: center;
margin-bottom: 80px;
color: white;
/* Event date box styling */
.event-date-box {
background-color: var(--light-coral); /* Light coral background for date box */
padding: 15px; /* Increased padding for a larger box */
border-radius: 10px;
display: flex;
flex-direction: column;
align-items: center;
min-width: 90px; /* Slightly larger date box */
}

.event-month {
font-size: 1.8rem; /* Bigger size for the month */
font-weight: bold;
text-transform: uppercase;
color: var(--oxford-blue); /* Oxford blue text color */
}

/* Contact Form */
#contact-form {
display: flex;
flex-direction: column;
gap: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
padding: 30px;
width: 160%;
.event-day {
font-size: 3.2rem; /* Bigger size for the day */
font-weight: bold;
color: var(--oxford-blue); /* Oxford blue text */
}

/* Input Fields */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
width: 100%;
padding: 15px;
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 5px;
transition: border-color 0.3s, box-shadow 0.3s;
/* Event details styling */
.event-details {
flex-grow: 1;
margin-left: 30px; /* More space between date and details */
}

/* Input Focus Effects */
#contact-form input:focus,
#contact-form textarea:focus {
border-color: #3498db;
box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
outline: none;
.event-title {
font-size: 2rem; /* Larger font size for titles */
font-weight: 700; /* Bolder font for event titles */
color: var(--light-coral); /* Light coral for event titles */
}

/* Textarea */
#contact-form textarea {
height: 150px;
resize: none;
.event-description {
font-size: 1.4rem; /* Larger description font size */
color: var(--oxford-blue); /* Roman silver for descriptions */
}

/* Submit Button */
#contact-form button {
background-color: #3498db;
color: #fff;
width: 250px;
padding: 15px;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
/* Event button */
.event-button {
background-color: transparent;
border: 2px solid var(--keppei); /* Keppei color for button borders */
padding: 16px 28px; /* Bigger padding for a larger button */
border-radius: 10px;
font-size: 1.4rem; /* Larger font size for buttons */
color: var(--keppei); /* Keppei color for the text */
text-decoration: none;
font-weight: bold; /* Bolder button text */
transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Button Hover Effects */
#contact-form button:hover {
background-color: #2980b9;
transform: translateY(-2px);
.event-button:hover {
background-color: var(--keppei); /* Keppei background on hover */
color: var(--oxford-blue); /* Oxford blue text on hover */
transform: scale(1.1); /* Slightly bigger button on hover */
}

/* Button Focus Effect */
#contact-form button:focus {
outline: none;
box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
/* Hover effect for event items */
.event-item:hover {
transform: scale(1.03); /* Slightly enlarges the event item on hover */
}

0 comments on commit 1e99b90

Please sign in to comment.