-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (132 loc) · 5.16 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
<!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">
<meta name="google-signin-client_id" content="841935496467-rhevq3h05h19irc0th40ickdepnt0pdv.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-auth.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
<title>MIDAS HOME</title>
</head>
<body>
<div id="home" class="section">
<nav>
<div class="navbar">
<div class="logo">
<h1>Midas IIITD</h1>
</div>
<a href="#">Home</a>
<a href="#">Pages</a>
\<a href="#">Services</a>
<a href="#">Blog</a>
<a href="#">Contacts</a>
</div>
<div class="search">
<img src="loupe.svg" alt="">
</div>
</nav>
<div class="team">
<img src="image_1.jpg" alt="">
</div>
<div class="gradient">
<img src="Untitled_design-removebg.png" alt="">
<div class="content">
<h1>Web App Task</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing </p>
</div>
</div>
<div class="last">
<a href="#form">Login | Sign up</a>
<div class="yt">
<img src="play-button.svg" alt="">
<p>Go To Youtube</p>
</div>
</div>
</div>
<div class="curve"><img src="bgformidasedit.png" alt=""></div>
<div id="form" class="page2">
<div id="login" class="form-box">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<div class="button-box">
<div id="btn"></div>
<button type="button" class="toggle-btn" onClick="logIn()">Log in</button>
<button type="button" class="toggle-btn" onClick="signUp()">Sign up</button>
</div>
<form id="login-form" action="" method="">
<input id="email" class="input-field" name="name" type="text" placeholder="Email" required>
<input id="password" class="input-field" name="password" type="password" placeholder="Password" required>
<input onclick="login()" class="submit-btn" type="submit" value="Login">
</form>
<form id="signup-form" action="" method="">
<input id="email" class="input-field" name="email" type="text" placeholder="Email" required>
<input id="password" class="input-field" name="password" type="password" placeholder="Password" required>
<input class="input-field" name="password" type="password" placeholder="Confirm Password" required>
<input onclick="signup()" class="submit-btn" type="submit" value="Sign up">
</form>
</div>
</div>
<div class="page3">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="data">
<p>Profile Details</p>
<img id="pic" class="img-circle">
<p>Email ID</p>
<p id="emailid" class="alert alert-danger"></p>
<P id="greet"></P>
<a href="#" onclick="signOut();">Sign out</a>
</div>
</div>
</div>
<div class="page4">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="data1">
<p id="emailadd"></p>
<p id="greet1"></p>
<a href="#">Log Out</a>
</div>
</div>
<script>
var x = document.getElementById("login-form");
var y = document.getElementById("signup-form");
var z = document.getElementById("btn");
function signUp()
{
x.style.left = "-400px";
y.style.left = "50px";
z.style.left = "110px";
}
function logIn()
{
x.style.left = "50px";
y.style.left = "450px";
z.style.left = "0px";
}
</script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyC1MISSARfoOOsihIp0b07tl82Okuw_0DI",
authDomain: "midaslab-63e17.firebaseapp.com",
projectId: "midaslab-63e17",
storageBucket: "midaslab-63e17.appspot.com",
messagingSenderId: "16886314960",
appId: "1:16886314960:web:552c4f5eb97807d25f6bd5"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src="form.js"></script>
</body>
</html>