Skip to content

Commit

Permalink
Used media queries to make css better for desktop. Added Java certifi…
Browse files Browse the repository at this point in the history
…cate
  • Loading branch information
palaster committed Mar 18, 2024
1 parent d939f30 commit d599271
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 4 deletions.
41 changes: 41 additions & 0 deletions certificates.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Palaster's Certificates</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<div id="outer_div">
<header id="main_header">
<h1>Palaster</h1>
</header>

<nav id="main_nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="certificates.html">Certificates</a></li>
<li>Contact</li>
</ul>
</nav>

<section id="main_section">
<article>
<header>
Certificates
</header>
<div data-iframe-width="150" data-iframe-height="270" data-share-badge-id="4c4c931e-9512-4e65-91ed-912fdd4db840" data-share-badge-host="https://www.credly.com"></div><script type="text/javascript" async src="https://cdn.credly.com/assets/utilities/embed.js"></script>
<footer>
- Palaster
</footer>
</article>
</section>

<footer id="main_footer">
Copyright Palaster 2020
</footer>
</div>
</body>
</html>
26 changes: 22 additions & 4 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ body {
}

#main_nav {
border-bottom: 1px solid black;
text-align: center;
}

Expand All @@ -48,11 +47,11 @@ body {
clear: both;
text-align: center;
padding: 20px;
border-top: 1px solid black;
}

article {
border: 1px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
padding: 20px;
}

Expand All @@ -62,4 +61,23 @@ article header {

article footer {
text-align: right;
}
}

@media only screen and (min-width: 768px) {
#main_nav {
border-bottom: 1px solid black;
}

#main_section {
margin: 30px;
}

#main_footer {
border-top: 1px solid black;
}

article {
border: 1px solid black;
margin-bottom: 15px;
}
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>Palaster</h1>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="certificates.html">Certificates</a></li>
<li>Contact</li>
</ul>
</nav>
Expand Down
1 change: 1 addition & 0 deletions projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>Palaster</h1>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="certificates.html">Certificates</a></li>
<li>Contact</li>
</ul>
</nav>
Expand Down

0 comments on commit d599271

Please sign in to comment.