forked from ZainRk/React-Admin-Dashboard-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
351 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
.App { | ||
text-align: center; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
:root { | ||
--yellow: linear-gradient(180deg, #F8D49A -146.42%, #FAD79D -46.42%); | ||
--orange: #fca61f; | ||
--black: #242d49; | ||
--gray: #788097; | ||
--purple: linear-gradient(180deg, #BB67FF 0%, #C484F3 100%); | ||
--pink: #FF919D; | ||
--boxShadow: 0px 19px 60px rgb(0 0 0 / 8%); | ||
--smboxShadow: -79px 51px 60px rgba(0, 0, 0, 0.08); | ||
--activeItem: #f799a354; | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
.App { | ||
/* padding: 0.5rem 3.5rem; */ | ||
color: var(--black); | ||
background: linear-gradient( | ||
106.37deg, | ||
#ffe1bc 29.63%, | ||
#ffcfd1 51.55%, | ||
#f3c6f1 90.85% | ||
); | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
font-family: 'Inter', sans-serif; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
.AppGlass { | ||
display: grid; | ||
height: 97%; | ||
width: 97%; | ||
background: rgba(255, 255, 255, 0.54); | ||
border-radius: 2rem; | ||
gap: 16px; | ||
grid-template-columns: 11rem auto 20rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { UilUsdSquare, UilMoneyWithdrawal, UilClipboardAlt } from "@iconscout/react-unicons"; | ||
|
||
export const cardsData = [ | ||
{ | ||
title: "Sales", | ||
color: { | ||
backGround: "linear-gradient(180deg, #bb67ff 0%, #c484f3 100%)", | ||
boxShadow: "0px 10px 20px 0px #e0c6f5", | ||
}, | ||
barValue: 70, | ||
value: "25,970", | ||
png: UilUsdSquare, | ||
}, | ||
{ | ||
title: "Revenue", | ||
color: { | ||
backGround: "linear-gradient(180deg, #FF919D 0%, #FC929D 100%)", | ||
boxShadow: "0px 10px 20px 0px #FDC0C7", | ||
}, | ||
barValue: 80, | ||
value: "14,270", | ||
png: UilMoneyWithdrawal, | ||
}, | ||
{ | ||
title: "Expenses", | ||
color: { | ||
backGround: "linear-gradient(rgb(248, 212, 154) -146.42%, rgb(255 202 113) -46.42%)", | ||
boxShadow: "0px 10px 20px 0px #F9D59B", | ||
}, | ||
barValue: 60, | ||
value: "4,270", | ||
png: UilClipboardAlt, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.card { | ||
display: flex; | ||
flex: 1; | ||
height: 7rem !important; | ||
border-radius: 0.7rem; | ||
color: white; | ||
padding: 1rem; | ||
} | ||
|
||
/* radial bar */ | ||
.radialBar { | ||
flex: 1 1; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
gap: 1rem; | ||
} | ||
.CircularProgressbar { | ||
width: 4rem !important; | ||
overflow: visible; | ||
} | ||
.CircularProgressbar-path { | ||
stroke: white !important; | ||
stroke-width: 12px!important; | ||
filter: drop-shadow(2px 4px 6px white); | ||
} | ||
.CircularProgressbar-trail { | ||
display: none; | ||
} | ||
.CircularProgressbar-text { | ||
fill: white !important; | ||
} | ||
|
||
.radialBar > span { | ||
font-size: 17px; | ||
font-weight: bold; | ||
} | ||
|
||
/* sideDetail*/ | ||
.detail { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-end; | ||
justify-content: space-between; | ||
} | ||
|
||
.detail > span:nth-child(2) { | ||
font-size: 22px; | ||
font-weight: bold; | ||
} | ||
.detail > span:nth-child(3) { | ||
font-size: 12px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { useState } from "react"; | ||
import "./Card.css"; | ||
import { CircularProgressbar } from "react-circular-progressbar"; | ||
import "react-circular-progressbar/dist/styles.css"; | ||
const Card = (props) => { | ||
const Png = props.png; | ||
|
||
|
||
return ( | ||
<div | ||
className="card" | ||
style={{ | ||
background: props.color.backGround, | ||
boxShadow: props.color.boxShadow, | ||
}} | ||
> | ||
<div className="radialBar"> | ||
<CircularProgressbar | ||
value={props.barValue} | ||
text={`${props.barValue}%`} | ||
/> | ||
<span>{props.title}</span> | ||
</div> | ||
<div className="detail"> | ||
<Png /> | ||
<span>${props.value}</span> | ||
<span>Last 24 hours</span> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Card; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.Cards { | ||
display: flex; | ||
gap: 10px; | ||
} | ||
.parentContainer{ | ||
flex: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
import "./Cards.css"; | ||
import { cardsData } from "../../Data/Data"; | ||
|
||
import Card from "../Card/Card"; | ||
|
||
const Cards = () => { | ||
return ( | ||
<div className="Cards"> | ||
{cardsData.map((card, id) => { | ||
return ( | ||
<div className="parentContainer" key={id}> | ||
<Card | ||
title={card.title} | ||
color={card.color} | ||
barValue={card.barValue} | ||
value={card.value} | ||
png={card.png} | ||
/> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Cards; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.MainDash{ | ||
padding-top: 1rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import Cards from '../Cards/Cards' | ||
import './MainDash.css' | ||
const MainDash = () => { | ||
return ( | ||
<div className="MainDash"> | ||
<h1>Dashboard</h1> | ||
<Cards/> | ||
</div> | ||
) | ||
} | ||
|
||
export default MainDash |
Oops, something went wrong.