Skip to content

Commit 4fcd4a5

Browse files
committed
added a hover effect to buttons icons and images
1 parent d461a29 commit 4fcd4a5

File tree

3 files changed

+75
-19
lines changed

3 files changed

+75
-19
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# myPortfolio
22

3-
This portfolio is an interactive and responsive showcase of my web development skills, featuring modern design and seamless cross-device functionality. Built with HTML5, CSS3, JavaScript, and Bootstrap, it highlights projects, my background, and skills in a visually engaging way. Enhanced for accessibility and optimized for fast load times, it ensures a user-friendly experience. This project reflects my dedication to clean coding practices and continuous learning in the field of web development.
3+
This portfolio is an interactive and responsive showcase of my web development skills, featuring modern design and seamless cross-device functionality. Built with HTML5, CSS3, JavaScript it highlights projects, my background, and skills in a visually engaging way.Ensures a user-friendly experience. This project reflects my dedication to clean coding practices and continuous learning in the field of web development.

css/style.css

+68-17
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,39 @@
1616
.container{
1717
display: flex;
1818
}
19-
20-
21-
22-
.sidebar{
19+
.sidebar {
2320
background-color: black;
24-
/* border: 2px solid white ; */
25-
height: 250vh;
21+
height: 100vh;
2622
font-family: "Oxanium", sans-serif;
27-
/* padding: 10px 20px; */
2823
transition: transform 0.3s ease-in;
2924
position: absolute;
3025
width: 250px;
3126
}
3227

33-
.sidebar nav{
34-
padding: 80px 30px ;
28+
.sidebar nav {
29+
padding: 80px 30px;
3530
height: auto;
3631
}
37-
.sidebar nav li{
32+
33+
.sidebar nav li {
3834
list-style: none;
39-
padding: 15px 20px ;
35+
padding: 15px 20px;
4036
margin-bottom: 30px;
4137
border-radius: 10px;
4238
background-color: #339AF0;
4339
cursor: pointer;
4440
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
45-
transition: box-shadow 0.3s ease-in-out; /* Smooth transition */
41+
transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
42+
}
4643

44+
/* Zoom and color change on hover */
45+
.sidebar nav li:hover {
46+
transform: scale(1.1); /* Slight zoom */
47+
background-color: #1d7bdc; /* Darker blue */
48+
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow for depth */
4749
}
48-
.sidebar nav li a{
50+
51+
.sidebar nav li a {
4952
text-decoration: none;
5053
color: white;
5154
font-family: "Oxanium", sans-serif;
@@ -54,7 +57,12 @@
5457
display: flex;
5558
align-items: center;
5659
gap: 8px;
60+
transition: color 0.3s ease-in-out;
61+
}
5762

63+
/* Text color change on hover */
64+
.sidebar nav li:hover a {
65+
color: #f1f1f1; /* Slightly lighter white for better contrast */
5866
}
5967

6068

@@ -127,16 +135,59 @@
127135
font-size: 15px;
128136
width: 110px;
129137
}
130-
.devPic{
131-
/* border: 1px solid; */
138+
.devPic {
132139
width: 30vw;
133140
display: flex;
134141
align-items: center;
142+
justify-content: center;
143+
perspective: 1000px; /* Adds depth for the 3D effect */
135144
}
136-
.devPic img{
137-
/* border: 1px solid; */
145+
146+
.devPic img {
138147
width: 30vw;
148+
transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
149+
transform-style: preserve-3d;
150+
border-radius: 10px;
151+
}
152+
153+
/* 3D Tilt & Shadow Effect on Hover */
154+
.devPic img:hover {
155+
transform: rotateY(15deg) rotateX(5deg) scale(1.05); /* Slight tilt and zoom */
156+
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Shadow for depth */
157+
}
158+
159+
160+
/* Social icons container */
161+
.social-icons {
162+
display: flex;
163+
gap: 25px; /* Space between icons */
164+
justify-content: flex-start; /* Align to start */
165+
margin-top: 20px;
166+
}
167+
168+
/* Responsive design for smaller screens */
169+
@media (max-width: 745px) {
170+
.social-icons {
171+
display: flex;
172+
gap: 15px; /* Space between icons */
173+
justify-content: center; /* Center align */
174+
margin-top: 20px;
175+
}
176+
}
177+
178+
/* Social icons default state */
179+
.social-icons a {
180+
color: #0e0e0e;
181+
font-size: 30px;
182+
text-decoration: none;
183+
transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
184+
display: inline-block;
185+
}
139186

187+
/* Pop-up and enlarge effect on hover */
188+
.social-icons a:hover {
189+
color: #339AF0;
190+
transform: scale(1.3);
140191
}
141192

142193

index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>Portfolio</title>
77
<link rel="stylesheet" href="css/style.css">
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
9-
109
</head>
1110
<body>
1211
<div class="container">
@@ -40,6 +39,12 @@
4039
<a href="docs/Resume_143kb.pdf" target="_blank"><button class="btn">Download CV</button></a>
4140
<a href="contact.html"><button class="btn">Contact Me</button></a>
4241
</div>
42+
<div class="social-icons">
43+
<a href="https://www.linkedin.com/in/dipendrachaturvedi/" target="_blank"><i class="fa-brands fa-linkedin"></i></a>
44+
<a href="https://github.com/andrul01/" target="_blank"><i class="fa-brands fa-github"></i></a>
45+
<a href="https://www.facebook.com/dipendrachaturvedi10/" target="_blank"><i class="fa-brands fa-facebook"></i></a>
46+
<a href="https://wa.me/917796064374" target="_blank"><i class="fa-brands fa-whatsapp"></i></a>
47+
</div>
4348
</div>
4449
<div class="devPic">
4550
<img src="img/dev8.png" alt="developer">

0 commit comments

Comments
 (0)