SHARE
TWEET

Untitled

a guest Apr 2nd, 2015 189 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Now that we have the 'Meet the Team' web page created I'd like to discuss how the final product was created. To begin, the page was created using the technologies of HTML, CSS and some bits of Javascript.
  2.  
  3. All the code in this project was written using the popular IDE 'Brackets' developed by Adobe. To begin, it was important that I started coding in HTML so that I had created a structure of content; this included things like headings, sub heading, paragraphs and images. Lets looks at the code and break it down:
  4.  
  5. <code>
  6. <!-- /////////////////////////////////////// about-us.html /////////////////////////////////////////////// -->
  7.  
  8. <!DOCTYPE html>     <!-- Document type is HTML file (Many used to be recognised by Internet Explorer) -->
  9. <html lang="en">    <!-- English language -->
  10.     <head>
  11.         <meta charset="utf-8">
  12.         <title>Yumi</title> <!-- Title of the web app -->
  13.         <link rel="stylesheet" href="css/stylesheet.css" type="text/css"/> <!-- Locate and link to css file -->
  14.         <link href='http://fonts.googleapis.com/css?family=Amatic+SC:400,700' rel='stylesheet' type='text/css'>                    <!-- Get font -->
  15.         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  16.     </head>
  17.    
  18.     <body>
  19.  
  20.     <!-- All divs in this file are linked to the stylesheet.css located: ../css/stylesheet.css -->
  21.  
  22.     <div class="container"> <!-- E: All content in this file is wrapped around a div container -->
  23.         <div class="user"> <!-- E: Each user is placed within their own div -->
  24.             <div class="name">Elliot Langley</div> <!-- E: Slightly larger font and thickness -->
  25.                 <div class="usr-image"> <!-- E: Profile pics are centered and scaled correctly -->
  26.                     <img src="images/profile-images/elliot.png">
  27.                 </div>
  28.                 <div class="align-items"> <!-- E: Social media buttons placed next to each and centred -->
  29.                 <a href="https://www.facebook.com/eclangley"><img src="images/profile-images/fb.png"></a>
  30.                 <a href="https://twitter.com/eclangley"><img src="images/profile-images/twitter.png"></a>
  31.                 <a href="https://elliotchrislangley.wordpress.com"><img src="images/profile-images/wp.png"></a>
  32.                 <a href="https://github.com/elliotlangley"><img src="images/profile-images/git.png"></a>
  33.                 <a href="https://www.linkedin.com/pub/elliot-langley/75/49a/b1b"><img src="images/profile-images/linkedin.png"></a>
  34.                 <a href="http://langley.digital"><img src="images/profile-images/langley.png"></a>
  35.                 </div>
  36.                 <div class="sub">Developer & Designer</div> <!-- E: Smaller font and centered attributes -->
  37.                
  38.                     Elliot is a curious guy who likes to keep busy. He spends most of his time infront of the computer learning new skills in the digital world. He's a serious guy with a passion for technology but when the deadlines are met successfully he likes to have a good time with friends out in the clubs. His second home is the gym where he spends most of his time weight training. His favourite video game at the moment is Halo 2 Anniversary.
  39.  
  40.     </div>
  41.  
  42. <!-- /////////////////////////////////////// E: END /////////////////////////////////////////////////////// -->
  43. </code>
  44.  
  45. Now that we have come to the end of the code it's good to explain what these divs are. These divs are elements that are linked to the Cascade Style Sheet (CSS). The class within each div allows me to use the block of CSS code more than once; compared to an id which only lets me use the element once because it is unique to the content in the HTML file. The CSS file allows the developer to style the HTML content, such as font types, thickness, position of elements, scales, transparencies and other things that may relate to how one may want to visualise their content.
  46.  
  47. /* /////////////////////////////////////// stylesheet.css ////////////////////////////////////////////////// */
  48.  
  49. /* E: Here we can see those div classes in the CSS */
  50. /* E: Classes are recognised with the (.) at the beginning of the block of code */
  51.  
  52. .container {
  53.     margin-left: auto;
  54.     width: 75%;
  55. }
  56.  
  57. .user {
  58.     text-align: center;
  59.     display:inline-block;
  60.     width: 100%;       
  61.     vertical-align: top;
  62.     padding: 50px 50px 0px 0px;
  63.     font-size:1.2em;
  64.     color: white;
  65. }
  66.  
  67. .user .name {                       /* E: Profile name (Elliot and Seb) */
  68.     font-weight: 900;
  69.     color: white;
  70.     font-size:1.8em;
  71.     padding: 0px 0px 25px 0px;
  72.     text-align: center;
  73. }
  74.  
  75. .user-image {                         /* E: Profile images (Elliot and Seb) */
  76.     width:150px;                               
  77. }
  78.  
  79. .user .sub {                        /* E: Profile description (Elliot and Seb) */
  80.     font-weight: 900;
  81.     color: white;
  82.     margin:3px 0px;
  83.     font-size:1.2em;
  84.     padding: 20px 0px 5px 0px;
  85. }
  86.  
  87. .social-images {
  88.     display: -webkit-flex;          /* E: Safari */
  89.     -webkit-align-items: center;    /* E: Safari 7.0+ */
  90.     display: flex;
  91. }
  92.  
  93. .align-center {
  94.     align-items: center;
  95.     float: left;
  96.     display: flex;
  97. }
  98.  
  99. /* /////////////////////////////////////// E: END ////////////////////////////////////////////////// */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top