Skip to content

Commit b8229fe

Browse files
author
Eugene
committed
add slider component
1 parent aa5a2ca commit b8229fe

18 files changed

Lines changed: 135 additions & 39 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"react": "^17.0.2",
1212
"react-document-title": "^2.0.3",
1313
"react-dom": "^17.0.2",
14+
"react-responsive-carousel": "^3.2.22",
1415
"react-router-dom": "^6.2.1",
1516
"react-scripts": "4.0.3",
1617
"react-slotify": "^0.1.7",

src/assets/images/icons/mac.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/images/icons/trello.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
312 KB
Loading
369 KB
Loading

src/assets/scss/index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* {
44
padding: 0;
55
margin: 0;
6+
box-sizing: border-box;
67
}
78

89
body {
@@ -21,3 +22,7 @@ code {
2122
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
2223
monospace;
2324
}
25+
26+
img {
27+
vertical-align: top;
28+
}

src/components/ProjectCard/Props.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ interface Props {
66
href?: string;
77
image: string;
88
platform: Platform;
9-
fullHeight?: boolean;
109
}
1110

1211
export default Props;

src/components/ProjectCard/index.scss

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
display: block;
2121
overflow: hidden;
2222
background: $color-substrate;
23-
border-radius: $size-md;
23+
border-radius: $size-lg;
2424
position: relative;
2525
height: 280px;
2626
}
@@ -29,26 +29,14 @@
2929
position: absolute;
3030
left: 50px;
3131
width: calc(100% - 100px);
32-
vertical-align: top;
3332
top: 100px;
3433
transition: top $duration-t, box-shadow $duration-t;
35-
border-radius: $size-sm;
34+
border-radius: $size-md;
3635
box-shadow: $shadow-lg;
3736
}
3837

39-
&--clickable &__tile:hover &__image,
40-
&--full-height &__image {
38+
&--clickable &__tile:hover &__image {
4139
top: 50px;
4240
box-shadow: $shadow-xl;
4341
}
44-
45-
&--full-height &__tile {
46-
height: auto;
47-
padding: 50px;
48-
}
49-
50-
&--full-height &__image {
51-
position: initial;
52-
width: 100%;
53-
}
5442
}

src/components/ProjectCard/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ const ProjectCard: FunctionComponent<Props> = ({
1111
href = null,
1212
image,
1313
platform,
14-
fullHeight = false,
1514
}) => {
1615
return (
1716
<div
1817
className={cn({
1918
"project-card": true,
2019
"project-card--clickable": href,
21-
"project-card--full-height": fullHeight,
2220
[className]: true,
2321
})}
2422
>

0 commit comments

Comments
 (0)