home.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <style>
  4. body{
  5. color: #1a202c;
  6. text-align: left;
  7. background-color: #e2e8f0;
  8. padding-top: 100px;
  9. }
  10. .main-body {
  11. padding: 15px; } .card { box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
  12. }
  13. .card {
  14. position: relative;
  15. display: flex;
  16. flex-direction: column;
  17. min-width: 0;
  18. word-wrap: break-word;
  19. background-color: #fff;
  20. background-clip: border-box;
  21. border: 0 solid rgba(0,0,0,.125);
  22. border-radius: .25rem;
  23. }
  24. .card-body {
  25. flex: 1 1 auto;
  26. min-height: 1px;
  27. padding: 1rem;
  28. }
  29. .gutters-sm {
  30. margin-right: -8px;
  31. margin-left: -8px;
  32. }
  33. .gutters-sm>.col, .gutters-sm>[class*=col-] {
  34. padding-right: 8px;
  35. padding-left: 8px;
  36. }
  37. .mb-3, .my-3 {
  38. margin-bottom: 1rem!important;
  39. }
  40. .bg-gray-300 {
  41. background-color: #e2e8f0;
  42. }
  43. .h-100 {
  44. height: 100%!important;
  45. }
  46. .shadow-none {
  47. box-shadow: none!important;
  48. }
  49. .input-UploadProfile-Browse {
  50. width: 80px;
  51. color:transparent;
  52. }
  53. ul {
  54. list-style-type: none;
  55. float: left;
  56. }
  57. .href_link_button
  58. {
  59. float: right;
  60. }
  61. .list li {
  62. display:inline-block;
  63. vertical-align: middle;
  64. list-style-position: outside;
  65. list-style-type: disc;
  66. margin-right: 1em;
  67. text-align: left;
  68. white-space: nowrap;
  69. list-style-type: none;
  70. }
  71. .bull {
  72. display:list-item
  73. }
  74. </style>
  75. <div class="mx-auto text-center">
  76. <!------ Profile Information ---------->
  77. <div class="container">
  78. <div class="main-body">
  79. <p>Profile</p>
  80. <div class="row gutters-sm">
  81. <div class="col-md-4 mb-3">
  82. <div class="card">
  83. <div class="card-body">
  84. <div class="d-flex flex-column align-items-center text-center">
  85. {% if user.profile_image %}
  86. <img src="static/uploads/{{ user.profile_image }}" style="width:150px">
  87. {% else %}
  88. <img src="static/uploads/defaultprofileimg/defaultprofileimg.png" style="width:150px">
  89. {% endif %}
  90. <div class="mt-3">
  91. <h4>{{ user.username }}</h4>
  92. <p class="text-secondary mb-1">{{ user.email }}</p>
  93. <hr>
  94. <!------ Upload Profile Image ---------->
  95. <div class="mt-3">
  96. <p><b>Upload Profile Image</b></p>
  97. <form action="" method="POST" enctype="multipart/form-data">
  98. <input
  99. class="input-UploadProfile-Browse"
  100. type="file"
  101. id="profile_image"
  102. name="profile_image"
  103. accept="image/png, image/jpeg"
  104. onchange="form.submit()"
  105. value="Upload"
  106. src="http://example.com/path/to/image.png"
  107. >
  108. </div>
  109. <p>**Accept Only <b>PNG's</b>, <b>JPEG's</b>**</p>
  110. </form>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="col-md-8">
  117. <div class="card mb-3">
  118. <form method="POST">
  119. <div class="card-body">
  120. <p><b>Change Username or Password</b></p><br>
  121. <div class="row">
  122. <div class="col-sm-3">
  123. <h6 class="mb-0"><label for="username">Username</label></h6><br>
  124. </div>
  125. <div class="col-sm-9 text-secondary">
  126. <input type="text" id="username" name="username"><br>
  127. </div>
  128. </div>
  129. <hr style="border: 1px solid rgb(177, 176, 176);"/>
  130. <div class="row">
  131. <div class="col-sm-3">
  132. <h6 class="mb-0"><label for="password">Password</label></h6><br>
  133. </div>
  134. <div class="col-sm-9 text-secondary">
  135. <input type="text" id="password" name="password"><br>
  136. </div>
  137. </div>
  138. <hr>
  139. <div class="row">
  140. <div class="col-sm-3">
  141. <h6 class="mb-0"><label for="password_confirm">Password(Confirm)</label></h6><br>
  142. </div>
  143. <div class="col-sm-9 text-secondary">
  144. <input type="text" id="password_confirm" name="password_confirm">
  145. </div>
  146. </div>
  147. <hr>
  148. <div class="row">
  149. <div class="col-sm-12">
  150. <input type="submit" value="Submit" class="btn btn-info"></a>
  151. </div>
  152. </div>
  153. </div>
  154. </form>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <!------ List of bookmarks you have created ---------->
  161. <form method="POST">
  162. <input name="dl_bookml" value="dl_bookml" style="display:none;"/>
  163. <button type="submit" class="btn btn-info">Download Bookmarks</button>
  164. </form>
  165. <!------ The edit button of the page is edit_bookmark.html ---------->
  166. <div class="container">
  167. <div class="row">
  168. <div class="col-md-12 col-sm-12">
  169. <div class="section-title">
  170. <h1 class="heading bold">List of bookmarks you have created</h1>
  171. <hr>
  172. </div>
  173. </div>
  174. <!-- Code: Each Group of Box-->
  175. {% for bg, bml in bdic.items(): %}
  176. <div class="col-lg-4 col-md-4 col-sm-4">
  177. <div class="inner_box">
  178. <h3>{{ bg }}</h3>
  179. <hr>
  180. <!-- Code: Each Link in the Box-->
  181. {% for bm in bml: %}
  182. <ul class="list">
  183. <li><span class="bull">ICON {{ bm.name }} {{ bm.status }}</span></li>
  184. <li class="href_link_button">
  185. <a href="{{ bm.link }}">
  186. <img src="static/logo/link_logo.png"width="25" height="25">
  187. </a>
  188. <button type="submit">Edit</button>
  189. </li>
  190. </ul>
  191. {% endfor %}
  192. <!-- (End) Code: Each Link in the Box (End)-->
  193. <br>
  194. </div>
  195. </div>
  196. <!--(End) Code: Each Group of Box (End)-->
  197. {% endfor %}
  198. <div class="clearfix"></div>
  199. </div>
  200. <div class="clearfix"></div>
  201. </div>
  202. <div class="clearfix"></div>
  203. </div>
  204. {% endblock %}