This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
generated from CompSciLauren/hackathon-template-react-terra-prettier
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add statistics page with time code summary (#6)
* Add statistics page with time code summary
- Loading branch information
1 parent
7e14a45
commit 4719d3b
Showing
7 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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,43 @@ | ||
import React, { useState } from "react"; | ||
import Card from "terra-card"; | ||
import Heading from "terra-heading"; | ||
import TimeCodeProject from "../ViewTimeCodes/TimeCodeProject"; | ||
import "../../styles/ViewTimeCodes.css"; | ||
|
||
const TimeCodeStatSummary = () => { | ||
return ( | ||
<Card variant="default" style={{ maxWidth: "40vw", margin: "auto" }}> | ||
<div className="my-time-codes-container"> | ||
<Heading level={1} size="large" weight={700}> | ||
This Week's Time Code Summary | ||
</Heading> | ||
<TimeCodeProject | ||
timeCode="19378847" | ||
projectTitle="Fancy Project" | ||
tag="In-Progress" | ||
timeSpent="4.5 hours" | ||
/> | ||
<TimeCodeProject | ||
timeCode="39572956" | ||
projectTitle="Classified" | ||
tag="Not Started" | ||
timeSpent="8 hours" | ||
/> | ||
<TimeCodeProject | ||
timeCode="82659301" | ||
projectTitle="DevOps Magic" | ||
tag="In-Progress" | ||
timeSpent="6.35 hours" | ||
/> | ||
<TimeCodeProject | ||
timeCode="92847634" | ||
projectTitle="Wow a project" | ||
tag="Completed" | ||
timeSpent="17 hours" | ||
/> | ||
</div> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default TimeCodeStatSummary; |
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
Empty file.
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,12 @@ | ||
import React from "react"; | ||
import TimeCodeStatSummary from "../../components/TimeCodeStatSummary/TimeCodeStatSummary.js"; | ||
|
||
const statistics = () => { | ||
return ( | ||
<div> | ||
<TimeCodeStatSummary /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default statistics; |