-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddPost.html
More file actions
151 lines (142 loc) · 11 KB
/
addPost.html
File metadata and controls
151 lines (142 loc) · 11 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>instagram</title>
<!-- --------- links -->
<!--
app.css
-->
<link rel="stylesheet" href="./styles/app.css"/>
<!--
icon title
-->
<!--
swiper
-->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"
/>
<!-- --------- -->
<link rel="icon" href="./images/Instagram.png" type="images/png" />
<!--
dark mode tailwind switch
-->
<script type="text/javascript">
if (
localStorage.theme === "dark" ||
(!("theme" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
</script>
<!-- ------- links end -->
<style>
.swiper {
width: 100%;
height: 350px;
}
</style>
</head>
<body class="bg-slate-50 dark:bg-black w-full h-[100vh] overflow-hidden">
<!--
svg
-->
<svg class="hidden">
<symbol id="calendar" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z" />
</symbol>
<symbol id="plus" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
</symbol>
<symbol id="puzzle" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z" />
</symbol>
<symbol id="send" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5" />
</symbol>
<symbol id="dont-like-post" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z" />
</symbol>
<symbol id="dont-send-coment" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z" />
</symbol>
<symbol id="delet" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
</symbol>
</svg>
<div class="max-w-md h-full mx-auto z-10 relative px-1">
<div class="w-full h-full flex justify-center ">
<div class="w-full h-auto rounded-lg p-4 ">
<div class="relative">
<div id="imageElm" class="flex justify-center flex-col items-center rounded-lg w-full h-auto object-cover bg-center mx-auto bg-repeat-none">
<svg aria-label="Icon to represent media such as images or videos" class="x1lliihq x1n2onr6 x5n08af" fill="currentColor" height="77" role="img" viewBox="0 0 97.6 77.3" width="96"><title>Icon to represent media such as images or videos</title><path d="M16.3 24h.3c2.8-.2 4.9-2.6 4.8-5.4-.2-2.8-2.6-4.9-5.4-4.8s-4.9 2.6-4.8 5.4c.1 2.7 2.4 4.8 5.1 4.8zm-2.4-7.2c.5-.6 1.3-1 2.1-1h.2c1.7 0 3.1 1.4 3.1 3.1 0 1.7-1.4 3.1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4-.5.7-.9.9z" fill="currentColor"></path></svg>
<h1 class="text-center pb-6 pt-2 font-medium text-2xl flex justify-center items-center dark:text-white">Add your new post
<svg class="w-6 h-6 text-blue-500">
<use href="#puzzle"></use>
</svg>
</h1>
<div class="max-w-[12rem] h-8 rounded-lg cursor-pointer bg-blue-500 dark:bg-blue-500 z-10 flex justify-center items-center">
<span class="absolute text-white">Select from coumputer</span>
<!-- <svg class="w-5 h-5 absolute cursor-pointer text-pink-500">
<use href="#plus"></use>
</svg> -->
<input type="file" id="fileInput" class="w-full cursor-pointer h-full rounded-full opacity-0">
</div>
</div>
<div class=" border-t dark:border-t-2 border-blue-500 w-full h-auto rounded-sm mt-4 pt-2 flex justify-start gap-2 flex-wrap-reverse" id="content-box-item">
<div class="w-20 h-20 rounded-lg flex justify-center items-center dark:bg-zinc-100" id="defult-box-item-post">
<svg class="w-9 h-9 text-blue-500">
<use href="#plus"></use>
</svg>
</div>
</div>
</div>
<div class="card-body">
<div class="flex justify-between items-c enter mt-4">
<div class="flex justify-center items-center gap-x-2">
<img src="./images/18583bf15a6bdc083bcee64acc58ed55.png" alt="" class="w-8 h-8 rounded-full">
<span class="dark:text-white">poriya</span>
</div>
<div class="flex justify-center items-center gap-x-2">
<svg class="w-5 h-5 text-blue-500">
<use href="#calendar"></use>
</svg>
<span id="data-line" class="font-medium text-sm text-blue-500"></span>
</div>
</div>
<h3 class="font-medium text-lg my-3 dark:text-white">Add a description of your post</h3>
<input type="text" placeholder="Description..." id="DescriptionInput"
class="outline-none w-full p-3 rounded-lg placeholder:text-zinc-500 text-zinc-400 text-sm placeholder:text-sm font-medium bg-zinc-200">
<p class="font-medium text-sm my-3 dark:text-white" id="p_valueInput" value="..."></p>
<div class="w-full flex justify-start flex-col gap-y-2">
<div class=" flex items-center gap-x-2 border dark:border-none border-zinc-300 rounded-md px-3 py-2 dark:text-white dark:border-zinc-400" id="License">
not like your post
<svg class="w-6 h-6">
<use href="#dont-like-post"></use>
</svg>
</div>
<div class="flex items-center gap-x-2 border dark:border-none border-zinc-300 rounded-md px-3 py-2 dark:text-white dark:border-zinc-400" id="License">
dont your coment
<svg class="w-6 h-6">
<use href="#dont-send-coment"></use>
</svg>
</div>
</div>
<a href="#" class="rounded-full mx-auto py-2 px-5 font-normal mt-5 w-[90%] text-white bg-blue-500 flex items-center justify-center text-lg">send
<svg class="w-5 h-5 text-white">
<use href="#send"></use>
</svg>
</a>
</div>
</div>
</div>
</div>
<script src="./js/addPost/main.js"></script>
</body>
</html>