Browse Source

Changed styles and added template for book pages

main
Ravi Shah 5 years ago
parent
commit
2403201f0e
  1. 172
      centos-death.html
  2. 63
      css/styles.css
  3. 9
      index.html
  4. 3
      js/redirects.js

172
centos-death.html

@ -0,0 +1,172 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>CentOS Linux is dead—and Red Hat says Stream is “not a replacement”</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="CentOS Linux is dead—and Red Hat says Stream is “not a replacement”">
<meta charset="UTF-8">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="css/styles.css" rel="stylesheet" media="screen">
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"></noscript>
<link rel="manifest" href="static/site.webmanifest">
<link rel="apple-touch-icon" sizes="180x180" href="static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="static/favicon-16x16.png">
<!-- Begin Inlined Google Fonts -->
<style>
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'), local('sans-serif-light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
<!-- End Inlined Google Fonts -->
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u = "//analytics.yeetpc.com/matomo/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '4']);
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.src = u + 'matomo.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body>
<div class="page-container">
<div class="content-wrap">
<!-- Top Navbar -->
<div class="Navbar">
<div class="Navbar__Link Navbar__Link-brand">
<h1><a href="/">Outside Reading Assignment</a></h1>
</div>
<div class="Navbar__Link Navbar__Link-toggle">
<i class="fa fa-bars"></i>
</div>
<nav class="Navbar__Items Navbar__Items--right">
<div class="Navbar__Link">
<a href="mailto:ravi@yeetpc.com">Contact Me</a>
</div>
</nav>
</div>
<!-- End Top Navbar -->
<!-- Begin Top Banner -->
<div class="banner">
<div class="card-top-banner">
<p class="top-banner-text-medium">CentOS Linux is dead—and Red Hat says Stream is “not a replacement”</p>
<br />
</div>
</div>
<!-- End Top Banner -->
<!-- Begin Responsive Layout -->
<div class="main-box">
<div class="main-box-text">
</div>
</div>
<!-- End Responsive Layout -->
<!-- Begin Footer -->
<div class="footer">
<div class="footer-links">
<p>Source code <a href="https://github.com/Rav4s/english-books-website">on GitHub</a>.</p>
<p style="border-bottom: 100px;">© 2021 Ravi Shah</p>
</div>
</div>
<!-- End Footer -->
</div>
</div>
<script src="js/expandnavbar.js" defer></script>
</body>
</html>

63
css/styles.css

@ -11,7 +11,7 @@ body {
margin: 0;
font-family: 'Roboto', sans-serif;
height: 100%;
background-color: #040e1e;
background-color: #85144b;
}
h1 {
@ -30,12 +30,12 @@ a {
}
a:hover {
color: #FF8B00;
color: #FFDC00;
}
.go-down {
color: white;
background-color: #005380;
background-color: #0074D9;
font-family: 'Roboto', sans-serif;
font-size: 1.75em;
cursor: pointer;
@ -43,7 +43,7 @@ a:hover {
transition-duration: 0.3s;
padding: 0.5em;
border-radius: 0.5em;
border: 0.1em solid #FF8B00;
border: 0.1em solid #FFDC00;
}
.go-down:hover {
@ -51,8 +51,9 @@ a:hover {
-webkit-transition: ease-in-out;
-moz-transition: ease-in-out;
-o-transition: ease-in-out;
background-color: #FF8B00;
border: 0.1em solid #005380;
background-color: #FFDC00;
border: 0.1em solid #0074D9;
color: black;
}
.go-down:active {
@ -77,7 +78,7 @@ a:hover {
}
.Navbar {
background-color: #005380;
background-color: #0074D9;
display: flex;
padding: 16px;
font-family: 'Roboto', sans-serif;
@ -158,15 +159,14 @@ h1 {
.card {
height: 100%;
width: 100%;
border-radius: 2.5%;
background-color: #005380;
box-shadow: 5px 10px #FF8B00;
background-color: #0074D9;
box-shadow: 5px 10px #FFDC00;
cursor: pointer;
position: relative;
}
.card:hover {
box-shadow: 10px 20px #FF8B00;
box-shadow: 10px 20px #FFDC00;
transition: box-shadow 0.25s ease-in-out;
-webkit-transition: box-shadow 0.25s ease-in-out;
-o-transition: box-shadow 0.25s ease-in-out;
@ -220,7 +220,7 @@ h1 {
}
.footer {
background-color: #005380;
background-color: #0074D9;
color: white;
text-align: center;
position: absolute;
@ -247,6 +247,34 @@ h1 {
font-size: 1.1em;
}
.main-box {
color: white;
padding-top: 10px;
padding-bottom: 10px;
margin-left: 400px;
margin-right: 400px;
height: 800px;
line-height: 1em;
background-color: #0074D9;
box-shadow: 10px 15px #FFDC00;
}
.main-box:hover {
box-shadow: 20px 30px #FFDC00;
transition: box-shadow 0.25s ease-in-out;
-webkit-transition: box-shadow 0.25s ease-in-out;
-o-transition: box-shadow 0.25s ease-in-out;
-moz-transition: box-shadow 0.25s ease-in-out;
}
@media only screen and (max-width: 1366px) {
.main-box {
margin-left: 200px;
margin-right: 200px;
height: 400px;
}
}
@media only screen and (max-width: 1024px) {
.Navbar__Items,
.Navbar {
@ -270,8 +298,10 @@ h1 {
.column {
width: 100%;
}
.card {
border-radius: 1%;
.main-box {
margin-left: 50px;
margin-right: 50px;
height: 400px;
}
}
@ -279,4 +309,9 @@ h1 {
.column {
height: 400px;
}
.main-box {
margin-left: 20px;
margin-right: 20px;
height: 400px;
}
}

9
index.html

@ -127,9 +127,6 @@
<i class="fa fa-bars"></i>
</div>
<nav class="Navbar__Items Navbar__Items--right">
<div class="Navbar__Link">
<a href="/list.html">List</a>
</div>
<div class="Navbar__Link">
<a href="mailto:ravi@yeetpc.com">Contact Me</a>
</div>
@ -158,7 +155,7 @@
</div>
<div class="column">
<br />
<div id="smartgaragedoor" class="card">
<div id="worm" class="card">
<div class="card-header">
Worm: The First Digital World War
</div>
@ -188,7 +185,7 @@
<div class="row">
<div class="column">
<br />
<div id="smartgaragedoor" class="card">
<div id="centosdead" class="card">
<div class="card-header">
CentOS Linux is dead—and Red Hat says Stream is “not a replacement”
</div>
@ -218,7 +215,7 @@
<div class="footer">
<div class="footer-links">
<p>Source code <a href="https://github.com/Rav4s/english-books-website">on GitHub</a>.</p>
<p>© 2021 Ravi Shah</p>
<p style="border-bottom: 100px;">© 2021 Ravi Shah</p>
</div>
</div>

3
js/redirects.js

@ -1,4 +1,7 @@
document.getElementById("go-down").onclick = function() {
var elmntToView = document.getElementById("row");
elmntToView.scrollIntoView();
};
document.getElementById("centosdead").onclick = function() {
location.href = "/centos-death.html";
};
Loading…
Cancel
Save