Skip to content

Commit b6e9d52

Browse files
author
Eugene
committed
add contributors
1 parent 09166a5 commit b6e9d52

21 files changed

Lines changed: 257 additions & 74 deletions

File tree

27.9 KB
Loading
27.6 KB
Loading
18.9 KB
Loading

src/assets/scss/animations.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "./variables.scss";
2+
13
@keyframes lds-ellipsis1 {
24
0% {
35
transform: scale(0);
@@ -24,3 +26,14 @@
2426
transform: translate(24px, 0);
2527
}
2628
}
29+
30+
@keyframes mount-slide {
31+
from {
32+
transform: translateY(-$size-lg);
33+
opacity: 0;
34+
}
35+
to {
36+
transform: translateY(0);
37+
opacity: 1;
38+
}
39+
}

src/assets/scss/index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ img {
3131
a {
3232
color: inherit;
3333
}
34+
35+
ul,
36+
ol {
37+
list-style: none;
38+
}

src/components/App/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Footer from "../Footer";
88
import HomePage from "../../pages/HomePage";
99
import ProjectPage from "../../pages/ProjectPage";
1010
import NotFoundPage from "../../pages/NotFoundPage";
11+
import AboutPage from "../../pages/AboutPage";
1112
import WidthLimiter, { WidthLimiterSlot } from "../../components/WidthLimiter";
1213
import "./index.scss";
1314

@@ -21,6 +22,7 @@ const App: FunctionComponent = () => {
2122
<Routes>
2223
<Route path="*" element={<NotFoundPage />} />
2324
<Route path="/" element={<HomePage />} />
25+
<Route path="/about" element={<AboutPage />} />
2426
{mainConfig.projects.map((project, projectIndex) => {
2527
return (
2628
<Route
@@ -36,7 +38,7 @@ const App: FunctionComponent = () => {
3638
</WidthLimiterSlot>
3739
</WidthLimiter>
3840
<div className="app__effects">
39-
<Snow size="8px"/>
41+
<Snow size="8px" />
4042
</div>
4143
</div>
4244
);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
interface Contributor {
2+
login: string;
3+
profileUrl: string;
4+
avatarUrl: string;
5+
}
6+
7+
interface Props {
8+
contributors: Contributor[];
9+
}
10+
11+
export default Props;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@import "../../assets/scss/variables.scss";
2+
3+
.contributors {
4+
&__list {
5+
display: flex;
6+
flex-wrap: wrap;
7+
}
8+
9+
&__item {
10+
display: flex;
11+
align-items: center;
12+
width: 33.3%;
13+
margin: $size-md 0;
14+
}
15+
16+
&__item-image {
17+
border-radius: 50%;
18+
width: $size-xl;
19+
}
20+
21+
&__item-link {
22+
margin: 0 $size-lg;
23+
}
24+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { FunctionComponent } from "react";
2+
3+
import Props from "./Props";
4+
import "./index.scss";
5+
import Link from "../Link";
6+
7+
const Contributors: FunctionComponent<Props> = ({ contributors }) => {
8+
return (
9+
<div className="contributors">
10+
<ul className="contributors__list">
11+
{contributors.map((c, cIndex) => {
12+
return (
13+
<li className="contributors__item" key={cIndex}>
14+
<img
15+
className="contributors__item-image"
16+
src={c.avatarUrl}
17+
alt={c.login}
18+
/>
19+
<Link
20+
href={c.profileUrl}
21+
className="contributors__item-link"
22+
text={c.login}
23+
/>
24+
</li>
25+
);
26+
})}
27+
</ul>
28+
</div>
29+
);
30+
};
31+
32+
export default Contributors;

src/components/Footer/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import "./index.scss";
21
import { FunctionComponent } from "react";
32

3+
import "./index.scss";
4+
45
const Footer: FunctionComponent = () => {
56
return (
67
<footer className="footer">

0 commit comments

Comments
 (0)