Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. HTML
  2. <!DOCTYPE html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="icon" href= "Logo.png" type="img/SVG" style="width: 100%; height: 100%">
  8. <style>
  9. body {
  10. margin: 0;
  11. }
  12.  
  13. .Header {
  14. position: fixed;
  15. z-index:1;
  16. width: 100%;
  17. height: 70px;
  18. background-color: black;
  19. text-align: right;
  20. }
  21.  
  22. .socialmedia {
  23. position: fixed;
  24. right: 100px;
  25. top: 35px;
  26. transform: translate(0, -50%);
  27. display: flex;
  28. /* add this */
  29. align-items: center;
  30. /* add this */
  31. }
  32.  
  33. .preorder button {
  34. background-color: white;
  35. border: 0;
  36. height: 35px;
  37. width: 110px;
  38. margin-left: 35px;
  39. }
  40.  
  41. .footer {
  42. display: flex;
  43. align-items: center;
  44. width: 100%;
  45. height: 90px;
  46. background-color: black;
  47. }
  48.  
  49. .photoSection {
  50. position: relative;
  51. background-color: black;
  52. overflow: hidden;
  53. }
  54.  
  55. .mySlides~.mySlides {
  56. position: absolute;
  57. top: 0;
  58. left: 100%;
  59. transition: 0.8s;
  60. }
  61. </style>
  62. </head>
  63.  
  64. <body>
  65.  
  66. <div class="Header" id="myHeader">
  67. <a class = "headerLogo">
  68. <a href="file:///C:/Noah's%20stuff/Home.html" ><h1 style="color:white; font-family: Verdana; font-style: italic; font-size: x-large;
  69. text-align: center;">Some Title</h1></a>
  70. <style>
  71. a{text-decoration: none}
  72. </style>
  73.  
  74. </a>
  75. <div class="socialmedia">
  76. <a class = "Facebook">
  77. <a href="https://www.facebook.com/" target="_blank"><img src = "https://images.seeklogo.net/2016/09/facebook-icon-preview-1.png" width="50px" height="50px"></a>
  78. </a>
  79. <a class = "Instagram">
  80. <a href="https://www.instagram.com/"><img src = "https://images.seeklogo.net/2016/06/Instagram-logo.png" width="50px" height="50px"></a>
  81. </a>
  82. <a class = "Youtube">
  83. <a href="https://www.youtube.com/channel/" target="_blank"><img src = "https://images.seeklogo.net/2016/06/YouTube-icon.png" width="50px" height="50px"></a>
  84. </a>
  85. <a class = preorder>
  86. <button style = "background-color: white;">Pre-Order</button>
  87.  
  88. </a>
  89. </div>
  90. </div>
  91. <div class="photoSection">
  92. <img class="mySlides" src="http://coolwildlife.com/wp-content/uploads/galleries/post-3004/Fox%20Picture%20003.jpg" style="width:100%; height:785px;">
  93. <img class="mySlides" src="http://ichef-1.bbci.co.uk/news/976/media/images/83351000/jpg/_83351965_explorer273lincolnshirewoldssouthpicturebynicholassilkstone.jpg" style="width:100%; height: 785px">
  94. <img class="mySlides" src="https://c1.staticflickr.com/2/1520/24330829813_944c817720_b.jpg" style="width:100%; height: 785px">
  95. </div>
  96.  
  97. <div class="section1" style = "background-color: black; color: white; padding-top: 150px;" >
  98. <a class = "header1" style="padding-left: 200px; display:inline-block; width:85.2%">
  99. <img src = "FoldingIcon.PNG">
  100. <h1 style = "font-family: Verdana;font-size: x-large; text-align: start;">Some Title</h1>
  101. <p style = "margin-bottom: 200px; font-family: Verdana; color: gray;">
  102. </p>
  103. <img src="Backpack.PNG">
  104. <h2 style = "font-family: Verdana; font-size: x-large; text-align:start">Some Title</h2>
  105. <p style = "margin-bottom: 300px"></p>
  106. </a>
  107. <p style = "color: gray; background-color: black; color: white; padding-left: 50px; display:inline-block; width:85.2%">
  108. ____________________________________________________________________________________________________________________________________________________________</p>
  109. </div>
  110.  
  111. <div class = "section2" style = "background-color: black; color: white; padding-bottom: 500px;">
  112.  
  113. </div>
  114. <script>
  115. var myIndex = 0;
  116. carousel();
  117.  
  118. function carousel() {
  119. var i;
  120. var x = document.getElementsByClassName("mySlides");
  121. myIndex++;
  122. if (myIndex > x.length) {
  123. myIndex = 1
  124. x[myIndex - 1].style.right;
  125. }
  126. else {
  127. x[myIndex - 1].style.left = "0";
  128. }
  129.  
  130. // you may want to add transition-delay , z-index, ... to tune sliding effect
  131. setTimeout(carousel, 4000); // Change image every 2 seconds
  132. }
  133. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement