Add features page

This commit is contained in:
Adam Iannazzone 2024-04-18 12:22:51 -04:00
parent 8cc5116ef3
commit ef5b095396
4 changed files with 252 additions and 78 deletions

View file

@ -6,11 +6,15 @@ body {
background-color: #222;
}
.navbar {
.navbar, footer {
background: linear-gradient(-95deg, #1a9fff, #946beb);
font-family: "Source Sans 3";
}
footer {
color: white;
}
.navbar .dropdown-menu {
background-color: #222;
}
@ -30,12 +34,27 @@ body {
}
.jumbotron {
background: linear-gradient(45deg, #1a9fff, #946beb);
color: white;
border: 1px white solid;
font-family: "Source Sans 3", sans-serif;
}
.my-gradient {
background: linear-gradient(45deg, #1a9fff, #946beb);
}
.feature-col {
background-color: white;
}
.jumbotron h1 {
font-family: "Nunito Sans", sans-serif;
}
.jumbotron p>a, footer a {
color: #222;
}
.jumbotron p>a:hover, footer a:hover{
color: white;
}

136
features.html Normal file
View file

@ -0,0 +1,136 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>RetroDECK Features</title>
<meta name="twitter:description"
content="RetroDECK is a polished and beginner-friendly environment for playing your retro games on Steam Deck, available with just one click from the Discover app.">
<meta property="og:image" content="assets/img/RetroDeck%20Wallpaper.png">
<meta name="twitter:title" content="RetroDECK">
<meta name="twitter:card" content="summary">
<meta property="og:type" content="website">
<meta name="twitter:image" content="">
<meta name="description"
content="RetroDECK is a polished and beginner-friendly environment for playing your retro games on Steam Deck, available with just one click from the Discover app.">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="assets/img/icon_circle_2_180x180.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/icon_circle_16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/icon_circle_1_32x32.png">
<link rel="icon" type="image/png" sizes="180x180" href="assets/icons/icon_circle_2_180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="assets/icons/icon_circle_3_192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="assets/icons/icon_circle_4_512x512.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&amp;display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg bg-dark sticky-top" data-bs-theme="dark">
<div class=" container-fluid">
<a class="navbar-brand" href="index.html">
Home
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="features.html">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" rel="noopener noreferrer"
href="https://retrodeck.readthedocs.io/en/latest/">Wiki</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" rel="noopener noreferrer"
href="https://retrodeck.readthedocs.io/en/latest/blog/">Blog</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Social
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" target="_blank" rel="noopener noreferrer"
href="https://discord.gg/WDc5C9YWMx">Discord</a></li>
<li><a class="dropdown-item" target="_blank" rel="noopener noreferrer"
href="https://matrix.to/#/#retrodeck:matrix.org">Matrix</a></li>
<li><a class="dropdown-item" target="_blank" rel="noopener noreferrer"
href="https://www.reddit.com/r/RetroDeck/">Reddit</a></li>
<li><a class="dropdown-item" target="_blank" rel="noopener noreferrer"
href="https://lemmy.zip/c/retrodeck">Lemmy</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Source Code
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="https://github.com/XargonWan/RetroDECK/tree/main"
target="_blank" rel="noopener noreferrer">
Github
</a>
</li>
<li>
<a class="dropdown-item" href="https://github.com/XargonWan/RetroDECK-cooker/"
target="_blank" rel="noopener noreferrer">
Cooker
</a>
</li>
<li>
<a class="dropdown-item" href="https://repo.retrodeck.net/Xargon/RetroDECK"
target="_blank" rel="noopener noreferrer">
Gitea
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<!-- Main Content -->
<main class="container mt-4 mb-4" id="features">
<!-- Lead Jumbotron -->
<div class="p-2 mb-4 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-5">
<h1 class="display-5 fw-bold">Why RetroDECK?</h1>
</div>
</div>
<!-- End Jumbotron -->
</main>
<!-- End Main Content -->
<!-- Footer -->
<footer class="container-fluid p-2">
<div class="row text-center">
<div class="col">
Created by <a target="_blank" rel="noopener noreferrer" href="https://github.com/jiannazzone">Adam
Iannazzone</a> and the RetroDECK team.
</div>
</div>
</footer>
<!-- End Footer -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="scripts/gradient.js"></script>
</body>
</html>

View file

@ -29,6 +29,8 @@
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg bg-dark sticky-top" data-bs-theme="dark">
<div class=" container-fluid">
<a class="navbar-brand" href="index.html">
@ -41,7 +43,7 @@
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
<a class="nav-link" href="features.html">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" rel="noopener noreferrer"
@ -79,6 +81,12 @@
Github
</a>
</li>
<li>
<a class="dropdown-item" href="https://github.com/XargonWan/RetroDECK-cooker/"
target="_blank" rel="noopener noreferrer">
Cooker
</a>
</li>
<li>
<a class="dropdown-item" href="https://repo.retrodeck.net/Xargon/RetroDECK"
target="_blank" rel="noopener noreferrer">
@ -91,17 +99,21 @@
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="container-fluid">
<main class="container">
<!-- Main Content -->
<main class="container mt-4 mb-4">
<!-- Lead Jumbotron -->
<div class="p-2 mb-4 mt-4 bg-body-tertiary rounded-3 jumbotron">
<div class="p-2 mb-4 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-5">
<h1 class="display-5 fw-bold">Your all-in-one emulation package for the Steam Deck</h1>
<p class="col-md-8 fs-4">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sed ante
finibus nulla imperdiet mattis id id augue. Donec maximus molestie tempor. Nulla efficitur ex
erat, nec vehicula arcu dapibus sed.</p>
<p class="col-md-8 fs-4">
Powered by <a target="_blank" rel="noopener noreferrer" href="https://es-de.org/">ES-DE</a>,
RetroDeck combines all of the best open-source emulators into a single application.
Pair that with a best-in-class Steam Deck controller configuration, and you'll be in retro gaming
paradise.</a>
</p>
<a type="button" class="align-center" target="_blank" rel="noopener noreferrer"
href="https://flathub.org/apps/details/net.retrodeck.retrodeck">
<img width='200' alt='Download on Flathub' src='https://flathub.org/api/badge?locale=en' />
@ -152,7 +164,7 @@
<!-- End Carousel -->
<!-- Donate Jumbotron -->
<div class="p-2 mb-4 bg-body-tertiary rounded-3 jumbotron">
<div class="p-2 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-4">
<h1 class="display-5 fw-bold">We can't do this alone</h1>
<p class="col-md-8 fs-4">RetroDECK is run by volunteers. If you appreciate our work, please consider
@ -164,13 +176,21 @@
</div>
</div>
<!-- End Jumbotron -->
</main>
<!-- End Main Content -->
<footer>
</footer>
<!-- Footer -->
<footer class="container-fluid p-2">
<div class="row text-center">
<div class="col">
Created by <a target="_blank" rel="noopener noreferrer" href="https://github.com/jiannazzone">Adam
Iannazzone</a> and the RetroDECK team.
</div>
</div>
</footer>
<!-- End Footer -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>

View file

@ -1,17 +1,16 @@
let gradientAngle = 45;
let jumbotronElems = document.getElementsByClassName('jumbotron');
let gradientSpinElems = document.getElementsByClassName('gradient-spin');
const gradientInterval = setInterval(function() {
updateGradientAngle();
}, 50);
console.log(jumbotronElems.length)
function updateGradientAngle() {
gradientAngle += 1
if (gradientAngle > 360) {
gradientAngle = 0;
}
for (let i=0; i<jumbotronElems.length; i++) {
jumbotronElems[i].style.background = `linear-gradient(${gradientAngle}deg, #1a9fff, #946beb)`;
for (let i=0; i<gradientSpinElems.length; i++) {
gradientSpinElems[i].style.background = `linear-gradient(${gradientAngle}deg, #1a9fff, #946beb)`;
}
}