Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/art/HarshitClock/HarshitClock.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import style from "./style.module.css";
import { Credit } from "../../components/Credit/index";

function HarshitClock() {
let data = {
name: "Harshit Pandey",
"gh-link": "https://github.com/HarshitPandey251",
"art-name": "Clock",
};
return (
<div className={`${style.container} container`}>
{/* DO NOT edit the className above*/}

{/* your art blocks will come here */}
<div className={style.clock}>
<div className={style.inner}>
<div className={style.dot}></div>
<div className={style.dot}></div>
<div className={style.dot}></div>
<div className={style.dot}></div>
<div className={style.center}>
<div className={style.hour}></div>
<div className={style.min}></div>
</div>
</div>

</div>

{/* do not edit the line below */}
<Credit data={data} />
</div>
);
}

export default HarshitClock;
71 changes: 71 additions & 0 deletions src/art/HarshitClock/style.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.container {
background-color: #20232a;
}

.clock{
height: 150px;
width: 150px;
background: #cdd9e5;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}

.inner{
height: 130px;
width: 130px;
background: #2d333b;
border-radius: 50%;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

.dot{
height: 10px;
width: 10px;
background: #FFFAFA;
border-radius: 50%;
position: absolute;
}

.dot:nth-child(1){
top: 10px;
left: 60px;
}
.dot:nth-child(2){
top: 60px;
left: 111px;
}
.dot:nth-child(3){
top: 110px;
left: 60px;
}
.dot:nth-child(4){
top: 60px;
left: 10px;
}
.center{
height: 10px;
width: 10px;
background: #FFFAFA;
border-radius: 50%;
}
.hour{
height: 50px;
width: 4px;
top: -34px;
left: 3px;
background: #FFFAFA;
position: relative;
}
.min{
height: 4px;
width: 38px;
top: -47px;
left: -5px;
background: #FFFAFA;
position: relative;
}