Skip to content

Commit 8c00bbc

Browse files
Added File Upload Form-2 (#1364)
1 parent 3fb5a09 commit 8c00bbc

File tree

3 files changed

+141
-0
lines changed

3 files changed

+141
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>File Upload Form</title>
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
11+
<body>
12+
<div class="container">
13+
<div class="header">
14+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
15+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
16+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
17+
<g id="SVGRepo_iconCarrier">
18+
<path
19+
d="M7 10V9C7 6.23858 9.23858 4 12 4C14.7614 4 17 6.23858 17 9V10C19.2091 10 21 11.7909 21 14C21 15.4806 20.1956 16.8084 19 17.5M7 10C4.79086 10 3 11.7909 3 14C3 15.4806 3.8044 16.8084 5 17.5M7 10C7.43285 10 7.84965 10.0688 8.24006 10.1959M12 12V21M12 12L15 15M12 12L9 15"
20+
stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
21+
</g>
22+
</svg>
23+
<p>Browse File to upload!</p>
24+
</div>
25+
<label for="file" class="footer">
26+
<svg fill="#000000" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
27+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
28+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
29+
<g id="SVGRepo_iconCarrier">
30+
<path d="M15.331 6H8.5v20h15V14.154h-8.169z"></path>
31+
<path d="M18.153 6h-.009v5.342H23.5v-.002z"></path>
32+
</g>
33+
</svg>
34+
<p>Not selected file</p>
35+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
36+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
37+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
38+
<g id="SVGRepo_iconCarrier">
39+
<path
40+
d="M5.16565 10.1534C5.07629 8.99181 5.99473 8 7.15975 8H16.8402C18.0053 8 18.9237 8.9918 18.8344 10.1534L18.142 19.1534C18.0619 20.1954 17.193 21 16.1479 21H7.85206C6.80699 21 5.93811 20.1954 5.85795 19.1534L5.16565 10.1534Z"
41+
stroke="#000000" stroke-width="2"></path>
42+
<path d="M19.5 5H4.5" stroke="#000000" stroke-width="2" stroke-linecap="round"></path>
43+
<path d="M10 3C10 2.44772 10.4477 2 11 2H13C13.5523 2 14 2.44772 14 3V5H10V3Z" stroke="#000000"
44+
stroke-width="2"></path>
45+
</g>
46+
</svg>
47+
</label>
48+
<input id="file" type="file">
49+
</div>
50+
</body>
51+
52+
</html>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
body{
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
height: 100vh;
6+
background-color: #f0f0f0;
7+
margin: 0;
8+
font-family: Arial, sans-serif;
9+
}
10+
11+
.container {
12+
height: 300px;
13+
width: 300px;
14+
border-radius: 10px;
15+
box-shadow: 4px 4px 30px rgba(0, 0, 0, .2);
16+
display: flex;
17+
flex-direction: column;
18+
align-items: center;
19+
justify-content: space-between;
20+
padding: 10px;
21+
gap: 5px;
22+
background-color: rgba(0, 110, 255, 0.041);
23+
}
24+
25+
.header {
26+
flex: 1;
27+
width: 100%;
28+
border: 2px dashed royalblue;
29+
border-radius: 10px;
30+
display: flex;
31+
align-items: center;
32+
justify-content: center;
33+
flex-direction: column;
34+
}
35+
36+
.header svg {
37+
height: 100px;
38+
}
39+
40+
.header p {
41+
text-align: center;
42+
color: black;
43+
}
44+
45+
.footer {
46+
background-color: rgba(0, 110, 255, 0.075);
47+
width: 100%;
48+
height: 40px;
49+
padding: 8px;
50+
border-radius: 10px;
51+
cursor: pointer;
52+
display: flex;
53+
align-items: center;
54+
justify-content: flex-end;
55+
color: black;
56+
border: none;
57+
}
58+
59+
.footer svg {
60+
height: 130%;
61+
fill: royalblue;
62+
background-color: rgba(70, 66, 66, 0.103);
63+
border-radius: 50%;
64+
padding: 2px;
65+
cursor: pointer;
66+
box-shadow: 0 2px 30px rgba(0, 0, 0, 0.205);
67+
}
68+
69+
.footer p {
70+
flex: 1;
71+
text-align: center;
72+
}
73+
74+
#file {
75+
display: none;
76+
}

assets/html_files/forms.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,19 @@ <h1>File Upload Form</h1>
310310
</a>
311311
</div>
312312
</div>
313+
<div class="box">
314+
<h1>File Upload Form 2</h1>
315+
<div class="preview">
316+
<a href="../../Components/Forms/File-Upload-Form-2/index.html" title="Live Preview" target="_blank">
317+
<img src="../images/link.png">
318+
</a>
319+
</div>
320+
<div class="source">
321+
<a href="https://github.com/Rakesh9100/Beautiify/tree/main/Components/Forms/File-Upload-Form-2" title="Source Code" target="_blank">
322+
<img src="../images/github.png">
323+
</a>
324+
</div>
325+
</div>
313326
<div class="box">
314327
<h1>Game Signup Form</h1>
315328
<div class="preview">

0 commit comments

Comments
 (0)