-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathacc.html
More file actions
206 lines (179 loc) · 6.93 KB
/
acc.html
File metadata and controls
206 lines (179 loc) · 6.93 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!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>My account</title>
<script src="https://kit.fontawesome.com/24c494a6b6.js" crossorigin="anonymous"></script>
<style>
/* body {
font-family: "roboto";
letter-spacing: .8px;
background-color: #fff;
} */
a {
text-decoration: none;
color: rgb(157, 129, 129);
line-height: normal;
}
a:hover {
color: black;
}
ul {
list-style: none;
padding: 10px;
margin: auto;
font-size: 18px;
}
/*
button {
padding: 15px;
border-radius: 5px;
text-transform: uppercase;
border: 0;
color: #000;
cursor: pointer;
text-decoration: none;
margin: auto;
margin-top: 20px;
position: fixed;
} */
.bg-container {
display: flex;
gap: 50px;
margin: auto;
width: 80%;
height: auto;
}
.right {
width: 100%;
}
.left {
width: 30%;
}
.myacc .col {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.welcm {
background-color: rgb(222, 209, 209);
height: auto;
padding: 8px;
}
#hello{
font-size: 20px;
font-weight: 300;
text-align: center;
}
</style>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div id="navbar"></div>
<div id="page">
<div class="header"></div>
<div class="bg-container">
<div class="left">
<h2>My Account</h2>
<ul>
<li><a href="./acc.html">my overview</a></li>
<li><a href="./acc.html">my account information</a></li>
<li><a href="./acc.html">my address book</a></li>
<li><a href="#">my orders</a></li>
<li><a href="#">my gift certificates</a></li>
<li><a href="./wishlist.html">my wishlist</a></li>
</ul>
</div>
<div class="right">
<div class="myacc">
<div class="title">
<h2><strong>MY OVERVIEW</strong></h2>
</div>
<div class="welcm">
<p id="hello"></p>
<p>From your My Account Dashboard you have the ability to view a snapshot of your recent account
activity and update your account information. Select a link below to view or edit
information.</p>
</div>
<div class="info">
<h2>my account information</h2>
<div class="col">
<div class="col1">
<br>
Name: <span id="name"></span> <br><br>
Email: <span id="email"> </span>
</div>
<div class="col2">
<p>
<i class="fa fa-angle-right" aria-hidden="true"></i>
<a href="#">Edit</a>
</p>
<p>
<i class="fa fa-angle-right" aria-hidden="true"></i>
<a href="#">Change Password</a>
</p>
</div>
</div>
</div>
<hr>
<div class="addre">
<h2>my address book</h2>
<div class="col">
<div class="col1">
<p><strong>Default Billing Address</strong></p>
<p>
You have not set a default billing address.
</p>
<p>
<i class="fa fa-angle-right" aria-hidden="true"></i>
<a href="#">change</a>
</p>
</div>
<div class="col2">
<p><strong>Default Shipping Address</strong></p>
<p>
You have not set a default shipping address
</p>
<p> <i class="fa fa-angle-right" aria-hidden="true"></i>
<a href="#">change</a>
</p>
</div>
</div>
</div>
</div>
<hr>
<div class="myacc">
<h2>Easy-access Login</h2>
<form action="#">
<div><input type="checkbox" title="
Do not permit automatic identification prior to logging in!" value="0" id="checkbox">
Do not permit automatic identification prior to logging in!
<!-- <i class="fa fa-circle-thin" aria-hidden="true"></i> -->
<!-- <button type="submit" class="btn" title="Save">SAVE</button> -->
</div>
<div>
<button type="submit" class="btn" title="Save">SAVE</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="footer"></div>
</body>
</html>
<script type="module">
import navbar from "./navbar.js"
document.getElementById("navbar").innerHTML = navbar();
import footer from "./footer.js"
document.getElementById("footer").innerHTML = footer()
let data = JSON.parse(localStorage.getItem("userdetails"))
// let data = {
// name:"Bhargavi chella",
// email:"banu@gmail.com"
// }
document.getElementById("name").innerText= data.firstName+" "+ data.lastName
document.getElementById("email").innerText= data.email
document.getElementById("hello").innerText = ` Hello, ${data.firstName} ${data.lastName} `
</script>