Skip to content

Commit

Permalink
style fixes, init planner, fix okt logo
Browse files Browse the repository at this point in the history
  • Loading branch information
miermontoto committed Dec 20, 2023
1 parent f245479 commit 2464a04
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/App.scss
Expand Up @@ -18,6 +18,8 @@ body {
user-select: none;
border-color: $front-color;
text-transform: lowercase;
font-size: 0.75em;
text-align: center;
}

.btn:hover, .btn.active {
Expand Down Expand Up @@ -50,7 +52,6 @@ code {
#footer {
font-size: 0.6em;
text-align: center;
// position at the bottom
position: fixed;
bottom: 0;
width: 100%;
Expand All @@ -62,6 +63,8 @@ code {
}

#oktlogo {
position: relative;
top: 0.4em;
width: 1.5em;
height: 1.5em;
border-radius: 5%;
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
@@ -1,5 +1,5 @@
<script setup>
import TimerComponent from '@/components/timer/Timer.vue';
import TimerComponent from '@/components/timer/Timer.vue';
import MarqueeComponent from '@/components/marquee/Marquee.vue';
import '@/App.scss';
</script>
Expand All @@ -23,7 +23,7 @@

<span id="footer-text">
made with ❤
for <a href="https://okticket.es"><img src="https://mier.info/assets/logos/okticket.png" width="256" height="256" id="oktlogo" alt="okticket"></a>
for <a href="https://okticket.es"><img src="https://mier.info/assets/icons/exp/okticket.png" width="256" height="256" id="oktlogo" alt="okticket"></a>
by <a href="https://mier.info">Juan Mier</a>
in <code>vue.js</code>
</span>
Expand Down
Binary file added src/assets/CourierPrime.woff2
Binary file not shown.
Empty file.
33 changes: 33 additions & 0 deletions src/components/planner/Planner.vue
@@ -0,0 +1,33 @@
<script>
import '@/components/planner/Planner.scss';
export default {
name: 'PlannerComponent',
components: {},
methods: {
okt() {
this.$refs.textarea.value = 'okticket';
this.ack();
},
hour() {
this.ack();
},
half() {
this.ack();
},
ack() {
}
},
beforeMount() {this.okt();}
}
</script>

<template>
<div class="bar" id="buttons">
<span class="btn" id="btn_okt">okticket</span>
<span class="btn" id="btn_60min">60min</span>
<span class="btn" id="btn_30min">30min</span>
</div>

<textarea ref="textarea"></textarea>
</template>
5 changes: 3 additions & 2 deletions src/components/timer/Timer.scss
Expand Up @@ -3,11 +3,12 @@
justify-content: center;
background-color: $background-color;
border-radius: 0.5em;
flex-direction: column;
align-items: center;
}

#timer {
flex-direction: row;
padding-top: 2svw;

span {
font-size: min(14vw, 5em);
Expand Down Expand Up @@ -43,7 +44,7 @@ div {
}

> span:first-child {
margin-right: 1.5em;
margin-right: 10svw;
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/components/timer/Timer.vue
Expand Up @@ -53,6 +53,9 @@ const getDateDiff = (arr) => {
case 'pause':
icon = '⏸️';
break;
case 'daily':
icon = '📅';
break;
default:
icon = '';
break;
Expand Down

0 comments on commit 2464a04

Please sign in to comment.