mirror of
https://github.com/runyanjake/olomana.git
synced 2025-10-04 21:27:29 -07:00
v1 design of webpage
This commit is contained in:
parent
a34df46bb0
commit
32d15ec2ee
36
homepage/website/about.html
Normal file
36
homepage/website/about.html
Normal file
@ -0,0 +1,36 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>About | PWS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo">PWS</div>
|
||||
<nav>
|
||||
<a href="index.html" class="nav-button">Home</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section id="home" class="hero">
|
||||
<div class="container">
|
||||
<h1>About</h1>
|
||||
<p>PWS is a homelabbing project that has taught me much about Linux, hardware, networking, and security practices. I use it to host a variety of self-created projects, open source software, and anything that piques my interest.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<p>© 2024 PWS. All rights reserved.</p>
|
||||
<div class="social-media">
|
||||
<a href="https://github.com/whitney-server">Github</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -2,12 +2,46 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Simple Webpage</title>
|
||||
<title>PWS | Pinner Web Services</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, World!</h1>
|
||||
<p>This is a simple HTML/CSS/JS webpage.</p>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo">PWS</div>
|
||||
<nav>
|
||||
<a href="about.html" class="nav-button">About</a>
|
||||
<a href="services.html" class="nav-button">Services</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section id="home" class="hero">
|
||||
<div class="container">
|
||||
<h1>PWS | Pinner Web Services</h1>
|
||||
<p>Experience the ultimate web service tailored just for you.</p>
|
||||
<a href="about.html" class="cta-button">Learn More</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="quote-of-the-day" class="sub-section">
|
||||
<div class="container">
|
||||
<h2>Quote of the Day</h2>
|
||||
<div class="quote" id="quote-content">
|
||||
<!-- Quote content delived dynamically by script.js -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<p>© 2024 PWS. All rights reserved.</p>
|
||||
<div class="social-media">
|
||||
<a href="https://github.com/whitney-server">Github</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -1 +1,71 @@
|
||||
console.log("Hello, World!");
|
||||
const quotes = [
|
||||
{
|
||||
text: "The only way to do great work is to love what you do.",
|
||||
author: "Steve Jobs",
|
||||
link: "https://en.wikipedia.org/wiki/Steve_Jobs"
|
||||
},
|
||||
{
|
||||
text: "Success is not final, failure is not fatal: It is the courage to continue that counts.",
|
||||
author: "Winston Churchill",
|
||||
link: "https://en.wikipedia.org/wiki/Winston_Churchill"
|
||||
},
|
||||
{
|
||||
text: "In the end, it's not the years in your life that count. It's the life in your years.",
|
||||
author: "Abraham Lincoln",
|
||||
link: "https://en.wikipedia.org/wiki/Abraham_Lincoln"
|
||||
},
|
||||
{
|
||||
text: "I should be on in a few minutes.",
|
||||
author: "Jake, in the moments before baiting",
|
||||
link: "https://www.youtube.com/channel/UCZctf3QSXXk9a5KzrAJ2bmw"
|
||||
},
|
||||
{
|
||||
text: "It's good news!",
|
||||
author: "Sujay",
|
||||
link: "https://anditsgood.news/"
|
||||
},
|
||||
{
|
||||
text: "It's bad news.",
|
||||
author: "Sujay",
|
||||
link: "https://anditsgood.news/"
|
||||
},
|
||||
{
|
||||
text: "Meow",
|
||||
author: "Tobee",
|
||||
link: "https://gallery.whitney.rip/library/albums/as3wif72i18kzs9q/tobee-and-maymay"
|
||||
},
|
||||
{
|
||||
text: "Meow",
|
||||
author: "MayMay",
|
||||
link: "https://gallery.whitney.rip/library/albums/as3wif72i18kzs9q/tobee-and-maymay"
|
||||
},
|
||||
];
|
||||
const failureMessageQOTD = 'Failed to fetch the quote of the day. Please try again later.';
|
||||
|
||||
async function getQOTD() {
|
||||
var daysSinceEpoch = new Date().getTime() / (1000 * 60 * 60 * 24);
|
||||
const idx = Math.floor(daysSinceEpoch % quotes.length);
|
||||
return quotes[idx];
|
||||
}
|
||||
|
||||
async function renderQOTD() {
|
||||
const quoteData = await getQOTD();
|
||||
const quoteElement = document.getElementById('quote-content');
|
||||
|
||||
console.log(`Rendering Today's Quote: "${quoteData.text}" - ${quoteData.author}`);
|
||||
|
||||
try {
|
||||
if(quoteData) {
|
||||
const html = `<p>"${quoteData.text}" - <a href="${quoteData.link}">${quoteData.author}</a></p>`;
|
||||
quoteElement.innerHTML = html;
|
||||
} else {
|
||||
quoteSection.innerHTML = `<p>${failureMessageQOTD}</p>`;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error rendering Quote of the Day:', error);
|
||||
quoteSection.innerHTML = `<p>${failureMessageQOTD}</p>`;
|
||||
}
|
||||
}
|
||||
|
||||
console.log("Thanks for checking out PWS!");
|
||||
document.addEventListener('DOMContentLoaded', renderQOTD);
|
56
homepage/website/services.html
Normal file
56
homepage/website/services.html
Normal file
@ -0,0 +1,56 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Services | PWS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo">PWS</div>
|
||||
<nav>
|
||||
<a href="index.html" class="nav-button">Home</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section id="home" class="hero">
|
||||
<div class="container">
|
||||
<h1>PWS Services</h1>
|
||||
<p>Check out some of the PWS services!</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="services" class="sub-section">
|
||||
<div class="container">
|
||||
<div class="service-entry">
|
||||
<img src="static/image.png" alt="Service Image 1">
|
||||
<div class="service-text">
|
||||
<h2>Service Title 1</h2>
|
||||
<p>Coming soon</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="service-entry">
|
||||
<img src="static/image.png" alt="Service Image 2">
|
||||
<div class="service-text">
|
||||
<h2>Service Title 2</h2>
|
||||
<p>Coming soon</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Add more service entries as needed -->
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<p>© 2024 PWS. All rights reserved.</p>
|
||||
<div class="social-media">
|
||||
<a href="https://github.com/whitney-server">Github</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
BIN
homepage/website/static/image.png
Normal file
BIN
homepage/website/static/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 811 B |
@ -0,0 +1,134 @@
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #333333;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: #333333;
|
||||
color: #FFFFFF;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
header .container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
header .logo {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 1.5em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
header nav ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
header nav ul li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
header nav ul li a {
|
||||
color: #FFFFFF;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
background-color: #F5844C;
|
||||
color: #240f0f;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
border-radius: 5px;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.nav-button:hover {
|
||||
background-color: #cf5416;
|
||||
}
|
||||
|
||||
.hero {
|
||||
background: #f4f4f4;
|
||||
text-align: center;
|
||||
padding: 60px 0;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 2.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1.2em;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.sub-section {
|
||||
background: #f4f4f4;
|
||||
text-align: center;
|
||||
padding: 60px 0;
|
||||
}
|
||||
|
||||
.sub-section h1 {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 2.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sub-section p {
|
||||
font-size: 1.2em;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
background-color: #F5844C;
|
||||
color: #333333;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
border-radius: 5px;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
background-color: #e0a806;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background: #333333;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
footer .social-media a {
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
footer .social-media a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin: 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user