bpandey23 commited on
Commit
9152fb1
·
verified ·
1 Parent(s): c08854c

Delete main.html

Browse files

due o error removing this

Files changed (1) hide show
  1. main.html +0 -108
main.html DELETED
@@ -1,108 +0,0 @@
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>Test's Personal Webpage</title>
7
- <style>
8
- /* Add your CSS styles here */
9
- body {
10
- font-family: Arial, sans-serif;
11
- background-color: #f0f0f0; /* Change to preferred background color */
12
- color: #333; /* Change to preferred text color */
13
- margin: 0;
14
- padding: 0;
15
- }
16
- header {
17
- background-color: #007bff; /* Change to preferred header color */
18
- color: #fff; /* Change to preferred header text color */
19
- padding: 20px;
20
- text-align: center;
21
- }
22
- .container {
23
- max-width: 800px;
24
- margin: 20px auto;
25
- padding: 0 20px;
26
- }
27
- h1, h2 {
28
- color: #333; /* Change to preferred heading text color */
29
- }
30
- p {
31
- line-height: 1.6;
32
- }
33
- #message-input {
34
- width: calc(100% - 20px);
35
- padding: 10px;
36
- margin: 10px 0;
37
- border: 1px solid #ccc;
38
- border-radius: 5px;
39
- }
40
- #send-button {
41
- padding: 10px 20px;
42
- background-color: #007bff;
43
- color: #fff;
44
- border: none;
45
- border-radius: 5px;
46
- cursor: pointer;
47
- }
48
- #send-button:hover {
49
- background-color: #0056b3;
50
- }
51
- </style>
52
- </head>
53
- <body>
54
- <header>
55
- <h1>Welcome to Test's Personal Webpage</h1>
56
- </header>
57
- <div class="container">
58
- <section>
59
- <h2>About Me</h2>
60
- <p>This is where you can write a brief bio or description of yourself. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sed lacus sed nisi vestibulum gravida vel nec odio. Integer tempus lorem ac nunc condimentum, vel condimentum nisi lobortis.</p>
61
- </section>
62
- <section>
63
- <h2>Projects</h2>
64
- <p>Here you can list any projects you've worked on or are currently working on. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sed lacus sed nisi vestibulum gravida vel nec odio.</p>
65
- </section>
66
- <section>
67
- <h2>Contact</h2>
68
- <input type="text" id="message-input" placeholder="Write your message here...">
69
- <button id="send-button">Send Message</button>
70
- </section>
71
- </div>
72
-
73
- <script>
74
- document.getElementById('send-button').addEventListener('click', function() {
75
- var message = document.getElementById('message-input').value;
76
- if (message.trim() !== '') {
77
- var requestBody = {
78
- prompt: message
79
- };
80
- fetch('https://bpandey23-bpandey23-llm.hf.space/bpandey23_llm', {
81
- method: 'POST',
82
- headers: {
83
- 'Content-Type': 'application/json',
84
- // Add any additional headers if needed
85
- },
86
- body: JSON.stringify(requestBody)
87
- })
88
- .then(response => {
89
- if (response.ok) {
90
- return response.json();
91
- } else {
92
- throw new Error('Failed to send message.');
93
- }
94
- })
95
- .then(data => {
96
- alert('Response: ' + JSON.stringify(data));
97
- })
98
- .catch(error => {
99
- console.error('Error:', error);
100
- alert(error.message);
101
- });
102
- } else {
103
- alert('Please enter a message before sending.');
104
- }
105
- });
106
- </script>
107
- </body>
108
- </html>