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

Add Project Section #82

Closed
wants to merge 15 commits into from
Closed
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
Binary file added assets/checkmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/project-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/project-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/project-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion css/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
/* Additional CSS for the Back to Top button */
#back-to-top {
position: fixed;
bottom: 20px; /* the distance from the bottom as needed */
top: 600px; /* the distance from the bottom as needed */
right: 20px; /* the distance from the right as needed */
width: 50px; /* the width of the button */
height: 50px; /* the height of the button */
Expand Down
284 changes: 284 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,240 @@ a:visited {
height: 200px;
background-color: none;
} */
/* Project Section */
.projects-section {
position: relative;
text-align: center;
background-color: none; /* Add your desired background color */
padding: 150px; /* Adjust the top and bottom padding as needed */
}

.project-container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px /* Adjust the gap as needed */

}

.project {
width: calc(30% - 10px); /* Updated width for three smaller projects per row with reduced gap */
text-align: center;
border: 1px solid #ccc; /* Add any border or styling for individual project containers */
padding: 20px;
border-radius: 2rem; /* Add rounded edges */
overflow: hidden; /* Hide overflowing content */
}

.project-img {
width: 90%; /* Adjust the image width as needed */
height: 90%; /* Maintain the aspect ratio of the images */
border-radius: 2rem; /* Add rounded edges to the images */
}

.project-title {
font-size: 1.5rem;
margin: 10px 0;
color: black; /* Set the desired text color */
}

.project-buttons {
color: black;
border-color: rgb(163, 163, 163);
display: flex;
justify-content: center;
gap: 10px; /* Adjust the gap between buttons as needed */
}
.button-container {
display: flex;
gap: 10px; /* Adjust the gap between buttons as needed */

}
.project-btn {
top: 10px;
background-color: #01b3af;
color: #fff;
border: none;
padding: 8px 20px;
border-radius: 2rem;
cursor: pointer;
transition: 0.2s;

}
/* Add a hover effect to match the portfolio theme */
.project-btn:hover {

color: #272341;
transform: translateY(-2px);
}
/* Add hover transition for the buttons */
.project-btn {
transition: background-color 0.3s;
}

/* Add hover effect for the project containers */
.project:hover {
transform: scale(1.05); /* Adjust the scaling factor as desired */
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2); /* Add a subtle shadow on hover */
}
/* About Section */
.projects-section h1 {
font-family: Montserrat; /* Use the same font as the "About" section */
font-weight: 700; /* Apply the desired font weight */
font-size: 55px; /* Adjust the font size as needed */
color: #272341; /* Set the desired text color */
margin-top: 20px; /* Add some top margin to align with other text */
}

.projects-section .titleGap {
display: flex;
position: relative;
width: 100%;
height: 25px;
background-color: none;
}

.projects-section .titleSmall {
display: flex;
top: 0;
position: relative;
width: 750px;
left: 0;
right: 0;
margin: auto;
height: 57.5px;
align-items: center;
justify-content: center;
font-family: Poppins;
font-weight: 300;
font-size: 18px;
background-color: none;
text-align: center;
color: #96989b;
flex-wrap: wrap;
letter-spacing: 0.3px;
}

/* Rest of your existing styles for the "About" section */

/* Center align the contact section */
.contact-section {
text-align: center;
}
.contact-section h1 {
font-family: Montserrat; /* Use the same font as the "About" section */
font-weight: 700; /* Apply the desired font weight */
font-size: 55px; /* Adjust the font size as needed */
color: #272341; /* Set the desired text color */
margin-top: 20px; /* Add some top margin to align with other text */
}
/* Contact Section */
.contact-left {
flex-basis: 35%;
padding: 25px 0;

}
.contact-left .titleGap {
display: flex;
position: relative;
width: 100%;
height: 25px;
background-color: none;
}
.contact-left .titleSmall {
display: flex;
top: 0;
position: relative;
width: 750px;
left: 0;
right: 0;
margin: auto;
height: 57.5px;
align-items: center;
justify-content: center;
font-family: Poppins;
font-weight: 300;
font-size: 18px;
background-color: none;
text-align: center;
color: #96989b;
flex-wrap: wrap;
letter-spacing: 0.3px;
}

.contact-right {
flex-basis: 60%;
margin-top: 10px;

}
.contact-left p {
margin-top: 30px;
font-size: 25px; /* Updated font size */
color: #01b3af;
display: flex;
align-items: center;
/* only if i move the cursor on the text then only it will be hovered or selected */


}

.contact-left p i {
color: #01b3af;
margin-right: 10px;
font-size: 25px;
}
.contact-link {
color: #01b3af;
text-decoration: none;
}

.contact-link:hover {
text-decoration: underline;
}



.contact-left p:hover {
color: #666; /* Faded text color on hover */
text-decoration: none;
text-decoration: underline;
}
.contact-section .sub-title {
font-size: 55px; /* Set the desired font size for the h1 element */
color: #272341; /* Set the desired color for the h1 element */
}

