Skip to content

Commit 14b2d54

Browse files
committed
small ui upgrades
1 parent 39b4330 commit 14b2d54

File tree

7 files changed

+761
-22
lines changed

7 files changed

+761
-22
lines changed

components.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare module 'vue' {
1414
ElMenu: typeof import('element-plus/es')['ElMenu']
1515
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
1616
ElRow: typeof import('element-plus/es')['ElRow']
17+
ElSpinner: typeof import('element-plus/es')['ElSpinner']
1718
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
1819
ElTable: typeof import('element-plus/es')['ElTable']
1920
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']

dev-dist/sw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ define(['./workbox-6e90ec2f'], (function (workbox) { 'use strict';
8282
*/
8383
workbox.precacheAndRoute([{
8484
"url": "index.html",
85-
"revision": "0.bh272g909ug"
85+
"revision": "0.p74ji6d37co"
8686
}], {});
8787
workbox.cleanupOutdatedCaches();
8888
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

public/bg.svg

+712
Loading

public/home.svg

+1
Loading

src/App.vue

+7
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,11 @@ import FooterMenu from './components/FooterMenu.vue';
4343
*::-webkit-scrollbar-thumb:hover {
4444
background: var(--el-color-primary);
4545
}
46+
47+
html {
48+
background-repeat: no-repeat;
49+
background-size: cover;
50+
background-attachment: fixed;
51+
background-image: url('bg.svg');
52+
}
4653
</style>

src/components/FooterMenu.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
2-
<footer class="footer items-center p-4 bg-neutral text-neutral-content">
2+
<footer class="footer items-center p-4 bg-black text-neutral-content dark:bg-neutral">
33
<div class="items-center grid-flow-col">
4-
<p>Amar Progress | Copyright © 2023 - All right reserved</p>
4+
<p>Amar Progress | Copyright © 2024 - All right reserved</p>
55
</div>
66
<div class="grid-flow-col gap-4 md:place-self-center md:justify-self-end">
77
<a href="https://www.twitter.com/xrayian" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24"

src/views/HomeView.vue

+37-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { computed } from 'vue';
33
import { useStore } from 'vuex';
4+
import LoginView from './auth/LoginView.vue';
45
const store = useStore();
56
const authReady = computed(() => {
67
return store.state.isAuthReady;
@@ -11,25 +12,42 @@ const authReady = computed(() => {
1112
<template>
1213
<div class="container mx-auto mb-24 mt-6 lg:my-14">
1314
<el-main>
14-
<h1 class="text-4xl mb-8">Welcome to Amar Progress!</h1>
15-
16-
<p class="text-xl">
17-
This is a progress tracking app for students. Simply select the chapters you want to complete and this will show
18-
you how much you completed in each subject. Made for HSC 2022-23 Science Students.
19-
</p>
20-
21-
22-
<template v-if=authReady>
23-
<p class="text-xl mt-4" v-if="store.state.user == null">
24-
You will need to sign up in order to use this site.
25-
</p>
26-
<router-link v-if="store.state.user != null" :to="{ name: 'dashboard' }" class="btn btn-primary mt-8">
27-
Visit Dashboard
28-
</router-link>
29-
<router-link v-else :to="{ name: 'login' }" class="btn btn-primary mt-8">
30-
Get Started
31-
</router-link>
32-
</template>
15+
<div class="flex flex-col md:grid md:grid-cols-5 gap-2 grid-flow-col items-center">
16+
<div class="md:col-span-2 col-span-1">
17+
<h1 class="text-4xl mb-8">Welcome to Amar Progress!</h1>
18+
19+
<p class="text-xl">
20+
This is a progress tracking app for students. Simply select the chapters you want to complete and this will
21+
show
22+
you how much you completed in each subject. Made for HSC 2022-23 Science Students.
23+
</p>
24+
25+
26+
<template v-if=authReady>
27+
<p class="text-xl mt-4" v-if="store.state.user == null">
28+
You will need to sign up in order to use this site.
29+
</p>
30+
<router-link v-if="store.state.user != null" :to="{ name: 'dashboard' }" class="btn btn-primary mt-8 btn-block md:btn-wide">
31+
Visit Dashboard
32+
</router-link>
33+
<router-link v-else :to="{ name: 'login' }" class="btn btn-primary mt-8 btn-block md:btn-wide">
34+
Get Started
35+
</router-link>
36+
</template>
37+
</div>
38+
<div class="md:col-span-3 col-span-1 mt-3 md:mt-1">
39+
<template v-if="authReady && store.state.user == null">
40+
<login-view />
41+
</template>
42+
<template v-else>
43+
<div class="flex justify-center items-center">
44+
<img src="/home.svg" class="md:w-[28vw] w-96" alt="">
45+
</div>
46+
</template>
47+
48+
</div>
49+
</div>
50+
3351

3452
</el-main>
3553

0 commit comments

Comments
 (0)