BetinaUKTC

withButtons

Jul 13th, 2021
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. @{
  2. Layout = "~/Views/Shared/_Layout.cshtml";
  3. }
  4. <!DOCTYPE html>
  5. <html lang="en">
  6.  
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <style>
  12. .wish-container {
  13. position: relative;
  14. margin-left: 20px;
  15. width: 60vw;
  16. height: 60vh;
  17. border: 2px solid;
  18. overflow-y: scroll;
  19. overflow-x: hidden;
  20. padding: 0;
  21. }
  22.  
  23. ul {
  24. list-style-type: none;
  25. padding: 0;
  26. margin: 0;
  27. display: inline;
  28. height: 100%;
  29. }
  30.  
  31. li {
  32.  
  33. border-bottom: 1px solid black;
  34. position: relative;
  35. height: 33%;
  36. width: 100%;
  37. }
  38.  
  39. .index {
  40. position: relative;
  41. display: inline;
  42. margin-left: 3vw;
  43. font-size: 5vh;
  44. top: 3vh;
  45. }
  46.  
  47. .gift {
  48. width: 12%;
  49. height: auto;
  50. margin: 0;
  51. position: absolute;
  52. display: inline;
  53. top: 5vh;
  54. margin-left: 4vh;
  55. }
  56.  
  57. li a {
  58. position: absolute;
  59. text-decoration: none;
  60. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  61. font-size: 3vw;
  62. color: black;
  63. top: 4vh;
  64. left:20vw;
  65. }
  66.  
  67. li a :hover {
  68. text-decoration: underline;
  69. }
  70.  
  71. .changeUp,.changeDown {
  72. margin: 0px;
  73. position: absolute;
  74. display: inline;
  75. height: 5vh;
  76. width: auto;
  77. top: 3vh;
  78. }
  79. .changeUp {
  80. margin-left:30vw;
  81. }
  82. .changeDown {
  83. margin-left: 34vw;
  84. }
  85.  
  86.  
  87. #wishlist {
  88. text-decoration: underline;
  89. }
  90.  
  91.  
  92. .info-holder {
  93. position: absolute;
  94. right: 0;
  95. bottom: 0;
  96. height: 110vh;
  97. width: 49vw;
  98. background-color: #ffd2713f;
  99. clip-path: circle(55.4% at 100% 58%);
  100. }
  101.  
  102. .info {
  103. position: absolute;
  104. top: 23vh;
  105. left: 78vw;
  106. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  107. }
  108.  
  109. .name {
  110. display: block;
  111. font-size: 4vw;
  112. font-weight: 600;
  113. }
  114.  
  115. .line {
  116. position: absolute;
  117. left: -2vw;
  118. top: 22vh;
  119. width: 22vw;
  120. height: 1vh;
  121. background-color: black;
  122. border-radius: 10vw;
  123. }
  124.  
  125. .team {
  126. font-size: 2vw;
  127. font-weight: 600;
  128. margin-top: 80px;
  129. }
  130.  
  131. .date {
  132. font-size: 2vw;
  133. font-weight: 600;
  134. margin-top: 40px;
  135. }
  136.  
  137.  
  138. </style>
  139.  
  140. <title>WishList</title>
  141. </head>
  142.  
  143. <body>
  144. <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  145.  
  146. <div class="wish-container">
  147. <ul id="menu">
  148.  
  149. @foreach (var wish in ViewBag.Wishes)
  150. {
  151. <li>
  152. <!-- <img src="(wish.ImageLink == null ? "~/img/gift.png" : wish.ImageLink;)" class="gift" alt=""> Throws random af errors.. -->
  153. <a href="#"><img class="changeUp" src="~/img/up.png" /></a>
  154. <a href="#"><img class="changeDown" src="~/img/down.png" /></a>
  155. @if (wish.ImageLink != null)
  156. {
  157. <img src="@("/userImages/" + wish.ImageLink)" class="gift" alt="wish img" style="max-height:70px">
  158. }
  159. else
  160. {
  161. <img src="~/img/gift.png" class="gift" alt="wish img">
  162. }
  163.  
  164. <a class="item" href="#">@wish.Title</a>
  165.  
  166. </li>
  167.  
  168. }
  169. </ul>
  170.  
  171. </div>
  172.  
  173.  
  174. <div class="info-holder"></div>
  175. <div class="info">
  176. <p class="name">@ViewBag.User.FullName.Split(' ')[0]</p>
  177. <div class="line"></div>
  178. <p class="team">Team: @ViewBag.TeamName<br></p>
  179. <p class="date">Birthday: @ViewBag.User.BirthDate</p>
  180.  
  181.  
  182. </div>
  183.  
  184.  
  185. </body>
  186.  
  187. </html>
  188.  
  189.  
  190.  
  191.  
Advertisement
Add Comment
Please, Sign In to add comment