Update index.html
Browse files- index.html +146 -119
index.html
CHANGED
@@ -4,141 +4,168 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>NhatTran - Dashboard</title>
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
h1 {
|
20 |
-
font-size: 1.
|
21 |
-
margin: 10px 0;
|
22 |
-
text-align: center;
|
23 |
}
|
|
|
24 |
.clock-container {
|
25 |
-
|
26 |
-
text-align: center;
|
27 |
-
font-size: 0.4rem;
|
28 |
-
width: 100%;
|
29 |
-
max-width: 415px;
|
30 |
-
}
|
31 |
-
.clock-container a {
|
32 |
-
color: white;
|
33 |
-
text-decoration: none;
|
34 |
}
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
width: 100%;
|
40 |
-
max-width: 415px;
|
41 |
-
border-radius: 5px;
|
42 |
-
box-sizing: border-box;
|
43 |
}
|
|
|
44 |
.market-overview h2 {
|
45 |
-
font-size:
|
46 |
-
margin: 0 0 10px 0;
|
47 |
}
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
margin: 0 auto;
|
55 |
-
box-sizing: border-box;
|
56 |
-
}
|
57 |
-
.tab-content > div {
|
58 |
-
display: none;
|
59 |
-
}
|
60 |
-
.tab-content > div.active {
|
61 |
-
display: block;
|
62 |
-
}
|
63 |
-
.tab-content iframe,
|
64 |
-
.tab-content .tradingview-widget-container {
|
65 |
-
width: 100% !important;
|
66 |
-
max-width: 415px;
|
67 |
-
margin: 0 auto;
|
68 |
}
|
69 |
-
.tabs {
|
70 |
-
position: fixed;
|
71 |
-
bottom: 0;
|
72 |
-
width: 100%;
|
73 |
-
background-color: #1a1a1a;
|
74 |
-
display: flex;
|
75 |
-
flex-wrap: nowrap;
|
76 |
-
overflow-x: auto;
|
77 |
-
overflow-y: hidden;
|
78 |
-
white-space: nowrap;
|
79 |
-
padding: 10px 0;
|
80 |
-
border-top: 1px solid #333;
|
81 |
-
scrollbar-width: thin; /* Firefox */
|
82 |
-
scrollbar-color: #555 #1a1a1a; /* Firefox */
|
83 |
-
}
|
84 |
|
85 |
-
.
|
86 |
-
|
87 |
-
}
|
88 |
|
89 |
-
.tabs::-webkit-scrollbar-thumb {
|
90 |
-
background: #555;
|
91 |
-
border-radius: 3px;
|
92 |
-
}
|
93 |
.tabs button {
|
94 |
-
|
95 |
-
|
96 |
-
border: none;
|
97 |
-
padding: 4px 2px;
|
98 |
-
cursor: pointer;
|
99 |
-
font-size: 0.40rem;
|
100 |
-
flex: 0 0 auto;
|
101 |
-
margin: 0 5px;
|
102 |
-
white-space: nowrap;
|
103 |
}
|
104 |
-
|
105 |
-
|
106 |
-
font-
|
107 |
}
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
110 |
}
|
111 |
-
|
112 |
-
|
113 |
-
font-size: 0.6rem;
|
114 |
-
}
|
115 |
-
.clock-container {
|
116 |
-
font-size: 0.4rem;
|
117 |
-
}
|
118 |
-
.market-overview h2 {
|
119 |
-
font-size: 1rem;
|
120 |
-
}
|
121 |
-
.tabs button {
|
122 |
-
font-size: 0.4rem;
|
123 |
-
padding: 4px 4px;
|
124 |
-
}
|
125 |
-
.tab-content .tradingview-widget-container {
|
126 |
-
height: 365px !important; /* Điều chỉnh chiều cao chart để vừa màn hình */
|
127 |
-
}
|
128 |
}
|
129 |
-
|
130 |
-
@media (max-width: 768px) {
|
131 |
-
h1 { font-size: 1rem; }
|
132 |
-
.tabs button { font-size: 0.6rem; padding: 6px 4px; }
|
133 |
-
.market-overview h2 { font-size: 0.9rem; }
|
134 |
-
}
|
135 |
-
@media (min-width: 769px) {
|
136 |
-
.tab-content iframe,
|
137 |
-
.tab-content .tradingview-widget-container {
|
138 |
-
max-width: 100%;
|
139 |
}
|
140 |
-
}
|
141 |
-
|
142 |
</style>
|
143 |
</head>
|
144 |
<body>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>NhatTran - Dashboard</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
background-color: #0f0f0f;
|
10 |
+
color: white;
|
11 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
12 |
+
margin: 0;
|
13 |
+
padding: 0;
|
14 |
+
height: 100vh;
|
15 |
+
display: flex;
|
16 |
+
flex-direction: column;
|
17 |
+
overflow: hidden;
|
18 |
+
}
|
19 |
+
|
20 |
+
h1 {
|
21 |
+
font-size: 1.4rem;
|
22 |
+
margin: 12px 0;
|
23 |
+
text-align: center;
|
24 |
+
}
|
25 |
+
|
26 |
+
.clock-container {
|
27 |
+
margin: 2px auto;
|
28 |
+
text-align: center;
|
29 |
+
font-size: 1rem;
|
30 |
+
width: 100%;
|
31 |
+
max-width: 500px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.market-overview {
|
35 |
+
background-color: #1a1a1a;
|
36 |
+
padding: 10px;
|
37 |
+
margin: 5px auto;
|
38 |
+
width: 100%;
|
39 |
+
max-width: 500px;
|
40 |
+
border-radius: 8px;
|
41 |
+
box-sizing: border-box;
|
42 |
+
}
|
43 |
+
|
44 |
+
.market-overview h2 {
|
45 |
+
font-size: 1.1rem;
|
46 |
+
margin: 0 0 10px 0;
|
47 |
+
}
|
48 |
+
|
49 |
+
.tab-content {
|
50 |
+
flex: 1;
|
51 |
+
overflow-y: auto;
|
52 |
+
padding: 10px;
|
53 |
+
width: 100%;
|
54 |
+
max-width: 500px;
|
55 |
+
margin: 0 auto;
|
56 |
+
box-sizing: border-box;
|
57 |
+
}
|
58 |
+
|
59 |
+
.tab-content > div {
|
60 |
+
display: none;
|
61 |
+
}
|
62 |
+
|
63 |
+
.tab-content > div.active {
|
64 |
+
display: block;
|
65 |
+
}
|
66 |
+
|
67 |
+
.tab-content iframe,
|
68 |
+
.tab-content .tradingview-widget-container {
|
69 |
+
width: 100% !important;
|
70 |
+
height: auto;
|
71 |
+
min-height: 400px;
|
72 |
+
margin: 0 auto;
|
73 |
+
box-sizing: border-box;
|
74 |
+
}
|
75 |
+
|
76 |
+
.tabs {
|
77 |
+
position: fixed;
|
78 |
+
bottom: 0;
|
79 |
+
width: 100%;
|
80 |
+
background-color: #1a1a1a;
|
81 |
+
display: flex;
|
82 |
+
flex-wrap: nowrap;
|
83 |
+
overflow-x: auto;
|
84 |
+
padding: 10px 0;
|
85 |
+
border-top: 1px solid #333;
|
86 |
+
scrollbar-width: thin;
|
87 |
+
scrollbar-color: #555 #1a1a1a;
|
88 |
+
z-index: 999;
|
89 |
+
}
|
90 |
+
|
91 |
+
.tabs::-webkit-scrollbar {
|
92 |
+
height: 6px;
|
93 |
+
}
|
94 |
+
|
95 |
+
.tabs::-webkit-scrollbar-thumb {
|
96 |
+
background: #555;
|
97 |
+
border-radius: 3px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.tabs button {
|
101 |
+
background-color: transparent;
|
102 |
+
color: #ccc;
|
103 |
+
border: none;
|
104 |
+
padding: 6px 8px;
|
105 |
+
cursor: pointer;
|
106 |
+
font-size: 0.9rem;
|
107 |
+
flex: 0 0 auto;
|
108 |
+
margin: 0 5px;
|
109 |
+
white-space: nowrap;
|
110 |
+
}
|
111 |
+
|
112 |
+
.tabs button.active {
|
113 |
+
color: white;
|
114 |
+
font-weight: bold;
|
115 |
+
}
|
116 |
+
|
117 |
+
.tabs button:hover {
|
118 |
+
color: white;
|
119 |
+
}
|
120 |
+
|
121 |
+
/* Responsive iPhone */
|
122 |
+
@media (max-width: 430px) {
|
123 |
h1 {
|
124 |
+
font-size: 1.2rem;
|
|
|
|
|
125 |
}
|
126 |
+
|
127 |
.clock-container {
|
128 |
+
font-size: 0.9rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
+
|
131 |
+
.tabs button {
|
132 |
+
font-size: 0.8rem;
|
133 |
+
padding: 6px 4px;
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
+
|
136 |
.market-overview h2 {
|
137 |
+
font-size: 1rem;
|
|
|
138 |
}
|
139 |
+
}
|
140 |
+
|
141 |
+
/* Responsive iPad */
|
142 |
+
@media (min-width: 431px) and (max-width: 820px) {
|
143 |
+
h1 {
|
144 |
+
font-size: 1.6rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
+
.clock-container {
|
148 |
+
font-size: 1.2rem;
|
149 |
+
}
|
150 |
|
|
|
|
|
|
|
|
|
151 |
.tabs button {
|
152 |
+
font-size: 1rem;
|
153 |
+
padding: 8px 6px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
155 |
+
|
156 |
+
.market-overview h2 {
|
157 |
+
font-size: 1.2rem;
|
158 |
}
|
159 |
+
}
|
160 |
+
|
161 |
+
@media (min-width: 821px) {
|
162 |
+
h1 {
|
163 |
+
font-size: 2rem;
|
164 |
}
|
165 |
+
.tabs button {
|
166 |
+
font-size: 1.2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
}
|
|
|
|
|
169 |
</style>
|
170 |
</head>
|
171 |
<body>
|