forked from ofekashery/react-dashboard-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojects.tsx
109 lines (107 loc) · 3.48 KB
/
projects.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import React from 'react';
import { Button, Grid, Input, useTheme } from '@geist-ui/react';
import SearchIcon from '@geist-ui/react-icons/search';
import CreateTeamIcon from '@geist-ui/react-icons/userPlus';
import ProjectCard from '@/components/project-card';
const Page = () => {
const theme = useTheme();
return (
<>
<div className="page__wrapper">
<div className="page__content">
<div className="actions-stack">
<Input
scale={1.25}
width="100%"
icon={<SearchIcon color={theme.palette.accents_5} />}
placeholder="Search..."
/>
<Button auto type="secondary" marginLeft={1}>
New Project
</Button>
<Button iconRight={<CreateTeamIcon />} marginLeft={1} px={0} width="48px" />
</div>
<Grid.Container gap={2} marginTop={1} justify="flex-start">
<Grid xs={24} sm={12} md={8}>
<ProjectCard
projectId="react-dashboard-design"
framework="next"
git={{
repo: 'ofekashery/react-dashboard-design',
commitMessage: 'Bump version'
}}
updatedAt="4m"
/>
</Grid>
<Grid xs={24} sm={12} md={8}>
<ProjectCard
projectId="personal-website"
framework="react"
productionHostname="ofek.ashery.me"
git={{
repo: 'ofekashery/personal-website',
commitMessage: 'Improve homepage layout on smaller screens'
}}
updatedAt="2d"
/>
</Grid>
<Grid xs={24} sm={12} md={8}>
<ProjectCard projectId="docs" framework="other" updatedAt="5d" />
</Grid>
<Grid xs={24} sm={12} md={8}>
<ProjectCard
projectId="geist"
framework="react"
productionHostname="react.geist-ui.dev"
git={{
repo: 'geist-org/react',
commitMessage: 'chore: release v2.2.0'
}}
updatedAt="8d"
/>
</Grid>
<Grid xs={24} sm={12} md={8}>
<ProjectCard
projectId="github-blog"
framework="next"
productionHostname="github.blog"
git={{
repo: 'github/blog',
commitMessage: 'Fix font-size in footer'
}}
updatedAt="8d"
/>
</Grid>
</Grid.Container>
</div>
</div>
<style jsx>{`
.page__wrapper {
background-color: ${theme.palette.accents_1};
min-height: calc(100vh - 172px);
}
.page__content {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: ${theme.layout.pageWidthWithMargin};
max-width: 100%;
margin: 0 auto;
padding: calc(${theme.layout.unit} * 2) ${theme.layout.pageMargin};
box-sizing: border-box;
}
.actions-stack {
display: flex;
width: 100%;
}
.actions-stack :global(.input-wrapper) {
background-color: ${theme.palette.background};
}
.actions-stack :global(input) {
font-size: 14px;
}
`}</style>
</>
);
};
export default Page;