Working on tracker design
This commit is contained in:
parent
2cbbccb8c8
commit
c8a6d5e07b
@ -5,8 +5,14 @@ import { RouterLink, RouterView } from 'vue-router'
|
||||
<template>
|
||||
<header>
|
||||
<nav>
|
||||
<RouterLink to="/">Home</RouterLink>
|
||||
<RouterLink to="/about">About</RouterLink>
|
||||
<div class="left">
|
||||
<RouterLink to="/tracker">Tracker</RouterLink>
|
||||
<RouterLink to="/dashboard">Dashboard</RouterLink>
|
||||
<RouterLink to="/about">About</RouterLink>
|
||||
</div>
|
||||
<div class="right">
|
||||
<RouterLink to="/profile">Test Testovic</RouterLink>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
@ -1,86 +0,0 @@
|
||||
/* color palette from <https://github.com/vuejs/theme> */
|
||||
:root {
|
||||
--vt-c-white: #ffffff;
|
||||
--vt-c-white-soft: #f8f8f8;
|
||||
--vt-c-white-mute: #f2f2f2;
|
||||
|
||||
--vt-c-black: #181818;
|
||||
--vt-c-black-soft: #222222;
|
||||
--vt-c-black-mute: #282828;
|
||||
|
||||
--vt-c-indigo: #2c3e50;
|
||||
|
||||
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
|
||||
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
|
||||
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
|
||||
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
|
||||
|
||||
--vt-c-text-light-1: var(--vt-c-indigo);
|
||||
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
|
||||
--vt-c-text-dark-1: var(--vt-c-white);
|
||||
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
|
||||
}
|
||||
|
||||
/* semantic color variables for this project */
|
||||
:root {
|
||||
--color-background: var(--vt-c-white);
|
||||
--color-background-soft: var(--vt-c-white-soft);
|
||||
--color-background-mute: var(--vt-c-white-mute);
|
||||
|
||||
--color-border: var(--vt-c-divider-light-2);
|
||||
--color-border-hover: var(--vt-c-divider-light-1);
|
||||
|
||||
--color-heading: var(--vt-c-text-light-1);
|
||||
--color-text: var(--vt-c-text-light-1);
|
||||
|
||||
--section-gap: 160px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--color-background: var(--vt-c-black);
|
||||
--color-background-soft: var(--vt-c-black-soft);
|
||||
--color-background-mute: var(--vt-c-black-mute);
|
||||
|
||||
--color-border: var(--vt-c-divider-dark-2);
|
||||
--color-border-hover: var(--vt-c-divider-dark-1);
|
||||
|
||||
--color-heading: var(--vt-c-text-dark-1);
|
||||
--color-text: var(--vt-c-text-dark-2);
|
||||
}
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
color: var(--color-text);
|
||||
background: var(--color-background);
|
||||
transition:
|
||||
color 0.5s,
|
||||
background-color 0.5s;
|
||||
line-height: 1.6;
|
||||
font-family:
|
||||
Inter,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
'Segoe UI',
|
||||
Roboto,
|
||||
Oxygen,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
'Fira Sans',
|
||||
'Droid Sans',
|
||||
'Helvetica Neue',
|
||||
sans-serif;
|
||||
font-size: 15px;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
15
frontend/src/assets/css/base.css
Normal file
15
frontend/src/assets/css/base.css
Normal file
@ -0,0 +1,15 @@
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
background-color: var(--clr-3);
|
||||
}
|
||||
|
||||
a, p {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
5
frontend/src/assets/css/main.css
Normal file
5
frontend/src/assets/css/main.css
Normal file
@ -0,0 +1,5 @@
|
||||
@import './base.css';
|
||||
@import './nav.css';
|
||||
@import './vars.css';
|
||||
@import './taskview.css';
|
||||
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400;1,700&display=swap');
|
11
frontend/src/assets/css/nav.css
Normal file
11
frontend/src/assets/css/nav.css
Normal file
@ -0,0 +1,11 @@
|
||||
header nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 2rem;
|
||||
background-color: var(--clr-1);
|
||||
}
|
||||
|
||||
header nav div {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
33
frontend/src/assets/css/taskview.css
Normal file
33
frontend/src/assets/css/taskview.css
Normal file
@ -0,0 +1,33 @@
|
||||
.header, .task-wrapper, .task, .task span {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 1rem 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.header {
|
||||
justify-content: space-between;
|
||||
background-color: var(--clr-1);
|
||||
}
|
||||
.task {
|
||||
background-color: var(--clr-2);
|
||||
}
|
||||
|
||||
.task, .header, .task-new-wrapper {
|
||||
padding: .5rem;
|
||||
}
|
||||
|
||||
.task-new-wrapper {
|
||||
background-color: var(--clr-2);
|
||||
}
|
||||
|
||||
img {
|
||||
cursor: pointer;
|
||||
}
|
9
frontend/src/assets/css/vars.css
Normal file
9
frontend/src/assets/css/vars.css
Normal file
@ -0,0 +1,9 @@
|
||||
:root {
|
||||
--clr-1: #031326;
|
||||
--clr-2: #172B40;
|
||||
--clr-3: #2F435B;
|
||||
--clr-4: #495C74;
|
||||
--clr-5: #7B94A7;
|
||||
--clr-blk: black;
|
||||
--clr-wht: white;
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
@import './base.css';
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
a,
|
||||
.green {
|
||||
text-decoration: none;
|
||||
color: hsla(160, 100%, 37%, 1);
|
||||
transition: 0.4s;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
a:hover {
|
||||
background-color: hsla(160, 100%, 37%, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
body {
|
||||
display: flex;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
#app {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
}
|
1
frontend/src/assets/svg/dollar.svg
Normal file
1
frontend/src/assets/svg/dollar.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M441-120v-86q-53-12-91.5-46T293-348l74-30q15 48 44.5 73t77.5 25q41 0 69.5-18.5T587-356q0-35-22-55.5T463-458q-86-27-118-64.5T313-614q0-65 42-101t86-41v-84h80v84q50 8 82.5 36.5T651-650l-74 32q-12-32-34-48t-60-16q-44 0-67 19.5T393-614q0 33 30 52t104 40q69 20 104.5 63.5T667-358q0 71-42 108t-104 46v84h-80Z"/></svg>
|
After Width: | Height: | Size: 408 B |
1
frontend/src/assets/svg/dots.svg
Normal file
1
frontend/src/assets/svg/dots.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"/></svg>
|
After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 276 B |
1
frontend/src/assets/svg/play.svg
Normal file
1
frontend/src/assets/svg/play.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M320-200v-560l440 280-440 280Zm80-280Zm0 134 210-134-210-134v268Z"/></svg>
|
After Width: | Height: | Size: 171 B |
@ -1,4 +1,4 @@
|
||||
import './assets/main.css'
|
||||
import './assets/css/main.css'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
|
@ -1,5 +1,7 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import TrackerView from '../views/TrackerView.vue'
|
||||
import SignupView from '../views/SignupView.vue'
|
||||
import LoginView from '../views/LoginView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
@ -7,7 +9,24 @@ const router = createRouter({
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView
|
||||
//component: HomeView
|
||||
redirect: '/tracker'
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: LoginView
|
||||
},
|
||||
{
|
||||
path: '/signup',
|
||||
name: 'signup',
|
||||
component: SignupView
|
||||
},
|
||||
{
|
||||
path: '/tracker',
|
||||
name: 'tracker',
|
||||
component: TrackerView,
|
||||
alias: '/'
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
|
@ -1,7 +0,0 @@
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
</main>
|
||||
</template>
|
15
frontend/src/views/LoginView.vue
Normal file
15
frontend/src/views/LoginView.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<form>
|
||||
<input type="email" placeholder="Email">
|
||||
<input type="password" placeholder="Password">
|
||||
<button>Log in</button>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
3
frontend/src/views/SignupView.vue
Normal file
3
frontend/src/views/SignupView.vue
Normal file
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<b>signup</b>
|
||||
</template>
|
135
frontend/src/views/TrackerView.vue
Normal file
135
frontend/src/views/TrackerView.vue
Normal file
@ -0,0 +1,135 @@
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<div class="task-new-wrapper">
|
||||
<div class="task">
|
||||
<input type="text" class="title" placeholder="What are you working on?" value="Making frontend">
|
||||
<a href="#">+ Project</a>
|
||||
</div>
|
||||
<div class="task">
|
||||
<img src="/src/assets/svg/dollar.svg" alt="">
|
||||
<div>
|
||||
<input type="time" value="00:00">
|
||||
<button>Start</button>
|
||||
<img src="/src/assets/svg/dots.svg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="task-day-wrapper">
|
||||
<div class="header">
|
||||
<div class="left">
|
||||
<p>Wed, Dec 13</p>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>Total: 1:45:21</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="task-wrapper">
|
||||
<div class="task">
|
||||
<span>
|
||||
<input type="text" class="title" placeholder="What are you working on?" value="Making frontend">
|
||||
</span>
|
||||
<span>
|
||||
<p>TiM</p>
|
||||
<p>Filip Rojek</p>
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/dollar.svg" alt="">
|
||||
</span>
|
||||
<span>
|
||||
<input type="time" value="00:00">
|
||||
<p>-</p>
|
||||
<input type="time" value="01:45">
|
||||
</span>
|
||||
<span>
|
||||
<input type="time" value="01:45">
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/play.svg" alt="">
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/dots.svg" alt="">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="task-day-wrapper">
|
||||
<div class="header">
|
||||
<div class="left">
|
||||
<p>Wed, Dec 13</p>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>Total: 1:45:21</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="task-wrapper">
|
||||
<div class="task">
|
||||
<span>
|
||||
<input type="text" class="title" placeholder="What are you working on?" value="Making frontend">
|
||||
</span>
|
||||
<span>
|
||||
<p>TiM</p>
|
||||
<p>Filip Rojek</p>
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/dollar.svg" alt="">
|
||||
</span>
|
||||
<span>
|
||||
<input type="time" value="00:00">
|
||||
<p>-</p>
|
||||
<input type="time" value="01:45">
|
||||
</span>
|
||||
<span>
|
||||
<input type="time" value="01:45">
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/play.svg" alt="">
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/dots.svg" alt="">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="task-day-wrapper">
|
||||
<div class="header">
|
||||
<div class="left">
|
||||
<p>Wed, Dec 13</p>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>Total: 1:45:21</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="task-wrapper">
|
||||
<div class="task">
|
||||
<span>
|
||||
<input type="text" class="title" placeholder="What are you working on?" value="Making frontend">
|
||||
</span>
|
||||
<span>
|
||||
<p>TiM</p>
|
||||
<p>Filip Rojek</p>
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/dollar.svg" alt="">
|
||||
</span>
|
||||
<span>
|
||||
<input type="time" value="00:00">
|
||||
<p>-</p>
|
||||
<input type="time" value="01:45">
|
||||
</span>
|
||||
<span>
|
||||
<input type="time" value="01:45">
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/play.svg" alt="">
|
||||
</span>
|
||||
<span>
|
||||
<img src="/src/assets/svg/dots.svg" alt="">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</template>
|
Loading…
Reference in New Issue
Block a user