WebashalarForML commited on
Commit
09388a6
1 Parent(s): 66d51b6

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +152 -104
templates/index.html CHANGED
@@ -9,114 +9,162 @@
9
  rel="stylesheet"
10
  />
11
  <style>
12
- body {
13
- background-color: #1c1c1e;
14
- font-family: "Poppins", sans-serif;
15
- color: #f5f5f7;
16
- }
17
- h1 {
18
- color: #e5e5e7;
19
- text-align: center;
20
- margin-bottom: 20px;
21
- }
22
- .container {
23
- margin-top: 50px;
24
- }
25
- .file-upload-section {
26
- background-color: #2c2c2e;
27
- padding: 30px;
28
- border-radius: 15px;
29
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
30
- text-align: center;
31
- }
32
- .file-upload-section input[type="file"] {
33
- margin: 20px 0;
34
- }
35
- .file-upload-section input[type="submit"] {
36
- background-color: #ff9f0a;
37
- color: white;
38
- border: none;
39
- padding: 10px 20px;
40
- border-radius: 5px;
41
- transition: background-color 0.3s ease;
42
- }
43
- .file-upload-section input[type="submit"]:hover {
44
- background-color: #e68a00;
45
- }
46
- .file-actions a {
47
- margin: 0 10px;
48
- text-decoration: none;
49
- color: #ff9f0a;
50
- }
51
- .file-actions a:hover {
52
- color: #e68a00;
53
- }
54
- .flash-message {
55
- margin-bottom: 20px;
56
- padding: 15px;
57
- border-radius: 5px;
58
- color: #333;
59
- }
60
- .alert {
61
- text-align: center;
62
- position: absolute;
63
- top: 0;
64
- right: 15%;
65
- }
66
- /* Loader styles */
67
- .loader {
68
- border: 8px solid #f3f3f3;
69
- border-top: 8px solid #ff9f0a;
70
- border-radius: 50%;
71
- width: 60px;
72
- height: 60px;
73
- animation: spin 2s linear infinite;
74
- margin: 20px auto;
75
- display: none;
76
- }
77
- @keyframes spin {
78
- 0% { transform: rotate(0deg); }
79
- 100% { transform: rotate(360deg); }
80
- }
81
-
82
- /* Tabs styles */
83
- .tab {
84
- position: absolute;
85
- top: 10px;
86
- left: 10px;
87
- }
88
-
89
- .tab button {
90
- background-color: #ee4410;
91
- border: none;
92
- padding: 10px;
93
- margin: 0 5px;
94
- color: #f5f5f7;
95
- cursor: pointer;
96
- border-radius: 5px;
97
- transition: background-color 0.3s ease;
98
- }
99
-
100
- .tab button:hover {
101
- background-color: #444;
102
- }
103
-
104
- .tab button:active,
105
- .tab button.active {
106
- background-color: #444;
107
- }
108
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  </style>
110
  </head>
111
  <body>
112
- <div class="container">
113
- <h1>Resume Data Extractor</h1>
114
-
115
- <div class="tab">
116
- <button class="tablinks" onclick="openLink('https://webashalarforml-imagedataextractor2.hf.space/')">Image Data Extractor</button>
117
- <button class="tablinks active" onclick="openLink('https://webashalarforml-resumeextractor2.hf.space/')">Resume Data Extractor</button>
118
  </div>
119
-
 
 
120
  <div class="file-upload-section">
121
 
122
  <form
 
9
  rel="stylesheet"
10
  />
11
  <style>
