home.html 7.1 KB

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