Skip to content

Commit

Permalink
add wip clock example
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Mar 20, 2023
1 parent d357ad3 commit 0f725a8
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
2 changes: 1 addition & 1 deletion css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

.item {
display: grid;
background-color: rgba(247, 0, 0, 0.363);
background-color: rgb(255, 255, 255);
border: 1px solid black;
grid-area: 1/1/1/1;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion css/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/index.min.css.map

Large diffs are not rendered by default.

46 changes: 32 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@
<title>Radial grid layout - css only</title>
</head>
<body>
<div class="z-container" >
<div class="core items-1">
<hr class="item line hora" style="width: 110px; height: 5px; border:1px solid red; --angle: -90">
<hr class="item line minuto" style="width: 150px; height: 2px; border:1px solid red; --angle: -45">
</div>
<div class="ring-2 items-12">
<div class="item xs">4</div>
<div class="item xs">5</div>
<div class="item xs">6</div>
<div class="item xs">7</div>
<div class="item xs">8</div>
<div class="item xs">9</div>
<div class="item xs">10</div>
<div class="item xs">11</div>
<div class="item xs">12</div>
<div class="item xs">1</div>
<div class="item xs">2</div>
<div class="item xs">3</div>
</div>
</div>
<div class="z-container" >
<div class="core items-8">
<hr class="item line">
Expand All @@ -18,34 +38,26 @@
<hr class="item line">
<hr class="item line">
<hr class="item line">

</div>

<div class="ring-1 items-5 " style="background-color: aliceblue;">
<div class="item s box">A</div>
<div class="item s rounded">N</div>
<div class="item l">

</div>
</div>
<div class="item s">Y</div>
<div class="item s">!</div>
</div>

<div class="ring-3 items-3 ccw">
<div class="item m box lower">
<div class="content">ONU <br> dos</div>
</div>
<div class="item m">
<div class="label pos-315">

<div
class="label__text">
text
<div class="label__text">
text
</div>
</div>

</div>

<div class="item m upper">
<div class="content">sub 1 <br> sub2 sub 1 </div>
<div class="ring-2 items-4 offset-45 arc-90">
Expand All @@ -64,13 +76,19 @@
</div>

</div>

<svg>
<circle class="base" />
<circle class="percent p50" pathLength="100" />
</svg>
</svg>
</div>

</div>
<script>
var el = document.querySelector(".minuto")
var minuto = el.style.getPropertyValue("--angle")
setInterval(() => {
el.style.setProperty("--angle", minuto++)
}, 1000)
</script>
</body>

</html>
2 changes: 1 addition & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

.item {
display: grid;
background-color: rgba(247, 0, 0, 0.363);
background-color: rgb(255, 255, 255);
border: 1px solid black;
grid-area: 1/1/1/1;
@include alignment;
Expand Down

0 comments on commit 0f725a8

Please sign in to comment.