12
+ body {
13
+ background-color: #1c1c1e;
14
+ font-family: "Poppins", sans-serif;
15
+ color: #f5f5f7;
16
+ margin: 0;
17
+ }
18
+
19
+ h1 {
20
+ color: #e5e5e7;
21
+ text-align: center;
22
+ margin-bottom: 20px;
23
+ }
24
+
25
+ .container {
26
+ margin-top: 70px;
27
+ }
28
+
29
+ .file-upload-section {
30
+ background-color: #2c2c2e;
31
+ padding: 30px;
32
+ border-radius: 15px;
33
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
34
+ text-align: center;
35
+ }
36
+
37
+ .file-upload-section input[type="file"] {
38
+ margin: 20px 0;
39
+ }
40
+
41
+ .file-upload-section input[type="submit"] {
42
+ background-color: #e68a00;
43
+ color: white;
44
+ border: none;
45
+ padding: 10px 20px;
46
+ border-radius: 5px;
47
+ transition: background-color 0.3s ease;
48
+ }
49
+
50
+ .file-upload-section input[type="submit"]:hover {
51
+ background-color: #e68a00;
52
+ }
53
+
54
+ .file-actions a {
55
+ margin: 0 10px;
56
+ text-decoration: none;
57
+ color: #e68a00;
58
+ }
59
+
60
+ .file-actions a:hover {
61
+ color: #e68a00;
62
+ }
63
+
64
+ .flash-message {
65
+ margin-bottom: 20px;
66
+ padding: 15px;
67
+ border-radius: 5px;
68
+ color: #333;
69
+ }
70
+
71
+ .alert {
72
+ text-align: center;
73
+ position: sticky;
74
+ top: 0;
75
+ right: 15%;
76
+ }
77
+
78
+ /* Loader styles */
79
+ .loader {
80
+ border: 8px solid #f3f3f3;
81
+ border-top: 8px solid #e68a00;
82
+ border-radius: 50%;
83
+ width: 60px;
84
+ height: 60px;
85
+ animation: spin 2s linear infinite;
86
+ margin: 20px auto;
87
+ display: none;
88
+ }
89
+
90
+ @keyframes spin {
91
+ 0% {
92
+ transform: rotate(0deg);
93
+ }
94
+
95
+ 100% {
96
+ transform: rotate(360deg);
97
+ }
98
+ }
99
+
100
+ /* Top bar styles */
101
+ .top-bar {
102
+ background-color: #333;
103
+ position: fixed;
104
+ top: 0;
105
+ width: 100%;
106
+ z-index: 1000;
107
+ padding: 10px 20px;
108
+ display: flex;
109
+ justify-content: space-between;
110
+ align-items: center;
111
+ }
112
+
113
+ .top-bar h2 {
114
+ color: white;
115
+ }
116
+
117
+ /* Navigation tab styles */
118
+ .tab {
119
+ display: flex;
120
+ gap: 10px;
121
+ }
122
+
123
+ .tab button {
124
+ background-color: inherit;
125
+ border: none;
126
+ outline: none;
127
+ cursor: pointer;
128
+ padding: 10px 16px;
129
+ transition: 0.3s;
130
+ font-size: 17px;
131
+ color: white;
132
+ }
133
+
134
+ .tab button:hover {
135
+ background-color: #575757;
136
+ }
137
+
138
+ .tab button.active {
139
+ background-color: #444;
140
+ }
141
+
142
+ /* Tab content styles */
143
+ .tabcontent {
144
+ display: none;
145
+ padding: 20px;
146
+ margin-top: 70px;
147
+ }
148
+
149
+ /* Responsive design */
150
+ @media (max-width: 768px) {
151
+ .tab {
152
+ flex-direction: column;
153
+ }
154
+ }
155
  </style>
156
  </head>
157
  <body>
158
+ <div class="top-bar">
159
+ <h2>Capture AI</h2>
160
+ <!-- Navigation Tabs -->
161
+ <div class="tab">
162
+ <button class="tablinks" onclick="openLink('https://webashalarforml-imagedataextractor2.hf.space/', this, '#ff4d00')">Visiting Card Data Extractor</button>
163
+ <button class="tablinks" onclick="openLink('https://webashalarforml-resumeextractor2.hf.space/', this, '#ff4d00')" id="defaultOpen">Resume Data Extractor</button>
164
  </div>
165
+ </div>
166
+ <div class="container">
167
+ <h1>Resume Data Extractor</h1>
168
  <div class="file-upload-section">
169
 
170
  <form