Ya know... stuff

This commit is contained in:
Adam Iannazzone 2024-06-18 13:17:39 -04:00
parent ab89801b8a
commit 5046c1cb35
3 changed files with 31 additions and 48 deletions

View file

@ -65,8 +65,10 @@ footer {
/* Features Page Styles */
#feature-jumbotron {
background: #333;
#feature-section {
background: #222;
border: 1px white solid;
}
#feature-list {
@ -77,8 +79,9 @@ footer {
.feature-list-item {
padding: 0.5rem;
cursor: pointer;
background: #333;
background: #222;
border: 1px transparent solid;
text-align: right;
}
#active-feature-item {
@ -88,6 +91,8 @@ footer {
.feature-detail-container {
display: none;
transition: display 1s ease-in-out;
border: 1px white solid;
min-height: 100%;
}
#active-feature-detail {

View file

@ -43,7 +43,7 @@
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#feature-section">Features</a>
<a class="nav-link" href="#feature-anchor">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" rel="noopener noreferrer"
@ -112,12 +112,7 @@
<!-- Lead Jumbotron -->
<div class="p-2 mb-4 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-5">
<!-- <div class="row">
<img class="img-fluid p-4" src="assets/logos/logo_unstacked.svg">
</div> -->
<div class="container-fluid py-3 py-md-5">
<div class="row align-items-center">
<div class="col-md-8">
<h1 class="display-md-5 fw-bold">Your all-in-one emulation package for the Steam Deck</h1>
@ -130,9 +125,6 @@
</p>
</div>
<div class="col-md-4 text-center">
<!-- <div class="m-1 bg-dark p-2 rounded-3" style="--bs-bg-opacity: .8;">
<img class="img-fluid" src="assets/logos/rd-esde-logo.svg">
</div> -->
<a type="button" class="btn btn-dark align-center" target="_blank" rel="noopener noreferrer"
href="https://flathub.org/apps/details/net.retrodeck.retrodeck">
<img class="pe-2" src="assets/logos/flathub.svg" width="32" height="32">Download on Flathub
@ -192,9 +184,10 @@
</div>
<!-- End Carousel -->
<!-- Feature Jumbotron -->
<!-- <div id="feature-section" class="p-md-2 mb-md-4 mb-4 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-md-5 py-3">
<!-- Feature Section -->
<div id="feature-anchor"></div>
<div class="p-2 mb-4 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-3 py-md-5">
<div class="row align-items-center">
<div class="col-md-8">
<h1 class="display-md-5 fw-bold">It's dangerous to go alone! Take these.</h1>
@ -212,36 +205,13 @@
</div>
</div>
</div>
</div> -->
<!-- End Jumbotron -->
</div>
<div id="feature-section"></div>
<!-- Feature Section -->
<div class="p-md-2 p-1 mb-4 rounded-3 jumbotron" id="feature-jumbotron">
<div class="p-md-2 p-1 mb-4 rounded-3 jumbotron" id="feature-section">
<div class="container-fluid">
<!-- Theme based on https://github.com/anthonycaccese/art-book-next-es-de-->
<div class="row p-md-2 mb-2 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-md-5 py-3">
<div class="row align-items-center">
<div class="col-md-8">
<h1 class="display-md-5 fw-bold">It's dangerous to go alone! Take these.</h1>
<p class="fs-md-4">
With more features than you can count, RetroDECK has you covered.
We're adding more with every release, so be sure to check out the Wiki for the latest
updates.
</p>
</div>
<div class="col-md-4 text-center">
<a class="btn btn-dark btn-lg align-center" type="button" target="_blank"
rel="noopener noreferrer" href="https://retrodeck.readthedocs.io/en/latest/">
<i class="bi bi-mortarboard pe-2"></i>Full Documentation
</a>
</div>
</div>
</div>
</div>
<!-- Features -->
<div class="row">
@ -249,14 +219,14 @@
<div class="col-md-4" id="left-feature-column">
<!-- Logo Header -->
<div class="row p-3 rounded-3 d-none d-md-block" id="feature-logo-container">
<!-- <div class="row p-3 rounded-3 d-none d-md-block" id="feature-logo-container">
<div class="col">
<img class="img-fluid" src="assets/logos/logo_stacked_esde.png">
</div>
</div>
</div> -->
<!-- Feature List -->
<div class="h5 row d-flex flex-md-column align-items-center overflow-x-scroll text-end flex-nowrap text-nowrap" id="feature-list">
<div class="h5 row d-flex flex-md-column align-items-center overflow-x-scroll text-end flex-nowrap" id="feature-list">
<!-- Feature 1 -->
<div class="col feature-list-item gradient-spin my-gradient rounded-3 m-0"
id="active-feature-item">
@ -287,7 +257,7 @@
<!-- End Left Column -->
<!-- Right Column -->
<div class="col-md-8 p-0 p-sm-2 ps-sm-3" id="feature-detail-column">
<div class="col-md-8 p-0 ps-md-3" id="feature-detail-column">
<div class="my-gradient gradient-spin rounded-3 h-100 pt-0 pt-sm-auto">
<!-- Feature 1 -->
<div class="feature-detail-container rounded-3 p-3" id="active-feature-detail">
@ -420,7 +390,7 @@
<!-- Donate Jumbotron -->
<div class="p-2 bg-body-tertiary rounded-3 jumbotron my-gradient gradient-spin">
<div class="container-fluid py-4">
<div class="container-fluid py-3 py-md-5">
<div class="row">
</div>

View file

@ -40,4 +40,12 @@ function updateActiveFeature(i) {
featureList.scrollLeft = featureTitles[currentFeature].offsetLeft - featureTitles[currentFeature].offsetWidth/2 - offsetPadding;
}
}
}
const widthOutput = document.querySelector("#width");
window.addEventListener('resize', function() {
const featureListElem = document.getElementById('feature-list');
if (widthOutput < 768) {
featureListElem.classList += "text-nowrap";
}
})