home.html 9.0 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-radius: .5rem;
  57. background-image: url("static/logo/home_bookmark_logo.png");
  58. background-repeat: no-repeat;
  59. background-size: cover;
  60. }
  61. .href_link_button
  62. {
  63. float: right;
  64. list-style-type: none;
  65. }
  66. .list li {
  67. display:block;
  68. list-style-position: outside;
  69. list-style-type: disc;
  70. text-align: left;
  71. list-style-type: none;
  72. }
  73. .list_li_height {
  74. height: nowrap;
  75. }
  76. .bull {
  77. display:list-item
  78. }
  79. .text_border {
  80. border: 4px solid gray;
  81. padding: 2px 0px 4px 0px;
  82. }
  83. </style>
  84. <div class="mx-auto text-center">
  85. <!------ Profile Information ---------->
  86. <div class="container">
  87. <div class="main-body">
  88. <div class="row">
  89. <div class="col-md-4">
  90. <div class="card">
  91. <div class="card-body">
  92. <div class="d-flex flex-column align-items-center text-center">
  93. {% if user.profile_image %}
  94. <img src="static/uploads/{{ user.profile_image }}" style="width:150px">
  95. {% else %}
  96. <img src="static/uploads/defaultprofileimg/defaultprofileimg.png" style="width:150px">
  97. {% endif %}
  98. <div class="mt-3">
  99. <h4>{{ user.username }}</h4>
  100. <p class="text-secondary mb-1">{{ user.email }}</p>
  101. <hr>
  102. <!------ Upload Profile Image ---------->
  103. <div class="mt-3">
  104. <p><b>Upload Profile Image</b></p>
  105. <form action="" method="POST" enctype="multipart/form-data">
  106. <input
  107. class="input-UploadProfile-Browse"
  108. type="file"
  109. id="profile_image"
  110. name="profile_image"
  111. accept="image/png, image/jpeg"
  112. onchange="form.submit()"
  113. value="Upload"
  114. src="http://example.com/path/to/image.png"
  115. >
  116. <p>**Accept Only <b>PNG's</b>, <b>JPEG's</b>**</p>
  117. </div>
  118. </form>
  119. </div>
  120. <form method="POST">
  121. <div class="card-body">
  122. <hr style="border: 1px solid rgb(177, 176, 176);"/>
  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<br>(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. <form method="POST">
  159. <div class="card-body">
  160. <hr style="border: 1px solid rgb(177, 176, 176);"/>
  161. <p><b>Background Colour Customization</b></p><br>
  162. <input type="image" src="static/logo/Background_Colour_Customization_LightBlue_logo.png" alt="LightBlue" id="theme_color" name="theme_color" value="lightblue">
  163. <input type="image" src="static/logo/Background_Colour_Customization_White_logo.png" alt="White" id="theme_color" name="theme_color" value="white">
  164. <input type="image" src="static/logo/Background_Colour_Customization_Black_logo.png" alt="Black" id="theme_color" name="theme_color" value="black">
  165. </div>
  166. </form>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="card">
  172. <div class="container">
  173. <div class="col-md-12">
  174. <h2 class="text-center" style="padding-left:75px; padding-right:75px;">List of bookmarks you have created </h2>
  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. {% for bg, bml in bdic.items(): %}
  185. <div class="col-md-6">
  186. <div class="bookmark_box_background_color" style="border-style: inset;">
  187. <div>
  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>(ICON) {{ bm.name }}</li>
  196. </div>
  197. <div class="col.md-4" style="position:absolute; right:17px;">
  198. <li class="href_link_button">
  199. <a href="{{ bm.link }}">
  200. <img src="static/logo/link_logo.png"width="30" height="30">
  201. </a>
  202. <button type="submit" class="btn btn-primary" style="padding: 3px; font-size: 6px; border-width: 3px;"><b>Edit</b></button>
  203. <b class="text_border"><i>{{ bm.status }}</i></b>
  204. </li>
  205. </ul>
  206. </div>
  207. </div>
  208. {% endfor %}
  209. <!-- (End) Code: Each Link in the Box (End)-->
  210. </div>
  211. </div>
  212. <br>
  213. </div>
  214. {% endfor %}
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. {% endblock %}