Skip to content

Commit 5513587

Browse files
committed
Played with hover, shadows and transitions on the images
1 parent 94ee80a commit 5513587

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Navigation from './Components/Navigation/Navigation'
21
import './styles/output.css'
2+
import Navigation from './Components/Navigation/Navigation'
33
import About from './Sections/About/About'
44
import Contact from './Sections/Contact/Contact'
55
import Intro from './Sections/Intro/Intro'

src/styles/App.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ nav {
101101
width: 180px;
102102
height: auto;
103103
flex: 0 0 180px;
104+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
105+
transition: box-shadow 0.3s ease-in-out;
106+
transition-property: transform;
107+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
108+
transition-duration: 0.3s;
109+
}
110+
111+
.profile-img-box:hover {
112+
box-shadow: 0 4px 20px rgba(241, 114, 110, 0.8);
113+
transform: scale(1.1);
104114
}
105115

106116
.profile-img-box > img {
@@ -318,10 +328,26 @@ a.link {
318328
display: flex;
319329
flex-direction: column;
320330
gap: 5px;
331+
box-shadow: 0 14px 18px rgba(0, 0, 0, 0.3);
332+
transition: box-shadow 0.3s ease-in-out;
333+
334+
border-radius: 5%;
335+
336+
margin-top: 1rem;
337+
margin-left: auto;
338+
transition-property: transform;
339+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
340+
transition-duration: 0.3s;
341+
}
342+
343+
.project-item-main-image:hover {
344+
box-shadow: 0 14px 18px rgba(241, 114, 110, 0.8);
345+
transform: scale(1.05);
321346
}
322347

323348
.project-item-main-image img {
324349
width: 100%;
350+
border-radius: 5%;
325351
object-fit: contain;
326352
}
327353

src/styles/output.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,16 @@ nav {
716716
width: 180px;
717717
height: auto;
718718
flex: 0 0 180px;
719+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
720+
transition: box-shadow 0.3s ease-in-out;
721+
transition-property: transform;
722+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
723+
transition-duration: 0.3s;
724+
}
725+
726+
.profile-img-box:hover {
727+
box-shadow: 0 4px 20px rgba(241, 114, 110, 0.8);
728+
transform: scale(1.1);
719729
}
720730

721731
.profile-img-box > img {
@@ -942,10 +952,24 @@ a.link {
942952
display: flex;
943953
flex-direction: column;
944954
gap: 5px;
955+
box-shadow: 0 14px 18px rgba(0, 0, 0, 0.3);
956+
transition: box-shadow 0.3s ease-in-out;
957+
border-radius: 5%;
958+
margin-top: 1rem;
959+
margin-left: auto;
960+
transition-property: transform;
961+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
962+
transition-duration: 0.3s;
963+
}
964+
965+
.project-item-main-image:hover {
966+
box-shadow: 0 14px 18px rgba(241, 114, 110, 0.8);
967+
transform: scale(1.05);
945968
}
946969

947970
.project-item-main-image img {
948971
width: 100%;
972+
border-radius: 5%;
949973
-o-object-fit: contain;
950974
object-fit: contain;
951975
}

0 commit comments

Comments
 (0)