Skip to content

Commit 3946063

Browse files
committed
feat: add table
1 parent 8cd103b commit 3946063

File tree

4 files changed

+133
-0
lines changed

4 files changed

+133
-0
lines changed

public/img/figma.png

9.77 KB
Loading

src/components/CompanyTable.jsx

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import styles from './CompanyTable.module.css'
2+
3+
export default function CompanyTable() {
4+
return (
5+
<div className={styles["table"]}>
6+
<div className={styles["table-header"]}>
7+
<div className={styles["header__item"]}>CompanyName</div>
8+
<div className={styles["header__item"]}>Type</div>
9+
<div className={styles["header__item"]}>Date</div>
10+
<div className={styles["header__item"]}>Amount</div>
11+
<div className={styles["header__item"]}>Employee Status</div>
12+
</div>
13+
<div className={styles["table-content"]}>
14+
<div className={styles["table-row"]}>
15+
<div className={styles["table-data"]}>
16+
<div className={styles["company-brand"]}>
17+
<div className={styles["company-brand-logo"]}>
18+
<img className={styles["company-brand-img"]} src="/img/figma.png" alt="" />
19+
</div>
20+
<div className={styles["company-brand-title"]}>
21+
<h1>Figma</h1>
22+
<h3>Application</h3>
23+
</div>
24+
</div>
25+
</div>
26+
<div className={styles["table-data"]}>Subscription</div>
27+
<div className={styles["table-data"]}>July 11.07.2023</div>
28+
<div className={styles["table-data"]}>$624,00.90</div>
29+
<div className={styles["table-data"]}>
30+
Completed
31+
</div>
32+
</div>
33+
<div className={styles["table-row"]}>
34+
<div className={styles["table-data"]}>
35+
<div className={styles["company-brand"]}>
36+
<div className={styles["company-brand-logo"]}>
37+
<img className={styles["company-brand-img"]} src="/img/figma.png" alt="" />
38+
</div>
39+
<div className={styles["company-brand-title"]}>
40+
<h1>Figma</h1>
41+
<h3>Application</h3>
42+
</div>
43+
</div>
44+
</div>
45+
<div className={styles["table-data"]}>Subscription</div>
46+
<div className={styles["table-data"]}>July 11.07.2023</div>
47+
<div className={styles["table-data"]}>$624,00.90</div>
48+
<div className={styles["table-data"]}>
49+
Completed
50+
</div>
51+
</div>
52+
</div>
53+
</div>
54+
)
55+
}
+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
.table {
2+
margin-top: 40px;
3+
width:100%;
4+
padding: 10px;
5+
border-radius: 20px;
6+
background-color: #FFF;
7+
box-shadow: 0 0 10px rgb(218, 218, 218, 0.5);
8+
padding-bottom: 30px;
9+
}
10+
11+
.table-header {
12+
display: flex;
13+
width: 100%;
14+
background-color: #F8F8FA;
15+
padding: 30px 0;
16+
border-radius: 15px;
17+
color: #8b8b8f;
18+
}
19+
20+
.table-content {
21+
margin-top: 20px;
22+
display: flex;
23+
flex-direction: column;
24+
row-gap: 30px;
25+
}
26+
27+
.table-row {
28+
display: flex;
29+
width: 100%;
30+
}
31+
32+
.table-data, .header__item {
33+
flex: 1 1 20%;
34+
text-align: center;
35+
display: flex;
36+
justify-content: center;
37+
align-items: center;
38+
}
39+
40+
.header__item {
41+
text-transform: uppercase;
42+
}
43+
44+
.filter__link {
45+
color:white;
46+
text-decoration: none;
47+
position:relative;
48+
display: inline-block;
49+
}
50+
.company-brand {
51+
display: flex;
52+
align-items: center;
53+
column-gap: 20px;
54+
}
55+
.company-brand-logo {
56+
width: 60px;
57+
height: 60px;
58+
border-radius: 100%;
59+
background-color: #f5f5f5;
60+
display: flex;
61+
align-items: center;
62+
justify-content: center;
63+
}
64+
.company-brand-img {
65+
width: 25px;
66+
}
67+
.company-brand-title {
68+
text-align: left;
69+
}
70+
.company-brand-title h1 {
71+
margin-bottom: 10px;
72+
}
73+
.company-brand-title h3 {
74+
color: rgba(0, 0, 0, 0.3);
75+
}

src/pages/Overview.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { WalletMoney, MoneySend, UsdCoin } from 'iconsax-react'
22

33
import TotalBox from '../components/TotalBox'
44
import Chart from '../components/Chart'
5+
import CompanyTable from '../components/CompanyTable'
56

67
import { More, Calendar } from 'iconsax-react'
78

@@ -123,6 +124,8 @@ export default function Overview() {
123124
</div>
124125
</div>
125126
</div>
127+
128+
<CompanyTable />
126129
</div>
127130
)
128131
}

0 commit comments

Comments
 (0)