Skip to content

Commit 598c43a

Browse files
committed
Adds modal for portfolio cards, adds image carousel, adds new favicon, etc
1 parent e27798c commit 598c43a

File tree

10 files changed

+255
-118
lines changed

10 files changed

+255
-118
lines changed

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
},
1111
"dependencies": {
1212
"@emotion/react": "^11.11.3",
13-
"@mantine/carousel": "^7.5.0",
13+
"@icons-pack/react-simple-icons": "^9.3.0",
14+
"@mantine/carousel": "^7.5.3",
1415
"@mantine/core": "^7.5.0",
1516
"@mantine/form": "^7.5.0",
1617
"@mantine/hooks": "^7.5.0",
1718
"@tabler/icons-react": "^2.47.0",
1819
"@types/node": "20.11.14",
1920
"@types/react": "18.2.48",
2021
"@types/react-dom": "18.2.18",
21-
"embla-carousel-autoplay": "^8.0.0-rc22",
22-
"embla-carousel-react": "^8.0.0-rc22",
22+
"embla-carousel-autoplay": "^7.1.0",
23+
"embla-carousel-react": "^7.1.0",
2324
"eslint": "8.56.0",
2425
"eslint-config-next": "14.1.0",
2526
"next": "^14.1.0",
1.99 MB
Loading

public/icon-black.ico

4.19 KB
Binary file not shown.

public/icon-white.ico

4.19 KB
Binary file not shown.

public/icon.ico

-15 KB
Binary file not shown.
+32-40
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,46 @@
11
.card {
22
position: relative;
3-
overflow: hidden;
3+
/* border: 0.75px solid #cccccc; */
4+
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and box-shadow */
45
cursor: pointer;
5-
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Maintain smooth transition for transform and box-shadow */
6-
box-shadow: var(--mantine-shadow-xl);
7-
border: 3px solid transparent; /* Ensures layout stability */
8-
/* Apply zoom effect */
9-
transform: scale(1); /* Default scale */
10-
}
11-
12-
/* Initial state for top/left border */
13-
.card::before {
14-
content: "";
15-
position: absolute;
16-
left: 0;
17-
top: 0;
18-
width: 100%; /* Full width to cover the top edge */
19-
height: 100%; /* Full height to cover the left edge */
20-
border-top: 3px solid var(--cc-green); /* Top border */
21-
border-left: 3px solid var(--cc-green); /* Left border */
22-
transition: transform 0.3s ease-out; /* Smooth transition for border */
23-
transform-origin: top left;
24-
transform: scaleX(0); /* Start with top border fully retracted */
25-
}
26-
27-
/* Initial state for bottom/right border */
28-
.card::after {
29-
content: "";
30-
position: absolute;
31-
right: 0;
32-
bottom: 0;
33-
width: 100%; /* Full width to cover the bottom edge */
34-
height: 100%; /* Full height to cover the right edge */
35-
border-bottom: 3px solid var(--cc-green); /* Bottom border */
36-
border-right: 3px solid var(--cc-green); /* Right border */
37-
transition: transform 0.3s ease-out 0.3s; /* Delay bottom/right animation for a sequential effect */
38-
transform-origin: bottom right;
39-
transform: scaleY(0); /* Start with right border fully retracted */
406
}
417

428
.card:hover {
439
/* Enhance zoom effect on hover */
4410
transform: scale(1.03); /* Slightly larger scale for zoom effect */
4511
box-shadow: none; /* Optionally remove the box-shadow for focus on the border animation */
12+
border: 1px solid var(--cc-green);
13+
}
14+
15+
.cardImage {
16+
position: relative;
17+
object-fit: inherit;
18+
min-height: 300px;
4619
}
4720

48-
.card:hover::before {
49-
transform: scaleY(1); /* Expand left border downwards after delay */
21+
.viewProjectbutton {
22+
background-color: var(--cc-green);
23+
width: 250px;
24+
&:hover {
25+
background-color: var(--cc-light-green);
26+
}
5027
}
5128

52-
.card:hover::after {
53-
transform: scaleX(1); /* Expand bottom border to the right */
29+
.closeButton {
30+
width: 250px;
31+
background-color: var(--cc-green);
32+
&:hover {
33+
background-color: var(--cc-light-green);
34+
}
35+
}
36+
37+
/* for image carousel */
38+
.indicator {
39+
width: rem(12px);
40+
height: rem(4px);
41+
transition: width 250ms ease;
42+
43+
&[data-active] {
44+
width: rem(40px);
45+
}
5446
}

0 commit comments

Comments
 (0)