Guest User

Untitled

a guest
May 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <title>pr</title>
  6.  
  7. <style>
  8. body {
  9. margin: 0px;
  10. padding: 0px;
  11. }
  12.  
  13. .container{
  14. max-width: 960px;
  15. margin: 0 auto;
  16. min-height: 100vh;
  17.  
  18. display: grid;
  19. grid-template-rows: 100px 40px 1fr 100px;
  20. grid-template-columns: 150px 1fr 150px;
  21. grid-template-areas: "header header header"
  22. "nav nav right"
  23. "left main right"
  24. "footer footer footer";
  25. }
  26.  
  27. header{
  28. grid-area: header;
  29. background: grey;
  30.  
  31. display: flex;
  32. flex-direction: column;
  33. justify-content: center;
  34. }
  35. .logo{
  36. margin: 24px;
  37. font-size: 34px;
  38. }
  39.  
  40. nav{
  41. grid-area: nav;
  42.  
  43. background: white;
  44.  
  45. display: grid;
  46. grid-template-columns: repeat(4, 100px);
  47. grid-template-rows: 40px;
  48. }
  49. .menu-item{
  50. display: flex;
  51. justify-content: center;
  52. align-items: center;
  53. }
  54. .menu-item:hover{
  55. background: grey;
  56. }
  57.  
  58. main{
  59. grid-area: main;
  60. background: white;
  61.  
  62. display: flex;
  63. flex-wrap: wrap;
  64. flex-direction: column;
  65. }
  66. .article{
  67. text-align: justify;
  68. margin: .0em .6em .6em .6em;
  69. line-height: 24px;
  70. }
  71.  
  72. .left{
  73. grid-area: left;
  74. background: black;
  75.  
  76. display: flex;
  77. flex-wrap: wrap;
  78. flex-direction: column;
  79. }
  80. .left-buttons{
  81. color: white;
  82. margin: 0px;
  83. padding: 10px;
  84. text-align: right;
  85. }
  86. .right{
  87. grid-area: right;
  88. background: black;
  89. }
  90. footer{
  91. grid-area: footer;
  92. background: grey;
  93. }
  94. .footer-text{
  95. margin: 0px;
  96. padding: 10px;
  97. text-align: right;
  98. }
  99.  
  100. @media screen and (max-width: 960px){
  101. .container{
  102. grid-template-rows: 100px 1fr 100px;
  103. grid-template-columns: auto 1fr 150px;
  104. grid-template-areas: "nav header header"
  105. "nav main left"
  106. "nav footer footer";
  107. }
  108. nav{
  109. display: grid;
  110. grid-template-columns: 100px;
  111. grid-template-rows: repeat(4, 40px);
  112.  
  113. padding: 0;
  114. }
  115. .menu-item{
  116. margin: 0px;
  117. padding: 10px;
  118. }
  119.  
  120. .right{
  121. display: none;
  122. }
  123. .left-buttons{
  124. text-align: left;
  125. }
  126. }
  127.  
  128. @media screen and (max-width: 768px){
  129. .container{
  130. grid-template-rows: 100px 1fr 150px;
  131. grid-template-columns: auto 1fr;
  132. grid-template-areas: "nav header"
  133. "nav main"
  134. "nav footer";
  135. }
  136. .left{
  137. display: none;
  138. }
  139. }
  140.  
  141. @media screen and (max-width: 560px){
  142. .container{
  143. grid-template-rows: auto 1fr auto;
  144. grid-template-columns: auto 1fr;
  145. grid-template-areas: "nav header"
  146. "nav main"
  147. "nav footer";
  148. }
  149. .left{
  150. display: none;
  151. }
  152. }
  153. </style>
  154.  
  155. </head>
  156.  
  157. <body>
  158. <div class="container">
  159. <header>
  160. <div class="logo">memespr</div>
  161. <div></div>
  162. </header>
  163. <nav>
  164. <div class="menu-item">news</div>
  165. <div class="menu-item">forum</div>
  166. <div class="menu-item">info</div>
  167. <div class="menu-item">about</div>
  168. </nav>
  169. <main class="main">
  170. <div class="article">
  171. <h4>Structured programming</h4>
  172. <p>Structured programming (SP) is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of the structured control flow constructs of selection (if/then/else) and repetition (while and for), block structures, and subroutines in contrast to using simple tests and jumps such as the go to statement, which can lead to "spaghetti code" that is potentially difficult to follow and maintain.</p>
  173. </div>
  174. <div class="article">
  175. <h4>Object-oriented programming</h4>
  176. <p>Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. A feature of objects is that an object's procedures can access and often modify the data fields of the object with which they are associated (objects have a notion of "this" or "self"). In OOP, computer programs are designed by making them out of objects that interact with one another. There is significant diversity of OOP languages, but the most popular ones are class-based, meaning that objects are instances of classes, which typically also determine their type.</p>
  177. </div>
  178. </main>
  179. <aside class="left">
  180. <div class="left-buttons">paradigms</div>
  181. <div class="left-buttons">examples</div>
  182. <div class="left-buttons">practics</div>
  183. <div class="left-buttons">something</div>
  184. </aside>
  185. <aside class="right">menu right</aside>
  186. <footer>
  187. <div class="footer-text">2018, this guy inc.</div>
  188. </footer>
  189. </div>
  190. </body>
  191. </html>
Add Comment
Please, Sign In to add comment