Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "pwa-chrome",
"webRoot": "${workspaceFolder}"
},
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "pwa-chrome",
"webRoot": "${workspaceFolder}"
},
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"type": "pwa-chrome",
"request": "launch",
"name": "Open index.html",
"file": "/home/cyf/Documents/HTML-CSS-Coursework-Week1/index.html"
}
]
}
93 changes: 93 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,96 @@
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
*/
body {
background-color: rgb(89, 126, 151);
font-family: Roboto, sans-serif;
}
/* Header and Navigation Bar */
.header {
width: 100%;
height: auto;
}

h1, h2 {
text-align: center;
color: rgb(238, 238, 125);
font-weight: normal;
}

.nav-bar {
display: inline-block;
justify-content: space-between;
align-items: center;
width: 100%;
text-decoration: none;
list-style: none;
background-color: khaki;
}

.nav-link {
display: flex;
justify-content: space-between;
align-items: stretch;
text-align: center;
font-size: 1.25rem;
margin-right: 20px;
}

.nav-link a {
text-decoration: none;
list-style: none;
color: rgb(89, 126, 151);
}

.nav-link a:hover {
color: rgb(175, 71, 40);
}

/* Articles Section */
.articles h1, .articles h2 {
color: rgb(231, 210, 241);
font-size: 1.25rem;
}

.articles:first-child {
color: rgb(231, 210, 241);
background-color: navy;
}

.articles a {
color: mediumspringgreen;
font-size: 1.25rem;
}

h3, h4, h5, h6 {
color: rgb(231, 210, 241);
font-size: 1.25rem;
text-align: center;
font-weight: normal;
}

h3 {
background-color: rgb(89, 126, 151);
}

.article-2 {
background-color: rgb(89, 126, 151);
}

.article-3 {
background-color: rgb(89, 126, 151); ;
}
/* Footer */
.footer {
background-color: rgb(75, 68, 112);
}

.footer li {
list-style: none;
font-size: 1.25rem;
color: linen;
display: inline-block;
justify-content: space-between;
width: 100%;
text-align: center;
}
69 changes: 69 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,75 @@
</head>
<body>
<!-- Add your HTML markup here -->
<!-- header and navigation bar -->
<header class="header">
<h1>World Peace Forum</h1>
<h2>Together, we can create a peaceful world!</h2>
<nav class="nav-bar">
<ul class="nav-link">
<li class="nav-link"><a href="#be-briefed">Be Briefed</a></li>
<li class="nav-link"><a href="#peace-initiatives">Peace Initiatives</a></li>
<li class="nav-link"><a href="#get-involved">Get Involved</a></li>
</ul>
</nav>
</header>
<main>
<!-- Articles Section -->
<section class="articles">
<div class="article-1">
<h1 id="be-briefed" class="title">Current Concerns</h1>
<p class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.<br>

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p>
<h2 class="summary">Countries that require more attention</h2>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
<a href="https://www.lipsum.com/" alt="List of countries to help">Click here for list of countries</a>
</div>

<div class="article-2">
<h3 id="peace-initiatives" class="title">Peace Initiatives</h3>
<p class="article-2">What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br>

Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).<br>

Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>

<h4 class="summary">Ongoing Peace Initiatives</h4>
<p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p>
<a href="https://www.lipsum.com/" alt="What we do around the world">Click here to find out ongoing peace initiative works</a>
</div>

<div class="article-3">
<h5 id="get-involved">Ways to be involved in making the world a peaceful place</h5>
<p class="article">What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br>

Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).<br>


Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>

<h6 class="summary">Taking Part</h6>

<p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p>
<a href="https://www.lipsum.com/" alt="how to be involved">Click here for more ways to take part</a>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<ul>
<li>&#169; 2020 All Rights Reserved</li>
<li>Address: World Peace Forum 999</li>
<li>&#9742; 11111111111</li>
<li>&#128231; world@peace.forum</li>
</ul>
</footer>
<!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc -->
</body>
</html>