-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
217 lines (211 loc) · 8.37 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
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
207
208
209
210
211
212
213
214
215
216
217
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>index</title>
<link rel="stylesheet" href="index.css" />
<script
src="https://kit.fontawesome.com/385c4188b4.js"
crossorigin="anonymous"
></script>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body
style="
background:
url(https://m.360buyimg.com/babel/jfs/t20271111/223831/30/43040/417113/6731c245F3fcf9342/62d66e572a22ec38.png)
center top / 1340px 318px no-repeat,
linear-gradient(to bottom, #ff4d55, #ff4c55 260px, white 696px);
"
>
<header>
<nav
class="flex justify-between bg-gray-50 py-2 text-[0.8rem] [padding-inline:calc((100%-min(100%,80rem))/2+6px)]"
>
<!-- <a>京东首页</a>-->
<div><a>广东</a></div>
<div class="flex justify-between gap-2 gap">
<div>
<a>你好,<span class="text-red-500">请登录</span> </a>
</div>
<div><a>免费注册</a></div>
<div><a>我的订单</a></div>
<div><a>我的京东</a></div>
<div><a>京东会员</a></div>
<div><a class="text-red-500">企业采购</a></div>
<div><a>客户服务</a></div>
<div><a>网站导航</a></div>
<div
class="relative "
onmouseenter="const elem=this.querySelector('div.absolute');
elem.classList.toggle('overflow-hidden')
elem.classList.add('!max-h-screen','!outline-1');"
onmouseleave="const elem=this.querySelector('div.absolute');
elem.classList.toggle('overflow-hidden')
elem.classList.remove('!max-h-screen','!outline-1');"
>
<a>手机京东 </a>
<div
class="absolute right-0 top-[calc(100%+8px)] z-[2] flex max-h-0 w-44 flex-col divide-y overflow-hidden bg-gray-50 shadow-2xl outline outline-0 outline-gray-400 transition-all [&>div>div>p:nth-of-type(2)]:text-red-500"
>
<svg
class="absolute right-4 top-[-10px] "
width="calc(17.3/2)"
viewBox="0 0 173 200"
xmlns="http://www.w3.org/2000/svg"
>
<!-- 这里的点需要根据你的实际尺寸计算 -->
<polygon
points="86.5,0 0,200 173,200"
fill="white"
stroke-width="10"
stroke="black"
/>
<!-- 如果你想底边是白色,可以尝试用两条线叠加或者分离绘制 -->
<!-- 例如在底部再画一条线 -->
<line
x1="0"
y1="200"
x2="173"
y2="200"
stroke="white"
stroke-width="10"
/>
</svg>
<div class="flex items-center justify-center gap-2 px-1 py-2">
<img src="images/jd_mobile.jpg" class="w-[40%]" />
<div>
<p>手机京东</p>
<p>新人专享大礼包</p>
<div class="flex gap-1">
<a
class="flex flex-col justify-center text-center text-xs leading-none"
href="https://itunes.apple.com/cn/app/id414245413"
target="_blank"
>
<i
class="fa-brands fa-apple fa-lg leading-none text-black"
></i>
iPhone</a
>
<a
class="flex flex-col justify-center text-center text-xs leading-none"
href="https://storage.jd.com/jdmobile/JDMALL-PC2.apk"
target="_blank"
>
<i
class="fa-brands fa-android fa-lg leading-none text-green-500"
></i>
Android</a
>
</div>
</div>
</div>
<div class="flex justify-center gap-2 px-1 py-2">
<img src="images/followJD.jpg.avif" class="w-[40%]" />
<div>
<p>关注京东JD.COM</p>
<p>天天抢红包</p>
</div>
</div>
<div class="flex items-center justify-center gap-2 px-1 py-2">
<img src="images/jd_finace.jpg" class="w-[40%]" />
<div>
<p>京东金融客户端</p>
<p>新人专享大礼包</p>
<div class="flex gap-1">
<a
class="flex flex-col justify-center text-center text-xs leading-none"
href="https://itunes.apple.com/cn/app/jing-dong-jin-rong-hui-li/id895682747?mt=8"
target="_blank"
>
<i
class="fa-brands fa-apple fa-lg leading-none text-black"
></i>
iPhone</a
>
<a
class="flex flex-col justify-center text-center text-xs leading-none"
href="https://download.jr.jd.com/downapp/jrapp_jr9631.apk"
target="_blank"
>
<i
class="fa-brands fa-android fa-lg leading-none text-green-500"
></i>
Android</a
>
</div>
</div>
</div>
<div class="flex items-center justify-center gap-2 px-1 py-2">
<img src="images/jd_health.avif" class="w-[40%]" />
<div>
<p>京东健康客户端</p>
<p>守护您的健康</p>
<div class="flex gap-1">
<a
class="flex flex-col justify-center text-center text-xs leading-none"
href="https://download.jr.jd.com/downapp/jrapp_jr9631.apk"
target="_blank"
>
<i
class="fa-brands fa-apple fa-lg leading-none text-black"
></i>
iPhone</a
>
<a
class="flex flex-col justify-center text-center text-xs leading-none"
href="https://hlc.m.jd.com/download/?downloadSource=jdh_JDcom"
target="_blank"
>
<i
class="fa-brands fa-android fa-lg leading-none text-green-500"
></i>
Android</a
>
</div>
</div>
</div>
<div class="flex justify-center gap-2 px-1 py-2">
<img src="images/jd_wechatApplet.avif" class="w-[40%]" />
<div>
<p>关注京东小程序</p>
<p>新人0.1元购</p>
</div>
</div>
<div class="flex justify-center gap-2 px-1 py-2">
<img src="images/jd_wechat.jpg" class="w-[40%]" />
<div>
<p>关注微信公众号</p>
<p>精彩活动先知道</p>
</div>
</div>
</div>
</div>
<div><a>网站无障碍</a></div>
</div>
</nav>
</header>
<main class="mx-auto max-w-7xl">
<section data-include="component/SearchArea.html"></section>
<section data-include="component/RecommendationArea.html"></section>
<section
data-include="component/Nav/Nav.html"
class="mx-auto mt-2 max-w-7xl"
></section>
<section class="" data-include="component/Goods/Goods.html"></section>
</main>
<!--<iframe id="about" src="about.html"></iframe>-->
<footer data-include="component/Footer.html"></footer>
</body>
<script src="script.js"></script>
</html>