Skip to content

Commit

Permalink
Merge pull request #3 from hans-thomas/upgrading-theme
Browse files Browse the repository at this point in the history
- new logo
- new home image
- new favicons
- theme core files updated
  • Loading branch information
hans-thomas committed Jul 25, 2023
2 parents 896382d + 68c69ad commit 1cb49a2
Show file tree
Hide file tree
Showing 54 changed files with 835 additions and 178 deletions.
3 changes: 0 additions & 3 deletions docs/.gitmodules

This file was deleted.

4 changes: 4 additions & 0 deletions docs/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ showLineNumbers = false

otherSearchableFields = ["Tags", "Categories", "CustomField"] # As they appear in frontmatter

# Defaults to true if not set
# Enable copyRight Footer Stamp. Takes in attribution
enableCopyright = true

# search
[search]
on = true
Expand Down
10 changes: 10 additions & 0 deletions docs/content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Getting start"
weight: 1
---

[![codecov](https://codecov.io/gh/hans-thomas/valravn/branch/master/graph/badge.svg?token=X1D6I0JLSZ)](https://codecov.io/gh/hans-thomas/valravn)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/hans-thomas/valravn/php.yml)
![GitHub top language](https://img.shields.io/github/languages/top/hans-thomas/valravn)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/hans-thomas/valravn)
Expand Down Expand Up @@ -41,6 +42,15 @@ To start testing clone the repository and then run below commands step by step:
> composer run-script test
```

## Contributing

1. Fork it!
2. Create your feature branch: git checkout -b my-new-feature
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature
5. Submit a pull request ❤️


Support
-------

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"css/styles.c6a4d7b163cf8442a77dd63bbdfffce9dbb728a60418905d4c47120aaa6a95364fee48d2f4e8fbabd5d556b37df6f58e1506ff083567931be360275e9180a9d2.css","MediaType":"text/css","Data":{"Integrity":"sha512-xqTXsWPPhEKnfdY7vf/86du3KKYEGJBdTEcSCqpqlTZP7kjS9Oj7q9XVVrN99vWOFQb/CDVnkxvjYCdekYCp0g=="}}
{"Target":"css/styles.7c338b3650604ab08087be5f37f7007bb3d844978b2a7d14cc1a8e6c54eebbdde0420263e7269856f8d8d55432177de6a1d0329aad61b94be20dab481e8d06fe.css","MediaType":"text/css","Data":{"Integrity":"sha512-fDOLNlBgSrCAh75fN/cAe7PYRJeLKn0UzBqObFTuu93gQgJj5yaYVvjY1VQyF33modAymq1huUviDatIHo0G/g=="}}
Binary file modified docs/static/favicons/android-chrome-192x192.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/favicons/android-chrome-512x512.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/favicons/apple-touch-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/favicons/favicon-16x16.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/favicons/favicon-32x32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/favicons/favicon.ico
100644 → 100755
Binary file not shown.
10 changes: 0 additions & 10 deletions docs/static/images/compose-light.svg

This file was deleted.

10 changes: 0 additions & 10 deletions docs/static/images/compose.svg

This file was deleted.

Binary file modified docs/static/images/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/images/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/images/raven.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/themes/compose/assets/js/mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ function pickModePicture(mode) {
});
}

function setMermaidTheme(mode) {
bank.setItem(mermaidThemeKey, mode);
let theme_input = elem('.color_choice');
theme_input.value = mode;
}

function setUserColorMode(mode = false) {
const is_dark_mode = currentMode() == dark;
const stored_mode = bank.getItem(storageKey);
Expand All @@ -51,6 +57,8 @@ function setUserColorMode(mode = false) {
const user_mode = doc.dataset.mode;
doc.dataset.systemmode = sys_mode;
user_mode ? pickModePicture(user_mode) : false;

setMermaidTheme(user_mode);
}

setUserColorMode();
6 changes: 3 additions & 3 deletions docs/themes/compose/assets/js/variables.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
'use strict';

// global variables;
const doc = document.documentElement;
const toggle_id = 'toggle';
const show_id = 'show';
const menu = 'menu';
const active = 'active';
// root_url must end with '/' for relative URLs to work properly
let site_title = `{{ replace (lower site.Title) " " "-" }}`;
let root_url = '{{ strings.TrimSuffix "/" .Site.BaseURL }}/';
root_url = root_url.startsWith('http') ? root_url : window.location.origin;

Expand Down Expand Up @@ -37,7 +36,8 @@ const hash = '#';

const light = 'light';
const dark = 'dark';
const storageKey = 'colorMode';
const storageKey = `${site_title}-color-mode`;
const mermaidThemeKey = `${site_title}-mermaid`;
const key = '--color-mode';
const mode_data = 'data-mode';
const bank = window.localStorage;
10 changes: 10 additions & 0 deletions docs/themes/compose/assets/sass/_base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ body, html
-webkit-text-size-adjust: 100%
font-size: 18px

@keyframes flash
0%
opacity: 0
75%
opacity: 0
100%
opacity: 1

body
font-family: var(--font)
background-color: var(--bg)
Expand All @@ -35,6 +43,8 @@ body
-moz-osx-font-smoothing: grayscale
-webkit-overflow-scrolling: touch
max-width: 1440px
animation: 0.67s flash ease-in

@media screen and (min-width: 1640px)
max-width: 1600px

Expand Down
13 changes: 2 additions & 11 deletions docs/themes/compose/assets/sass/_mermaid.sass
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
.mermaid
html[data-mode="dark"] .mermaid
--theme: darkgoldenrod
background-color: transparent !important
margin-bottom: 2.5rem
svg
margin: 0 auto
display: block
.actor, .labelBox, .classGroup rect
fill: var(--theme) !important
stroke: var(--theme) !important
.messageText, tspan, text
fill: var(--text) !important
stroke: var(--text) !important
.messageLine0, .loopLine
stroke: var(--theme) !important
fill: var(--theme) !important
display: block
2 changes: 1 addition & 1 deletion docs/themes/compose/assets/sass/_utils.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
padding: 0 25px
margin: 0 auto

@for $i from 1 through 4
@for $i from 1 through 8
$size: $i * 1.5rem
$x-size: $size * 0.5
.pt-#{$i}
Expand Down
5 changes: 4 additions & 1 deletion docs/themes/compose/assets/sass/_variables.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

html
--color-mode: "light"
--light: #fff
Expand All @@ -8,7 +9,8 @@ html
--bg: var(--light)
--code-bg: var(--accent)
--overlay: var(--light)
--text: #111
//--text: #111
--text: #141010
--font: 'Metropolis', sans-serif
--border-color: #eee
--inline-color: darkgoldenrod
Expand All @@ -24,6 +26,7 @@ html
--theme: rgb(48,209,88)
--bg: var(--dark)
--text: #eee
--text-light: #fff
--accent: var(--bubble)
--overlay: var(--bubble)
--border-color: transparent
Expand Down
2 changes: 2 additions & 0 deletions docs/themes/compose/assets/sass/main.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ html
@import "base"
@import "nav"
@import "components"
@import "mermaid"
@import "blog"
@import "utils"
@import "syntax"
@import "fonts"
@import "chart"
@import "custom"
@import "mermaid"
2 changes: 1 addition & 1 deletion docs/themes/compose/exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ enableGitInfo = true
# disableKinds = ["taxonomy", "taxonomyTerm"]

[outputs]
home = ["HTML", "RSS","JSON"]
home = ["HTML", "RSS","JSON"]
4 changes: 4 additions & 0 deletions docs/themes/compose/exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ showLineNumbers = false

otherSearchableFields = ["Tags", "Categories", "CustomField"] # As they appear in frontmatter

# Defaults to true if not set
# Enable copyRight Footer Stamp. Takes in attribution
enableCopyright = false

# search
[search]
on = true
Expand Down
Loading

1 comment on commit 1cb49a2

@vercel
Copy link

@vercel vercel bot commented on 1cb49a2 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

valravn – ./

valravn-git-master-hans-thomas.vercel.app
valravn-hans-thomas.vercel.app
valravn.vercel.app

Please sign in to comment.