-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreatepost.html
104 lines (101 loc) · 5.24 KB
/
createpost.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Barter Better</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" crossorigin="anonymous"></script>
</head>
<body>
<div class="app-container">
<header id="header">
<button type="submit" value="submit" class="btn btn-regular" id="login"></button>
<div class="settings" id="settings">
<i class="fa fa-bell"></i>
<i class="fa fa-cog"></i>
<a href="./profile.html"><img src="./img/profile-1.png" alt="user"></a>
</div>
<input type="search" name="search" id="search-bar" placeholder=" Search..."><button type="submit" value="search" name="search" class="btn btn-regular" id="magnifying-glass"> <i class="fa fa-search"></i> </button>
<button type="submit" class="btn btn-success" id="sidebar-hamburger"> <i class="fa fa-bars"></i> </button>
<a href="#">
<div class="logo" id="logo">
<img src="./img/logo2.png" alt="logo">
<h2>Barter|Better</h2>
</div>
</a>
<div class="sidebar" id="sidebar">
<div class="logo" id="logo">
<img src="./img/logo2.png" alt="logo">
<h2>Barter|Better</h2>
</div>
<button type="submit" class="btn btn-danger" id="sidebar-close-btn"> <i class="fa fa-close"></i> </button>
</div>
<div class="create-new-post" id="create-new-post">
<button class="btn btn-success" id="create-new-post-btn">Create a new post <i class="fa fa-pen"></i> </button>
</div>
</header>
<main>
<div class="container-fluid">
<div class="form-control" id="create-entry">
<h1 id="create-post-heading">Create a new post</h1>
<form action="./posts.php" method="post">
<label for="username"> Username</label>
<input type="text" name="username" placeholder="Username">
<label for="title"> Title</label>
<input type="text" name="title" placeholder="Title" autofucus>
<label for="subtitle"> Sub-title</label>
<input type="text" name="subtitle" placeholder="Sub-title">
<label for="category"> Category </label>
<select name="category" id="category-select" title="category">
<option value="select" checked>Please Select</option>
<option value="clothing">Clothing</option>
</select>
<label for="region"> Region</label>
<select name="region" id="region-select" title="region">
<option value="select" checked>Please Select</option>
<option value="eastern-cape">Eastern Cape</option>
<option value="free-state">Free State</option>
<option value="Gauteng">Gauteng</option>
<option value="Kwa-Zulu Natal">Kwa-Zulu Natal</option>
<option value="Limpopo">Limpopo</option>
<option value="Mpumalanga">Mpumalanga</option>
<option value="northern-cape">Northern Cape</option>
<option value="north-west">North West</option>
<option value="western-cape">Western Cape</option>
</select>
<label for="body"> Body</label>
<textarea type="text" name="body" placeholder="Body" cols="60" rows="10"></textarea>
<label for="images">Upload Images</label>
<input type="file" name="images" id="post-images" placeholder="images" >
<button type="submit" name="submit" class="btn btn-success">Create a post... <i class="fa fa-pen"></i> </button>
</form>
</div>
<div class="poster" id="create-poster-details">
<img src="./img/profile-1.png" alt="">
<div class="details" id="create-user-details">
<ul>
<li>Name</li>
<li>Region</li>
<li>Contact</li>
</ul>
<ul id="create-poster-values">
<li>Sean Patterson</li>
<li>Gauteng</li>
<li>+2779 415 7439</li>
</ul>
</div>
</div>
</div>
</main>
<footer>
<a href="#"> <button type="submit" value"submit" class="btn btn-regular" id="back-to-top"> <i class="fa fa-chevron-up"></i> </button> </a>
</footer>
</div>
<script defer src="./data.js"></script>
<script defer src="./app.js"></script>
</body>
</html>