Skip to content
Open
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
34 changes: 34 additions & 0 deletions Clock/AdyaTech/Day 10.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS DAY 10</title>
<link rel="stylesheet" href="dayten.css">
</head>

<body>

<script
src="https://kit.fontawesome.com/befb81a1f5.js"
crossorigin="anonymous"
></script>
<div class="frame">
<div class="base_c">
<div class="contents">
<div class="date">wed 22 jan 1997</div>
<div class="time">01:22</div>
<div class="heart">
<span class="fa-solid fa-heart fa-beat"></span>
<span>80</span>
<span class="energy inline">1200 kcal</span>
</div>
</div>
</div>
<svg class="red_c">
<circle cx="92" cy="92" r="90" />
</svg>
<svg class="dotted_c">
<circle cx="82" cy="82" r="80" />
</svg>
</div>
</body>
</html>
107 changes: 107 additions & 0 deletions Clock/AdyaTech/dayten.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
.frame {
position: absolute;
top: 50%;
left: 50%;
width: 400px;
height: 400px;
margin-top: -200px;
margin-left: -200px;
border-radius: 2px;
box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.1);
overflow: hidden;
background-image: radial-gradient( circle 400px at 6.8% 8.3%, rgba(255,244,169,1) 0%, rgba(255,244,234,1) 100.2% );
color: #fff;
font-size: 12px;
text-transform: uppercase;
font-family: "Open Sans", Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.base_c {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
width: 200px;
height: 200px;
background: #000;
border: 7px solid #444;
text-align: center;
}

.contents {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.heart {
display: flex;
justify-content: space-between;
}
.heart .fa-heart {
color: #da1616;
font-size: 10px;
margin-top: 1px;
margin-right: -5px;
}
.time {
font-weight: 700;
top: 80px;
font-size: 40px;
// line-height: 100%;
}

.red_c {
position: absolute;
top: 50%;
left: 50%;
width: 184px;
height: 184px;
transform: translate(-50%, -50%);
}
.red_c circle {
stroke: #ac1212;
fill: none;
stroke-width: 4px;
stroke-dasharray: 625;
-webkit-animation: spinner 5s linear infinite;
animation: spinner 5s linear infinite;
transform-origin: center center;
transform: rotate(-90deg);
}

@keyframes spinner {
0% {
stroke-dashoffset: 625;
transform: rotate(-90deg) scaleY(1);
}
50% {
stroke-dashoffset: 0;
transform: rotate(-90deg) scaleY(1);
}
50.0001% {
transform: rotate(-90deg) scaleY(-1);
}
100% {
stroke-dashoffset: 625;
transform: rotate(-90deg) scaleY(-1);
}
}

.dotted_c {
position: absolute;
top: 50%;
left: 50%;
width: 164px;
height: 164px;
transform: translate(-50%, -50%);
}
.dotted_c circle {
stroke: #fff;
fill: none;
stroke-width: 2px;
stroke-dasharray: 2 8.5;
}