Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>My First Webpage</title>
  5.  
  6.     <style>
  7.       body {
  8.         margin: 0px;
  9.       }  
  10.  
  11.       #header {
  12.         height: 100px;
  13.         background:#cccccc;
  14.         padding: 50px;
  15.       }
  16.  
  17.       #header div {
  18.         display: inline-block;
  19.         vertical-align: middle;
  20.       }
  21.  
  22.       #logo-container {
  23.         margin-right: 50px;
  24.       }
  25.  
  26.       #logo-container img {
  27.         height: 100px;
  28.         width:auto;
  29.       }
  30.  
  31.       #header-text-container h1 {
  32.         font-family: "Helvetica";        
  33.       }
  34.  
  35.       #banner {
  36.          height: 720px;
  37.          background-color: #000;
  38.          text-align: center;
  39.       }
  40.  
  41.       #content {
  42.         padding: 50px;
  43.         min-height: 500px;
  44.       }    
  45.  
  46.      
  47.  
  48.       }
  49.  
  50.       #footer {
  51.         height: 100px;
  52.         padding: 10px;
  53.         background: #cccccc;
  54.       }
  55.  
  56.       #footer div {
  57.         display: inline-block;
  58.         width: 33%;
  59.       }
  60.  
  61.  
  62.     </style>
  63.   </head>
  64.   <body>
  65.  
  66.     <div id="app"> <!-- main div -->
  67.  
  68.       <div id="header"> <!-- header -->
  69.         <div id="logo-container">
  70.           <img src="https://image.flaticon.com/icons/png/128/201/201565.png" />
  71.         </div>
  72.         <div id="header-text-container">
  73.           <h1>Road to Success</h1>
  74.         </div>
  75.       </div>
  76.  
  77.       <div id="banner"> <!-- banner -->
  78.           }
  79.           <iframe width="1080" height="720" src="https://www.youtube.com/embed/-mOM5pZ8XCg" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  80.       </div>
  81.  
  82.       <div id="content"> <!-- content -->
  83.         <div v-for="story in stories">
  84.           <span>{{ story.name }}</span>..
  85.           <span class="text">{{ story.message }}</span>
  86.         </div>
  87.         <hr>
  88.         <h3>Your Comment</h3>
  89.  
  90.         <div>
  91.           <input type="text" v-model="name" placeholder="Your name"/>
  92.           <br/>
  93.           <br/>
  94.           <textarea v-model="message" placeholder="Your comment"></textarea>
  95.           <br>
  96.           <br/>
  97.           <button v-on:click="addStory">Submit</button>
  98.         </div>
  99.         <hr>
  100.       </div>
  101.  
  102.       <div id="footer"> <!-- footer -->
  103.         <div>
  104.           <p class="text">
  105.             Beginning place. Multiply moving divided darkness so, forth first male all, be one called dominion cattle have gathering man moveth.
  106.           </p>
  107.         </div>
  108.  
  109.         <div>
  110.           <p class="text">
  111.             Light female open called. Make lights, there for forth unto there. Waters great air creepeth were can't one great night.
  112.           </p>
  113.         </div>
  114.  
  115.         <div>
  116.           <p class="text">
  117.             You'll. From stars don't they're behold, fill gathered. After let bring gathered she'd for won't good. Male one face. Firmament.
  118.           </p>
  119.         </div>
  120.       </div>
  121.  
  122.  
  123.     </div>
  124.     <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  125.     <script>
  126.      
  127.       var app = new Vue({
  128.         el: "#app",
  129.         data: {
  130.           stories: [
  131.             {
  132.              
  133.             }
  134.           ],
  135.           name: "",message: ""
  136.         },
  137.         methods: {
  138.           addStory() {
  139.             this.stories.push({
  140.               name: this.name,message: this.message
  141.             });
  142.  
  143.             this.name = "";this.message = "";
  144.           }
  145.         }
  146.       })
  147.  
  148.     </script>
  149.  
  150.   </body>
  151. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement