mirror of
https://github.com/LucasVbr/own-workspace.git
synced 2026-05-19 10:53:19 +00:00
cleaning + POMODORO 🎉
This commit is contained in:
+14
-63
@@ -1,28 +1,25 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<header>
|
||||
<Welcome/>
|
||||
<h3 id="time"></h3>
|
||||
</header>
|
||||
<div class="pause"></div>
|
||||
<to-do-list></to-do-list>
|
||||
<div class="ytb" v-show="displayYoutube">
|
||||
<iframe width="80%" height="400" src="https://www.youtube-nocookie.com/embed/MCkTebktHVc?autoplay=1&mute=1" title="YouTube video player" frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
id="youtube_video">
|
||||
</iframe>
|
||||
<div class="aside">
|
||||
<div class="ytb" v-show="displayYoutube">
|
||||
<iframe width="100%" height="388" src="https://www.youtube-nocookie.com/embed/MCkTebktHVc?autoplay=1&mute=1" title="YouTube video player" frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
id="youtube_video">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
<footer>Made with <a href="https://github.com/RemiSaurel/todoapp" target="_blank" class="name">💙</a> by <a href="https://www.linkedin.com/in/r%C3%A9mi-saurel/" target="_blank" class="name">Rémi Saurel</a> </footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Welcome from './components/Welcome.vue'
|
||||
import ToDoList from "@/components/ToDoList";
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
Welcome,
|
||||
ToDoList
|
||||
ToDoList,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -31,32 +28,10 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
clock();
|
||||
|
||||
function clock() {
|
||||
const today = new Date();
|
||||
|
||||
// get time components
|
||||
const hours = today.getHours();
|
||||
const minutes = today.getMinutes();
|
||||
|
||||
//add '0' to hour, minute & second when they are less 10
|
||||
const hour = hours < 10 ? "0" + hours : hours;
|
||||
const minute = minutes < 10 ? "0" + minutes : minutes;
|
||||
|
||||
const time = hour + ":" + minute;
|
||||
|
||||
document.getElementById("time").innerHTML = time;
|
||||
setTimeout(clock, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400&display=swap');
|
||||
|
||||
* {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
@@ -71,32 +46,6 @@ body {
|
||||
background: -webkit-linear-gradient( 0deg, rgba(255, 253, 226, 1) 0%, rgba(255, 228, 164, 1) 50%, rgba(255, 217, 153, 1) 100%);
|
||||
}
|
||||
|
||||
.ytb {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
user-select: none;
|
||||
position: relative;
|
||||
padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
|
||||
}
|
||||
|
||||
iframe{
|
||||
position: absolute;
|
||||
top: 5%;
|
||||
left: 20%;
|
||||
width: 60%;
|
||||
height: 60%;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-right: 10vw;
|
||||
margin-left: 10vw;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
@@ -104,8 +53,10 @@ footer {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#time {
|
||||
font-size: 28px;
|
||||
.ytb {
|
||||
margin-left: 32px;
|
||||
margin-right: 32px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
/* TEXT UNDERLINE */
|
||||
|
||||
Reference in New Issue
Block a user