feat: add landing page

this is a partially working commit

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2021-05-04 21:24:31 +05:30
parent 9afcfa664f
commit ee66773268
Signed by: codingcoffee
GPG key ID: F7D58AAC5DACF8D3
6 changed files with 49 additions and 14 deletions

View file

@ -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
View file

@ -0,0 +1,8 @@
#!/bin/sh
echo "Install dependencies"
npm i
echo "Starting server"
npm run serve

View file

@ -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",

View file

@ -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;

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 45 KiB

View file

@ -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>