Advertisement
Guest User

p6 refleksionstavle

a guest
Apr 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. <template>
  2. <div>
  3.  
  4. <div id="div1">
  5. <img src="../Assets/Palle.png" class="Palle">
  6. <img src="../Assets/Transportbånd.png" class="Transportbånd">
  7. </div>
  8.  
  9. <div id="div2">
  10. <img src="../Assets/Hooder.png" class="Hooder">
  11. <img src="../Assets/Gem.png" class="Gem">
  12. <img src="../Assets/MiwO.png" class="MiwO">
  13. </div>
  14.  
  15.  
  16. <div id="div3">
  17. <img src="../Assets/Wrapper.png" class="Wrapper">
  18. <img src="../Assets/Lenze.png" class="Lenze">
  19. </div>
  20.  
  21. <div id="div4">
  22. <button class="Knap" @click="openForm()"> </button>
  23. </div>
  24.  
  25.  
  26. <div id="popUp">
  27. <h1>Fejlbeskrivelse</h1>
  28. <small>Medie!</small>
  29.  
  30. <form action="#">
  31. <p>
  32. Den her fejl er da træls!
  33. </p>
  34. </form>
  35. </div>
  36.  
  37.  
  38.  
  39. </div>
  40.  
  41. </template>
  42.  
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. contactformVisible: false
  48. };
  49. },
  50. methods:{
  51. openForm(){
  52. var ele = document.getElementById("popUp");
  53.  
  54. if(this.contactformVisible){
  55. ele.style = "opacity: 0"
  56. }
  57. else ele.style = "opacity: 1"
  58.  
  59. this.contactformVisible = !this.contactformVisible;
  60.  
  61. }
  62. }
  63. }
  64. </script>
  65.  
  66.  
  67.  
  68.  
  69. <style <style lang="scss" scoped>
  70. #div1{
  71. overflow: auto;
  72.  
  73. }
  74. #div2{
  75. overflow: auto;
  76.  
  77. }
  78. #div3{
  79. overflow: auto;
  80.  
  81. }
  82. #div4{
  83. overflow: auto;
  84.  
  85. }
  86.  
  87. .Palle{
  88. float: left;
  89. padding-left: 438px;
  90. }
  91. .Transportbånd{
  92. float: right;
  93. padding-right: 445px;
  94. padding-top: 10px;
  95. }
  96. .Hooder{
  97. float: left;
  98. padding-left: 355px;
  99. }
  100. .Gem{
  101. height: 95px;
  102. width: 95px;
  103. padding-top: 63px;
  104. padding-left: 63px;
  105. }
  106. .MiwO{
  107. float: right;
  108. padding-right: 358px;
  109. }
  110. .Wrapper{
  111. float: left;
  112. padding-left: 455px;
  113. padding-top: 19px;
  114. }
  115. .Lenze{
  116. float: right;
  117. padding-right: 430px;
  118. padding-top: 23px;
  119. }
  120. .Knap{
  121. height: 30px;
  122. width: 30px;
  123. border-radius: 20px;
  124. margin-left: 700px;
  125. margin-bottom: 100px;
  126. }
  127.  
  128. #popUp{
  129. display: block;
  130. opacity: 0;
  131. border: 2px solid grey;
  132. padding: 1em;
  133. width: 200px;
  134. text-align: center;
  135. background: #f5f5f5;
  136. position: fixed;
  137. top:72%;
  138. left:57%;
  139. transform: translate(-50%,-50%);
  140. -webkit-transform: translate(-50%,-50%);
  141. -webkit-transition: opacity 0.5s ease-in;
  142. -moz-transition: opacity 0.5s ease-in;
  143. -o-transition: opacity 0.5s ease-in;
  144. -ms-transition: opacity 0.5s ease-in;
  145. transition: opacity 0.5s ease-in;
  146. border-radius: 15px;
  147. }
  148.  
  149. .formBtn {
  150. width: 140px;
  151. display: inline-block;
  152. background: teal;
  153. color: #fff;
  154. font-weight: 100;
  155. font-size: 1.2em;
  156. border: none;
  157. height: 30px;
  158. }
  159.  
  160. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement