home.html 9.1 KB

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