mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-06-08 13:27:25 +00:00
Add hero full page implementation, implement own color set, misc. changes (#1)
* Add hero full page implementation, implement own color set, misc. changes * Cleanup scss, fix coloring of navbar in different scenarios * Update submodule
This commit is contained in:
parent
723b51a6f2
commit
29d4bc844d
|
@ -9,7 +9,7 @@ paginate = 10
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
GithubURL = "https://github.com/yuzu-emu/yuzu"
|
GithubURL = "https://github.com/yuzu-emu/yuzu"
|
||||||
ProjectName = "yuzu emulator project"
|
ProjectName = "yuzu Emulator Project"
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
[Languages.en]
|
[Languages.en]
|
||||||
|
|
18
site/content/entry/test-post-please-ignore-2.md
Normal file
18
site/content/entry/test-post-please-ignore-2.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
+++
|
||||||
|
date = "2016-02-22T22:18:00-05:00"
|
||||||
|
title = "Placeholder"
|
||||||
|
author = "flamesage"
|
||||||
|
forum = 8
|
||||||
|
+++
|
||||||
|
|
||||||
|
This is just a placeholder blog post.
|
||||||
|
|
||||||
|
New line.
|
||||||
|
|
||||||
|
Test line.
|
||||||
|
|
||||||
|
Test *italics*.
|
||||||
|
|
||||||
|
Test **bold**.
|
||||||
|
|
||||||
|
Test [link](//google.com).
|
18
site/content/entry/test-post-please-ignore.md
Normal file
18
site/content/entry/test-post-please-ignore.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
+++
|
||||||
|
date = "2016-02-22T22:18:00-05:00"
|
||||||
|
title = "Placeholder"
|
||||||
|
author = "flamesage"
|
||||||
|
forum = 8
|
||||||
|
+++
|
||||||
|
|
||||||
|
This is just a placeholder blog post.
|
||||||
|
|
||||||
|
New line.
|
||||||
|
|
||||||
|
Test line.
|
||||||
|
|
||||||
|
Test *italics*.
|
||||||
|
|
||||||
|
Test **bold**.
|
||||||
|
|
||||||
|
Test [link](//google.com).
|
|
@ -1,17 +1,27 @@
|
||||||
<section id="homepage-hero" class="hero container is-primary">
|
<section id="homepage-hero" class="hero is-medium is-info is-bold">
|
||||||
|
<div class="hero-head">
|
||||||
|
<nav class="navbar is-fixed-top" id="hero-navbar">
|
||||||
|
{{ partial "nav_contents" . }}
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
|
<div class="container">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<!-- Left panel -->
|
<!-- Left panel -->
|
||||||
<div class="column is-5">
|
<div class="column is-5">
|
||||||
<h1 class="title">{{ .Site.Title }}</h1>
|
<div class="middle">
|
||||||
<h2 class="subtitle">{{ .Site.Params.Tagline }}</h2>
|
<div>
|
||||||
<a class="button is-medium is-inverted" href="{{ .Site.Params.GithubURL }}">
|
<h2 class="title">{{ .Site.Params.Tagline }}</h2>
|
||||||
|
<a class="button is-medium is-light" href="{{ .Site.Params.GithubURL }}">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fab fa-github"></i>
|
<i class="fab fa-github"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>Source Code</span>
|
<span>Source Code</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Right panel -->
|
<!-- Right panel -->
|
||||||
<div class="column is-7">
|
<div class="column is-7">
|
||||||
|
@ -21,4 +31,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
41
site/layouts/partials/nav_contents.html
Normal file
41
site/layouts/partials/nav_contents.html
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-brand">
|
||||||
|
<a class="navbar-item" href="{{ .Site.BaseURL }}">
|
||||||
|
<img src="{{ .Site.BaseURL }}/images/menu.png" alt="{{ .Site.Title }} {{ .Site.Params.Tagline }}">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="navbar-menu">
|
||||||
|
<div class="navbar-end">
|
||||||
|
<!-- TODO: Navbar goes here -->
|
||||||
|
<a class="navbar-item{{- if .IsHome }} is-active{{- end }}">
|
||||||
|
Home
|
||||||
|
</a>
|
||||||
|
<a class="navbar-item">
|
||||||
|
FAQ
|
||||||
|
</a>
|
||||||
|
<a class="navbar-item">
|
||||||
|
Wiki
|
||||||
|
</a>
|
||||||
|
<div class="navbar-item has-dropdown is-hoverable">
|
||||||
|
<a class="navbar-item">
|
||||||
|
Social
|
||||||
|
|
||||||
|
<span class="icon">
|
||||||
|
<i class="fas fa-caret-down"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<div class="navbar-dropdown">
|
||||||
|
<a class="navbar-item">
|
||||||
|
Discord
|
||||||
|
</a>
|
||||||
|
<a class="navbar-item">
|
||||||
|
IRC
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="https://github.com/yuzu-emu/yuzu" class="navbar-item">
|
||||||
|
GitHub
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -1,2 +1,4 @@
|
||||||
<h4 class="is-size-4">Twitter Feed</h4>
|
<div class="box">
|
||||||
<p>No tweets yet, check back soon!</p>
|
<h4 class="is-size-4">Twitter Feed</h4>
|
||||||
|
<p>No tweets yet, check back soon!</p>
|
||||||
|
</div>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 10 KiB |
|
@ -1 +1 @@
|
||||||
Subproject commit d4433a4244538e0a72c3c359e7d2db7bed564274
|
Subproject commit b0192b2ec2a9cbdd5480936f034b41888fe23956
|
11
src/js/hero.js
Normal file
11
src/js/hero.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
let navbar = document.getElementById("hero-navbar");
|
||||||
|
|
||||||
|
if (navbar) {
|
||||||
|
window.addEventListener('scroll', function (e) {
|
||||||
|
if (window.scrollY > 0) {
|
||||||
|
navbar.classList.add("is-freestanding");
|
||||||
|
} else {
|
||||||
|
navbar.classList.remove("is-freestanding");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
|
@ -1,7 +1,44 @@
|
||||||
$navbar-height: 64px;
|
// Override/configure the default color palette
|
||||||
$body-background-color: #e5e5e5;
|
$info: $primary-color;
|
||||||
$footer-background-color: $body-background-color;
|
|
||||||
|
|
||||||
#homepage-hero {
|
$navbar-height: 64px;
|
||||||
background-image: url(../images/rays.svg);
|
$body-background-color: darken(white, 10%);
|
||||||
|
|
||||||
|
// Allows for larger icons with less padding
|
||||||
|
$navbar-item-img-max-height: 2.75rem;
|
||||||
|
|
||||||
|
// Used to smoothly change background colors
|
||||||
|
#hero-navbar {
|
||||||
|
transition: background-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Used to distinguish the hero navbar when the page has been scrolled
|
||||||
|
.is-freestanding {
|
||||||
|
background: $info !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Used as helper
|
||||||
|
.middle {
|
||||||
|
align-items: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
height: 100%;
|
||||||
|
display: flex !important;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://github.com/jgthms/bulma/issues/935
|
||||||
|
.navbar-dropdown {
|
||||||
|
a.navbar-item {
|
||||||
|
color: #4a4a4a !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.navbar-item:hover {
|
||||||
|
background-color: #f5f5f5 !important;
|
||||||
|
color: #0a0a0a !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Works around incorrect coloring on navbar dropdown, related to above
|
||||||
|
.is-info div {
|
||||||
|
color: inherit !important;
|
||||||
}
|
}
|
|
@ -1,3 +1,3 @@
|
||||||
@import "./shared.scss";
|
|
||||||
@import "./yuzu.scss";
|
@import "./yuzu.scss";
|
||||||
|
@import "./shared.scss";
|
||||||
@import "./node_modules/bulma/bulma.sass";
|
@import "./node_modules/bulma/bulma.sass";
|
|
@ -1,2 +1,5 @@
|
||||||
$primary: #696969;
|
$dark-primary-color: #102027;
|
||||||
$navbar-item-hover-color: purple;
|
$light-primary-color: #62727b;
|
||||||
|
$primary-color: #37474f;
|
||||||
|
|
||||||
|
//$primary: #696969;
|
||||||
|
|
Loading…
Reference in a new issue