ngoctuanai commited on
Commit
0f29384
·
verified ·
1 Parent(s): 12c5f04

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +54 -88
index.html CHANGED
@@ -1,94 +1,60 @@
1
- <!DOCTYPE html>
2
- <html>
 
 
 
 
 
 
3
 
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1">
7
- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet">
8
- <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
9
- <title>Welcome to My AI Projects</title>
10
- <style>
11
- html, body {
12
- height: 100%;
13
- margin: 0;
14
- padding: 0;
15
- font-family: 'Roboto', sans-serif;
16
- background-color: #f0f0f0;
17
- }
18
- .header {
19
- background-color: #007bff;
20
- color: white;
21
- padding: 20px;
22
- text-align: center;
23
- border-bottom: 5px solid #0056b3;
24
- }
25
- .header a {
26
- color: #ff9900;
27
- }
28
- .container {
29
- max-width: 1100px;
30
- margin: auto;
31
- padding: 0 15px;
32
- }
33
- .tab-content {
34
- height: calc(100vh - 220px); /* trừ header + nav + margin */
35
- overflow: hidden;
36
- }
37
- .tab-pane iframe {
38
- width: 100%;
39
- height: 100%;
40
- border: none;
41
- }
42
- footer {
43
- background-color: #343a40;
44
- color: #fff;
45
- text-align: center;
46
- padding: 10px;
47
- position: fixed;
48
- left: 0;
49
- bottom: 0;
50
- width: 100%;
51
- font-size: 1em;
52
- opacity: 0.6;
53
- transition: opacity 0.5s ease-in-out;
54
- }
55
- footer:hover {
56
- opacity: 1;
57
- }
58
- </style>
59
- </head>
60
 
61
- <body>
62
- <header class="header">
63
- <h1 class="title">Welcome to My AI Projects <span class="subtitle">(Stay tuned for exciting updates!)</span></h1>
64
- <p>This is an introductory website, aimed at helping more people use AI. If there is any website that is not working, please <a href="https://huggingface.co/spaces/ngoctuanai/project/discussions" target="_blank">contact me</a>.</p>
65
- </header>
66
 
67
- <div class="container">
68
- <ul class="nav nav-tabs" id="myTab" role="tablist">
69
- <li class="nav-item">
70
- <a class="nav-link active" id="ai-chat-tab" data-toggle="tab" href="#ai-chat" role="tab" aria-controls="ai-chat" aria-selected="true">AI Chat</a>
71
- </li>
72
- <li class="nav-item">
73
- <a class="nav-link" id="ai-drawing-tab" data-toggle="tab" href="#ai-drawing" role="tab" aria-controls="ai-drawing" aria-selected="false">AI Drawing (Coming Soon)</a>
74
- </li>
75
- </ul>
76
- <div class="tab-content" id="myTabContent">
77
- <div class="tab-pane fade show active" id="ai-chat" role="tabpanel" aria-labelledby="ai-chat-tab">
78
- <iframe src="ai-chat.html"></iframe>
79
- </div>
80
- <div class="tab-pane fade" id="ai-drawing" role="tabpanel" aria-labelledby="ai-drawing-tab">
81
- <iframe src="ai-drawing.html"></iframe>
82
- </div>
83
- </div>
84
- </div>
85
 
86
- <footer>
87
- * 2024 ngoctuanai *
88
- </footer>
89
 
90
- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
91
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
92
- </body>
93
 
94
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+ html, body {
3
+ height: 100%;
4
+ margin: 0;
5
+ padding: 0;
6
+ font-family: 'Roboto', sans-serif;
7
+ background-color: #f0f0f0;
8
+ }
9
 
10
+ .header {
11
+ background-color: #007bff;
12
+ color: white;
13
+ padding: 20px;
14
+ text-align: center;
15
+ border-bottom: 5px solid #0056b3;
16
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
+ .header a {
19
+ color: #ff9900;
20
+ }
 
 
21
 
22
+ .container {
23
+ height: calc(100vh - 160px); /* 100% chiều cao - header + tab + footer */
24
+ max-width: 100%;
25
+ padding: 0;
26
+ margin: 0 auto;
27
+ }
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
+ .tab-content {
30
+ height: 100%;
31
+ }
32
 
33
+ .tab-pane {
34
+ height: 100%;
35
+ }
36
 
37
+ .tab-pane iframe {
38
+ width: 100%;
39
+ height: 100%;
40
+ border: none;
41
+ }
42
+
43
+ footer {
44
+ background-color: #343a40;
45
+ color: #fff;
46
+ text-align: center;
47
+ padding: 10px;
48
+ position: fixed;
49
+ left: 0;
50
+ bottom: 0;
51
+ width: 100%;
52
+ font-size: 1em;
53
+ opacity: 0.6;
54
+ transition: opacity 0.5s ease-in-out;
55
+ }
56
+
57
+ footer:hover {
58
+ opacity: 1;
59
+ }
60
+ </style>