Skip to content

Commit 3de4380

Browse files
Create index.html
1 parent a41172f commit 3de4380

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

index.html

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>My Gradio Chatbot</title>
7+
<style>
8+
/* Basic reset */
9+
* {
10+
box-sizing: border-box;
11+
margin: 0;
12+
padding: 0;
13+
}
14+
body {
15+
font-family: Arial, sans-serif;
16+
background: #f5f5f5;
17+
color: #333;
18+
display: flex;
19+
flex-direction: column;
20+
min-height: 100vh;
21+
}
22+
header, footer {
23+
background-color: #333;
24+
color: #fff;
25+
text-align: center;
26+
padding: 1em;
27+
}
28+
main {
29+
flex: 1;
30+
max-width: 960px;
31+
width: 90%;
32+
margin: 20px auto;
33+
}
34+
h1, h2 {
35+
margin-bottom: 0.5em;
36+
}
37+
/* Responsive iframe container */
38+
.iframe-container {
39+
position: relative;
40+
width: 100%;
41+
padding-bottom: 56.25%; /* 16:9 aspect ratio; adjust if needed */
42+
margin-top: 20px;
43+
border: 2px solid #ccc;
44+
border-radius: 8px;
45+
overflow: hidden;
46+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
47+
}
48+
.iframe-container iframe {
49+
position: absolute;
50+
top: 0;
51+
left: 0;
52+
width: 100%;
53+
height: 100%;
54+
border: none;
55+
}
56+
</style>
57+
</head>
58+
<body>
59+
<header>
60+
<h1>Welcome to My Chatbot Site</h1>
61+
</header>
62+
<main>
63+
<h2>Chat with our Bot</h2>
64+
<p>
65+
This chatbot is powered by a Gradio app hosted on Hugging Face Spaces.
66+
Interact with it below:
67+
</p>
68+
<div class="iframe-container">
69+
<!-- Replace the src below with the URL to your Gradio app -->
70+
<iframe src="https://hf.space/embed/your-username/your-space" title="Gradio Chatbot"></iframe>
71+
</div>
72+
</main>
73+
<footer>
74+
<p>&copy; 2025 Your Name. All rights reserved.</p>
75+
</footer>
76+
</body>
77+
</html>

0 commit comments

Comments
 (0)