Jayaviji commited on
Commit
e5caa8e
Β·
verified Β·
1 Parent(s): 08096a3

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +171 -19
index.html CHANGED
@@ -1,19 +1,171 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
7
+ <title>AI Advertisement Generator</title>
8
+
9
+ <style>
10
+ * {
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ margin: 0;
16
+ font-family: Arial, sans-serif;
17
+ background: #eef3ff;
18
+ color: #222;
19
+ }
20
+
21
+ .container {
22
+ width: 90%;
23
+ max-width: 650px;
24
+ margin: 50px auto;
25
+ padding: 35px;
26
+ background: white;
27
+ border-radius: 25px;
28
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
29
+ }
30
+
31
+ .icon {
32
+ text-align: center;
33
+ font-size: 55px;
34
+ }
35
+
36
+ h1 {
37
+ text-align: center;
38
+ color: #4b45d9;
39
+ margin-bottom: 10px;
40
+ }
41
+
42
+ .subtitle {
43
+ text-align: center;
44
+ color: #666;
45
+ margin-bottom: 30px;
46
+ }
47
+
48
+ label {
49
+ display: block;
50
+ font-weight: bold;
51
+ font-size: 18px;
52
+ margin-bottom: 8px;
53
+ }
54
+
55
+ input {
56
+ width: 100%;
57
+ padding: 16px;
58
+ border: 1px solid #ccc;
59
+ border-radius: 12px;
60
+ font-size: 16px;
61
+ outline: none;
62
+ }
63
+
64
+ input:focus {
65
+ border-color: #4b45d9;
66
+ }
67
+
68
+ button {
69
+ width: 100%;
70
+ margin-top: 22px;
71
+ padding: 16px;
72
+ border: none;
73
+ border-radius: 12px;
74
+ background: #4b45d9;
75
+ color: white;
76
+ font-size: 18px;
77
+ font-weight: bold;
78
+ cursor: pointer;
79
+ }
80
+
81
+ button:hover {
82
+ background: #3731b8;
83
+ }
84
+
85
+ #result {
86
+ display: none;
87
+ margin-top: 30px;
88
+ padding: 25px;
89
+ background: #f4f2ff;
90
+ border-radius: 18px;
91
+ border-left: 5px solid #4b45d9;
92
+ }
93
+
94
+ #result h2 {
95
+ color: #4b45d9;
96
+ margin-top: 0;
97
+ }
98
+
99
+ #adText {
100
+ font-size: 17px;
101
+ line-height: 1.7;
102
+ }
103
+ </style>
104
+ </head>
105
+
106
+ <body>
107
+
108
+ <div class="container">
109
+
110
+ <div class="icon">πŸ“’</div>
111
+
112
+ <h1>AI Advertisement Generator</h1>
113
+
114
+ <p class="subtitle">
115
+ Create a catchy advertisement from any topic
116
+ </p>
117
+
118
+ <label for="topic">Enter Topic</label>
119
+
120
+ <input
121
+ type="text"
122
+ id="topic"
123
+ placeholder="Example: Online Coding Course"
124
+ >
125
+
126
+ <button onclick="generateAd()">
127
+ Generate Advertisement πŸš€
128
+ </button>
129
+
130
+ <div id="result">
131
+
132
+ <h2 id="adTitle"></h2>
133
+
134
+ <p id="adText"></p>
135
+
136
+ </div>
137
+
138
+ </div>
139
+
140
+ <script>
141
+ function generateAd() {
142
+
143
+ const topic = document
144
+ .getElementById("topic")
145
+ .value
146
+ .trim();
147
+
148
+ if (topic === "") {
149
+ alert("Please enter a topic!");
150
+ return;
151
+ }
152
+
153
+ const title =
154
+ "πŸ”₯ Discover " + topic + "!";
155
+
156
+ const text =
157
+ "Looking for an amazing " + topic + "? " +
158
+ "Get the best experience and discover exciting benefits. " +
159
+ "Don't miss this great opportunity! " +
160
+ "Start your journey today and make the most of it. πŸš€";
161
+
162
+ document.getElementById("adTitle").textContent = title;
163
+
164
+ document.getElementById("adText").textContent = text;
165
+
166
+ document.getElementById("result").style.display = "block";
167
+ }
168
+ </script>
169
+
170
+ </body>
171
+ </html>