.social-icons {
margin-top: 30px;
}
.social-icons a {
text-decoration: none;
font-size: 30px;
margin-right: 15px;
color: #01b3af;
display: inline-block;
transition: transform 0.5s;
}
.social-icons a:hover {
color: #272341;
transform: translateY(-5px);
}
.btn.btn2 {
display: inline-block;
background: #01b3af;
color: #fff;
padding: 10px 30px;
margin-top: 30px;
text-decoration: none;
transition: 0.5s;
}

.btn.btn2:hover {
background: #272341;
color: #fff;
transform: translateY(-5px);
}

/*================*/
/*===Footer===*/
Expand Down Expand Up @@ -663,6 +897,56 @@ a:visited {
width: 100%;
}

/* Project Section */
.projects-section h1 {
font-size: 36px;
}

.project-container {
justify-content: center;
gap: 15px;
}

.project {
width: calc(50% - 10px);
padding: 15px;
}

.project-title {
font-size: 1.2rem;
}

.project-btn {
padding: 8px 15px;
}

/* Contact Section */
.contact-section h1 {
font-size: 36px;
}

.contact-left {
flex-basis: 100%;
text-align: center;
}

.contact-link {
font-size: 16px;
}

.contact-section .sub-title {
font-size: 36px;
}

.social-icons a {
font-size: 24px;
}

.btn.btn2 {
font-size: 18px;
margin-top: 20px;
}

.footer {
font-size: 12.5px;
}
Expand Down
71 changes: 70 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,75 @@
</div>
<div class="bottomC"></div>
</div>
<!-- Project Section -->
<section id="projects" class="projects-section">
<h1 class="sub-title">PROJECTS</h1>
<div class="titleGap"></div>
<div class="titleSmall">Browse My Recent</div>
<div class="titleGap"></div>
<div class="project-container">
<!-- Project 1 -->
<div class="project">
<img src="./assets/project-1.png" alt="Project 1" class="project-img" />
<h2 class="project-title">Project One</h2>
<div class="project-buttons">
<div class="button-container">
<button class="project-btn" onclick="location.href='https://github.com/'">Github</button>
<button class="project-btn" onclick="location.href='https://github.com/'">Live Demo</button>
</div>
</div>
</div>

<!-- Project 2 -->
<div class="project">
<img src="./assets/project-2.png" alt="Project 2" class="project-img" />
<h2 class="project-title">Project Two</h2>
<div class="project-buttons">
<div class="button-container">
<button class="project-btn" onclick="location.href='https://github.com/'">Github</button>
<button class="project-btn" onclick="location.href='https://github.com/'">Live Demo</button>
</div>
</div>
</div>

<!-- Project 3 -->
<div class="project">
<img src="./assets/project-3.png" alt="Project 3" class="project-img" />
<h2 class="project-title">Project Three</h2>
<div class="project-buttons">
<div class="button-container">
<button class="project-btn" onclick="location.href='https://github.com/'">Github</button>
<button class="project-btn" onclick="location.href='https://github.com/'">Live Demo</button>
</div>
</div>
</div>
</div>
</section>
<!-- <img src="./assets/arrow.png" alt="Arrow icon" class="icon arrow" onclick="location.href='./#contact'" />
<! ------Contact-section--- -->
<div id="contact" class="contact-section">
<div class="container">
<div class="row">
<div class="contact-left">
<h1 class="sub-title">CONTACT ME</h1>
<div class="titleGap"></div>
<div class="titleSmall">Get In Touch</div>
<p><ion-icon name="paper-plane"></ion-icon> <a href="mailto:[email protected]" class="contact-link">&nbsp;[email protected]</a></p>
<p><ion-icon name="call"></ion-icon> <a href="tel:0123456789" class="contact-link">&nbsp;0123456789</a></p>

<div class="social-icons">
<a href="#"><ion-icon name="logo-instagram"></ion-icon></a>
<a href="#"><ion-icon name="logo-twitter"></ion-icon></a>
<a href="https://github.com/divyanshudhruv"><ion-icon name="logo-github"></ion-icon></a>
<a href="#"><ion-icon name="logo-linkedin"></ion-icon></a>
<a href="#"><ion-icon name="logo-discord"></ion-icon></a>
</div>
<!-- Put your Resume link in between anchor tag -->
<a href="" Download class="btn btn2">Download CV</a>
</div>
</div>
</div>
</div>
<!-- Back to Top Button -->
<button id="back-to-top" class="button">
<ion-icon name="chevron-up-outline"></ion-icon>
Expand Down Expand Up @@ -101,7 +170,6 @@
</div>
</div>
</div> -->

<div class="footer">
<!--since 'span' is an inline element so all the spans are displayed in one line one after the other, if we use 'div' then all the elements will apper in different boxes (try it out )-->
<span
Expand All @@ -121,6 +189,7 @@
<a href="https://github.com/divyanshudhruv">&nbsp;Divyanshu Dhruv</a>
</span>
</div>

<script src="js/script.js"></script>
<script src="js/typingAnimation.js"></script>
<script src="js/copyRight.js"></script>
Expand Down