arshtech commited on
Commit
26d1e95
·
verified ·
1 Parent(s): 6d879a1

Update templates/home.html

Browse files
Files changed (1) hide show
  1. templates/home.html +62 -13
templates/home.html CHANGED
@@ -1,18 +1,67 @@
1
  <!DOCTYPE html>
2
- <html>
3
  <head>
4
- <title>Web Scraper</title>
 
 
 
5
  </head>
6
- <body>
7
- <h1>Enter URL to Scrape</h1>
8
- <form method="POST" action="/scrap">
9
- <input type="text" name="url" placeholder="Enter website URL" required><br><br>
10
- <select name="Headers">
11
- <option value="h1">H1</option>
12
- <option value="h2">H2</option>
13
- <option value="h3">H3</option>
14
- </select><br><br>
15
- <button type="submit">Scrape</button>
16
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  </body>
18
  </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
+ <title>Web Scraping Project</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
  </head>
9
+ <body class="bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900 min-h-screen flex items-center justify-center font-[Poppins] text-white">
10
+
11
+ <div class="w-full max-w-xl bg-gray-800/70 backdrop-blur-md rounded-2xl shadow-2xl p-8 border border-gray-700">
12
+ <!-- Title -->
13
+ <h1 class="text-center text-3xl font-bold text-cyan-400 mb-8 tracking-wide">
14
+ Web Scraping Project
15
+ </h1>
16
+
17
+ <!-- Form -->
18
+ <form method="POST" action="/scrap" class="space-y-6">
19
+ <!-- URL input -->
20
+ <div>
21
+ <label for="url" class="block text-lg mb-2 font-semibold text-gray-300">Enter Website URL</label>
22
+ <input
23
+ type="text"
24
+ id="url"
25
+ name="url"
26
+ placeholder="https://example.com"
27
+ required
28
+ class="w-full px-4 py-3 rounded-lg bg-gray-900 text-white border border-gray-700 focus:outline-none focus:ring-2 focus:ring-cyan-400 placeholder-gray-500"
29
+ >
30
+ </div>
31
+
32
+ <!-- Dropdown and Button Row -->
33
+ <div class="flex flex-col sm:flex-row items-center justify-between gap-4">
34
+ <div class="w-full sm:w-1/2">
35
+ <label for="Headers" class="block text-lg mb-2 font-semibold text-gray-300">Select Header Type</label>
36
+ <select
37
+ id="Headers"
38
+ name="Headers"
39
+ class="w-full px-4 py-3 rounded-lg bg-gray-900 border border-gray-700 text-gray-200 focus:outline-none focus:ring-2 focus:ring-cyan-400"
40
+ >
41
+ <option value="h1">H1</option>
42
+ <option value="h2">H2</option>
43
+ <option value="h3">H3</option>
44
+ </select>
45
+ </div>
46
+
47
+ <!-- Submit Button -->
48
+ <div class="w-full sm:w-1/3 mt-6 sm:mt-8 text-center">
49
+ <button
50
+ type="submit"
51
+ class="w-full py-3 px-6 bg-cyan-500 hover:bg-cyan-600 text-white font-semibold rounded-lg shadow-lg transition-all duration-300 ease-in-out"
52
+ >
53
+ Next →
54
+ </button>
55
+ </div>
56
+ </div>
57
+ </form>
58
+ </div>
59
+
60
+ <!-- Subtle background animation -->
61
+ <div class="absolute top-0 left-0 w-full h-full -z-10">
62
+ <div class="absolute w-72 h-72 bg-cyan-500/30 rounded-full blur-3xl top-20 left-10 animate-pulse"></div>
63
+ <div class="absolute w-96 h-96 bg-blue-600/20 rounded-full blur-3xl bottom-10 right-10 animate-ping"></div>
64
+ </div>
65
+
66
  </body>
67
  </html>