Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
feat: improve landing page and logo
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmcgee committed Sep 6, 2024
1 parent 4898a57 commit 2b9b00b
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 241 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ on:
branches:
- main
tags:
- 'v*'
- "v*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

deploy:
runs-on: ubuntu-22.04
permissions:
Expand Down Expand Up @@ -42,4 +41,4 @@ jobs:
MAJOR_MINOR=${REF_NAME%.*}
# strip the leading v from the ref_name
# update the latest alias
nix develop --command bash -c "mike deploy -p -u ${MAJOR_MINOR} latest"
nix develop --command bash -c "mike deploy -p -u ${MAJOR_MINOR} latest"
Binary file removed docs/assets/images/hero.png
Binary file not shown.
232 changes: 12 additions & 220 deletions docs/assets/images/hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/images/illustration.png
Binary file not shown.
Binary file added docs/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ validation:
theme:
name: material
custom_dir: overrides

logo: assets/images/logo.png
favicon: assets/images/logo.png

features:
- content.code.annotate
- content.code.copy
Expand Down
51 changes: 33 additions & 18 deletions overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,43 @@
.md-header {
position: initial;
}
/*.md-main__inner{margin:0}*/
.md-content {
display: none;
.mdx-hero {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
min-height: 500px;
height: calc(100vh - 2.4rem);
}
.mdx-hero__image {
padding: 4rem 0 0 0;

.magnifying-glass {
fill: #f58634;
stroke: #f58634;
}
.mdx-hero__content {
/*padding-bottom: 0;*/
/*position: relative;*/
/*top: -10rem;*/
min-width: 20rem;
}

.md-main {
display: none;
}

@media screen and (max-width: 60em) {
.mdx-hero {
flex-direction: column-reverse;
}
.mdx-hero__image {
margin-top: 4rem;
}
.mdx-hero__content {
min-width: unset;
}
}
</style>
<section class="mdx-container">
<div class="md-grid md-typeset">
<div class="mdx-hero">
<div class="mdx-hero__image">
<img
src="assets/images/illustration.png"
alt=""
width="1659"
height="1200"
draggable="false"
/>
</div>
<div class="md-content__inner">
<div class="mdx-hero__content md-content__inner">
<h1>NixOS Facter</h1>
<p>{{ config.site_description }}</p>
<a
Expand All @@ -94,6 +105,10 @@ <h1>NixOS Facter</h1>
More info
</a>
</div>

<div class="mdx-hero__image md-content__inner">
<img src="assets/images/hero.svg" alt="" draggable="false" />
</div>
</div>
</div>
</section>
Expand Down

0 comments on commit 2b9b00b

Please sign in to comment.