Skip to content

Commit

Permalink
Deploy bevyengine/bevy-website to bevyengine/bevy-website:gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Dec 17, 2023
0 parents commit b8ce9c4
Show file tree
Hide file tree
Showing 2,208 changed files with 330,574 additions and 0 deletions.
221 changes: 221 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@












<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name='viewport' content="width=device-width, initial-scale=1" />
<meta property="og:title" content="Bevy Engine" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://bevyengine.org" />
<meta property="og:image" content="https://bevyengine.org/assets/bevy_logo_fill.png" />
<meta property="og:description" content="Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever!" />
<link rel="shortcut icon" type="image/png" href="/assets/favicon.png">
<link rel="stylesheet" href="/site.css" />
<link href="/atom.xml" rel="alternate" type="application/atom+xml" />
<title>Bevy Engine</title>

</head>
<body>
<div class="layout">
<input id="mobile-menu-state" class="hidden" type="checkbox">
<header class="layout__header header" data-mobile-menu-state-container>
<div class="header__content">
<label class="main-menu-backdrop" for="mobile-menu-state"></label>
<label class="header__hamburger button-square button-square--header" for="mobile-menu-state">
<img src="/assets/icon-hamburger.svg">
</label>
<div class="header__left-block">
<a class="header__logo" href="/">
<img class="logo" src="/assets/bevy_logo_dark.svg" alt="Bevy Engine">
</a>
<div class="header__message">

Features

</div>
</div>

<nav class="header__menu main-menu " role="navigation" data-page-menu-switch-state-container>
<div class="main-menu__header">
<a href="/">
<img class="logo" src="/assets/bevy_logo_dark.svg" alt="Bevy Engine">
</a>
<label class="button-square button-square--header" for="mobile-menu-state">
<img src="/assets/icon-times.svg">
</label>
</div>

<div class="main-menu__content">
<div class="main-menu__page-menu">

</div>
<ul class="main-menu__menu">














<li class="main-menu__entry main-menu__entry--getting-started">
<a href="&#x2F;learn&#x2F;book&#x2F;getting-started&#x2F;" class="main-menu__link">
<span>Getting Started</span>
</a>
</li>















<li class="main-menu__entry ">
<a href="&#x2F;learn" class="main-menu__link">
<span>Learn</span>
</a>
</li>















<li class="main-menu__entry ">
<a href="&#x2F;news" class="main-menu__link">
<span>News</span>
</a>
</li>















<li class="main-menu__entry ">
<a href="&#x2F;community" class="main-menu__link">
<span>Community</span>
</a>
</li>















<li class="main-menu__entry ">
<a href="&#x2F;assets" class="main-menu__link">
<span>Assets</span>
</a>
</li>















<li class="main-menu__entry ">
<a href="&#x2F;examples" class="main-menu__link">
<span>Examples</span>
</a>
</li>


</ul>
</div>
</nav>
<div class="header__cta-container">
<a class="button button--pink header__cta" href="/community/donate">Donate <img class="button__icon" src="/assets/heart.svg" alt="heart icon"/></a>
<a class="header__cta header__cta--github" href="https://github.com/bevyengine/bevy">
<img src="/assets/github-mark-white.svg" alt="GitHub repo">
</a>
</div>
</div>
</header>
<main class="layout__content">
<div class="container">


<div class="fourohfour">
<h1>404</h1>
<p>Sorry, we couldn't find that page.</p>
<img src="/assets/bevy_icon_dark.svg" alt="Bevy logo">
</div>

</div>
</main>
</div>
<script>
const search_params = new URLSearchParams(window.location.search);
if (search_params.has("show_drafts") || document.cookie.indexOf("show_drafts") >= 0) {
if (search_params.get("show_drafts") === "0") {
document.cookie = "show_drafts=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC";
} else {
document.cookie = "show_drafts=1;path=/"
document.body.classList.add('show_drafts');
}
}
</script>
</body>
</html>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bevyengine.org
39 changes: 39 additions & 0 deletions assets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const searchElement = document.querySelector('#assets-search')

searchElement.addEventListener("input", (_) => {
filterSearchTerms()
hideEmptySubSections()
hideEmptySections()
})

function filterSearchTerms() {
const searchTerms = searchElement.value.toLowerCase().split(' ')
for (const asset of document.querySelectorAll('.asset-card')) {
const fullText = asset.text.toLowerCase()
const searchMatch = searchTerms.every((term) => fullText.includes(term))
asset.parentElement.style.display = searchMatch ? 'block' : 'none'
}
}

function hideEmptySubSections() {
for (const itemGrid of document.querySelectorAll('.item-grid')) {
const cardInGrid = [...itemGrid.querySelectorAll('.asset-card')]
const areAllHidden = (cardInGrid.every((card) => card.parentElement.style.display === 'none'))
itemGrid.style.display = areAllHidden ? 'none' : 'grid'
itemGrid.previousElementSibling.style.display = areAllHidden ? 'none' : 'block'
}
}

function hideEmptySections() {
document.querySelectorAll('.asset-section').forEach(section => {
let nextElement = section.nextElementSibling
while (nextElement && !nextElement.classList.contains('asset-section')) {
if (nextElement.style.display !== 'none') {
section.style.display = 'block'
return
}
nextElement = nextElement.nextElementSibling
}
section.style.display = 'none'
})
}
Binary file added assets/Encultured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b8ce9c4

Please sign in to comment.