mirror of
https://github.com/codingCoffee/cowin-monitor.git
synced 2025-12-12 11:47:01 +00:00
feat: add landing page
this is a partially working commit Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
9afcfa664f
commit
ee66773268
6 changed files with 49 additions and 14 deletions
|
|
@ -2,11 +2,13 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cowin:
|
frontend:
|
||||||
image: codingcoffee/cowin
|
image: node:15.14.0-alpine3.12
|
||||||
environment:
|
restart: unless-stopped
|
||||||
- DIST_CODE=395
|
volumes:
|
||||||
- TELEGRAM_BOT_TOKEN=ADD_TELEGRAM_BOT_TOKEN_HERE
|
- ./frontend:/code
|
||||||
- TELEGRAM_CHAT_ID=ADD_YOUR_TELEGRAM_ID_HERE
|
working_dir: /code
|
||||||
- SLEEP_TIME_SEC=60
|
entrypoint: sh entrypoint.sh
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
|
||||||
|
|
|
||||||
8
frontend/entrypoint.sh
Normal file
8
frontend/entrypoint.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Install dependencies"
|
||||||
|
npm i
|
||||||
|
|
||||||
|
echo "Starting server"
|
||||||
|
npm run serve
|
||||||
|
|
||||||
1
frontend/package-lock.json
generated
1
frontend/package-lock.json
generated
|
|
@ -5,6 +5,7 @@
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
|
"name": "frontend",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<div id="nav">
|
|
||||||
<router-link to="/">Home</router-link> |
|
|
||||||
<router-link to="/about">About</router-link>
|
|
||||||
</div>
|
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app {
|
#app {
|
||||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
|
||||||
|
"Microsoft YaHei", Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
1
frontend/src/assets/images/undraw_medicine_b1ol.svg
Normal file
1
frontend/src/assets/images/undraw_medicine_b1ol.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 45 KiB |
|
|
@ -1,7 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="home">
|
<div class="home">
|
||||||
<img alt="Vue logo" src="../assets/logo.png" />
|
<div></div>
|
||||||
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App" />
|
<div>
|
||||||
|
<img alt="Vue logo" src="../assets/images/undraw_medicine_b1ol.svg" />
|
||||||
|
</div>
|
||||||
|
<div class="details">
|
||||||
|
<h1>CoWIN Monitor</h1>
|
||||||
|
<h2>An app to monitor and notify you on vaccine availability</h2>
|
||||||
|
<br />
|
||||||
|
<el-button type="primary">Explore Now</el-button>
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
<div></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -16,3 +26,19 @@ import HelloWorld from "@/components/HelloWorld.vue"; // @ is an alias to /src
|
||||||
})
|
})
|
||||||
export default class Home extends Vue {}
|
export default class Home extends Vue {}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.home {
|
||||||
|
height: 70%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
|
background-color: #ffeed6;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 100px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue