forked from pranjaliaditi/Moodscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (117 loc) · 7.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<script type = "module" src ="/main.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="icon" href = "favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Merriweather&family=Sacramento&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>
<ul>
<li><a href="index.html" class = "active">Home</a></li>
<li><a href="motivation.html">Motivation</a></li>
<li><a href="journal.html">Journal</a></li>
<li><a href="chatbot.html">ChatBot</a></li>
<li><a href="about.html">About</a></li>
<li>
</ul>
</div>
<div style="background-color: #DBE2EF;margin: 0;">
<video autoplay muted loop class = "pfpmain">
<source src="home.mp4" type="video/mp4">
</video>
<h1 class = "ft">Prioritise Your Mental Health </h1>
<h2 class = "ftbody">Your mind is your biggest ally.</h2>
</div>
<div style="background-color: #3F72AF;">
<h1 class = "ft" style="font-family: 'Sacramento', cursive; color:#DBE2EF;">Moodscape</h1>
<h2 class = "ftbody" style="color: white;">Helping towards YOUR Mental Well-being :)</h2>
</div>
<div style="background-color: #DBE2EF;margin: 0;">
<h1 class = "ft" style="font-size: 60px;"> What do we offer? </h1>
</div>
<div class="grid-container">
<div class="grid-item"><img src = "https://img.freepik.com/free-vector/successful-business-man-holding-trophy_1150-35042.jpg?w=1060&t=st=1673696296~exp=1673696896~hmac=e2861b2c620832a46cd47a2676119ddede98f144250bead0bce2c7b5416b288f" class = "pfp"></div>
<div class="grid-item"><h3>If you are feeling down and want to get motivated, <br> you can click on Motivation button to find relevant resources for yourself. <br> We have curated some videos, blogs, music and other such options to cater to your needs. <br>We have something for everyone, here! </h3>
<a class="btn" href="motivation.html">Get Motivated!</a></div>
<div class="grid-item" style="padding-left: 40px; background-color: white;"><h3>Keep a track of your feelings. <br> Know how you have been feeling these days and be aware of your emotions. <br> Sometimes, even acknowledging your downs will lift you up.</h3> <br>
<br>
<div class="right">
<a class="btn" id='login'>Log in!</a>
</div>
</div>
<div class="grid-item" style="background-color: white;"><img src = "https://cdn.pixabay.com/photo/2017/05/09/13/33/laptop-2298286_960_720.png" style="height: 100%; width: 50%;"></div>
<div class="grid-item"><img src = "https://cdn.pixabay.com/photo/2020/12/16/04/15/girl-5835656_960_720.jpg" style="height: 80%; width: 80%;"></div>
<div class="grid-item" style="margin-left: 40px;"><h3>Write what is on your mind. Don't hold back. <br> Write daily for a better well-being. Don't keep your emotions pent up.</h3> <br>
<a class="btn" href="journal.html">Get your Digital Diary!</a> </div>
<div class="grid-item" style="padding-left: 40px; background-color: white;"><h3>Feeling like there is no one to talk to? <br> Don't worry because your AI friend is here. <br> Talk to our AI bot for a mind refresh!</h3> <br>
<a class="btn" href="chatbot.html">Chat!</a>
</div>
<div class="grid-item" style="background-color: white;"><img src = "https://cdn.pixabay.com/photo/2017/08/06/01/45/robot-2587571_960_720.jpg" style="height: 100%; width: 50%;"></div>
<div class="grid-item"><img src = "dropblue.png" class = "pfp"></div>
<div class="grid-item"><h1 class = "ft"> Thanks for visiting! </h1>
<h2 class = "ftbody">Remember... You are NOT alone.</h2></div>
</div>
<div style="background-color: #112D4E; margin-bottom: 0px;">
<h4>
Created with love by Team She_Tries.
<br>
<a href ="about.html">Know more about us.</a>
</h4></div>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.15.0/firebase-app.js";
import { getAuth, GoogleAuthProvider, signInWithPopup} from "https://www.gstatic.com/firebasejs/9.15.0/firebase-auth.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyBmnXM2jXry1hRfrGwLSglFpThQGZZNm8E",
authDomain: "ebuddy-c15f2.firebaseapp.com",
projectId: "ebuddy-c15f2",
storageBucket: "ebuddy-c15f2.appspot.com",
messagingSenderId: "242543592126",
appId: "1:242543592126:web:7be8ee814b989e524614ef",
measurementId: "G-JYQE43K8BK"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const provider = new GoogleAuthProvider(app)
login.addEventListener('click',(e)=>{
signInWithPopup(auth, provider)
.then((result) => {
// This gives you a Google Access Token. You can use it to access the Google API.
const credential = GoogleAuthProvider.credentialFromResult(result);
const token = credential.accessToken;
// The signed-in user info.
const user = result.user;
alert(user.displayName);
// ...
}).catch((error) => {
// Handle Errors here.
const errorCode = error.code;
const errorMessage = error.message;
// The email of the user's account used.
const email = error.customData.email;
// The AuthCredential type that was used.
const credential = GoogleAuthProvider.credentialFromError(error);
// ...
alert(errorMessage);
});
});
</script>
<!-- <audio controls autoplay>
<source src="horse.ogg" type="audio/ogg">
<source src="calm_music.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio> -->
</body>
</html>