generated from yous/whiteglass-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding some styling. Set posts up to show a graphic and enabled hover…
…->click. Linked preliminary project, with "to-do" item to fill in with more content.
- Loading branch information
1 parent
b7b1687
commit 283c79e
Showing
14 changed files
with
188 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,4 @@ | ||
# whiteglass-template | ||
# TimothyFDavison.XYZ | ||
|
||
[![Deploy Jekyll site to Pages](https://github.com/yous/whiteglass-template/actions/workflows/main.yml/badge.svg?branch=source)](https://github.com/yous/whiteglass-template/actions/workflows/main.yml) | ||
Experimenting with static site generation. Site produced using Jekyll and the Whiteglass template. | ||
|
||
Template site for [whiteglass](https://github.com/yous/whiteglass) theme. Click | ||
"Use this template" button to start. | ||
|
||
## Configuration | ||
|
||
Change the options defined in _config.yml. Let's say the URL of your source | ||
repository is `https://github.com/johndoe/some-repo`. | ||
|
||
``` yaml | ||
title: My site title | ||
author: John Doe | ||
description: This is my site description. | ||
baseurl: "/some-repo" | ||
url: "https://johndoe.github.io" | ||
``` | ||
For further details, see [Configuration](https://jekyllrb.com/docs/configuration/) | ||
section under Jekyll documentation. | ||
## License | ||
whiteglass-template is free and unencumbered software released into the public | ||
domain. For more information, please refer to <http://unlicense.org/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
--- | ||
layout: default | ||
--- | ||
<article class="post" itemscope itemtype="http://schema.org/BlogPosting"> | ||
<article class="post-content"> | ||
<h1>{{ page.title }}</h1> | ||
<p>{{ page.date | date: "%B %-d, %Y" }}</p> | ||
|
||
<header class="post-header"> | ||
{% if page.external-url %} | ||
<h1 class="post-title" itemprop="name headline"><a href="{{ page.external-url }}">{{ page.title | escape }} →</a></h1> | ||
{% else %} | ||
<h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1> | ||
{% endif %} | ||
</header> | ||
|
||
<div class="post-content" itemprop="articleBody"> | ||
<div class="post-body"> | ||
{{ content }} | ||
</div> | ||
|
||
{% if site.comments == true and page.comments != false %} | ||
<div class="post-comments" itemprop="comment"> | ||
{% include custom_comments_provider.html %} | ||
</div> | ||
{% endif %} | ||
|
||
</article> | ||
</article> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
layout: page | ||
icon: "/assets/roots.png" | ||
title: "I Need To Grow Away From These Roots" | ||
--- | ||
## I Need To Grow Away From These Roots | ||
Ambient music generation inspired by the audio component of David Whiting's artistic piece, [I Need To | ||
Grow Away From These Roots](https://www.vitling.xyz/i-need-to-grow-away-from-these-roots/). | ||
All credit to the original artist. | ||
|
||
### Code | ||
All code can be found on my Github [here](https://github.com/TimothyFDavison/I-Need-To-Grow-Away-From-These-Roots). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
layout: page | ||
icon: "/assets/roots.png" | ||
title: "I Need To Grow Away From These Roots" | ||
--- | ||
## I Need To Grow Away From These Roots | ||
Ambient music generation inspired by the audio component of David Whiting's artistic piece, [I Need To | ||
Grow Away From These Roots](https://www.vitling.xyz/i-need-to-grow-away-from-these-roots/). | ||
All credit to the original artist. | ||
|
||
### Code | ||
All code can be found on my Github [here](https://github.com/TimothyFDavison/I-Need-To-Grow-Away-From-These-Roots). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Setting homepage layout variables. | ||
.homepage-banner { | ||
text-align: center; | ||
margin: 50px auto; | ||
max-width: 700px; | ||
} | ||
|
||
.homepage-banner h1 { | ||
font-size: 2.5em; | ||
font-weight: bold; | ||
margin-bottom: 10px; | ||
line-height: 1.2; | ||
color: #333; /* Change color if you prefer */ | ||
} | ||
|
||
.homepage-banner p { | ||
font-size: 1.2em; | ||
color: #666; | ||
margin-bottom: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Posts grid | ||
.post-grid { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; /* Adjusts spacing between boxes */ | ||
margin: 0 -10px; | ||
} | ||
|
||
.post-box { | ||
position: relative; | ||
flex: 0 1 calc(50% - 20px); /* 3 boxes per row with spacing */ | ||
margin: 10px; /* Space between boxes */ | ||
box-sizing: border-box; | ||
overflow: hidden; | ||
text-align: center; | ||
font-size: .4em; | ||
transition: transform 0.2s; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.post-box { | ||
flex: 0 1 calc(100% - 20px); /* 2 boxes per row on smaller screens */ | ||
} | ||
} | ||
|
||
@media (max-width: 480px) { | ||
.post-box { | ||
flex: 0 1 100%; /* 1 box per row on mobile */ | ||
} | ||
} | ||
|
||
|
||
// Hover, icons, title | ||
.post-box:hover { | ||
transform: scale(1.05); | ||
} | ||
|
||
.post-icon img { | ||
width: 100%; /* Make icon take up the entire container */ | ||
height: 100%; | ||
object-fit: cover; /* Ensure the image fits within the box */ | ||
border-radius: 8px; /* Optional: round corners */ | ||
} | ||
|
||
.post-title { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */ | ||
color: #fff; | ||
font-size: 0.4em; | ||
padding: 5px; | ||
text-align: center; | ||
opacity: 0; | ||
transition: opacity 0.3s ease; | ||
} | ||
|
||
.post-box:hover .post-title { | ||
opacity: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Define defaults for each variable. | ||
$base-font-family: Bitter, "Apple SD Gothic Neo", "Noto Sans", "Source Han Sans", "Noto Sans CJK JP", "Source Han Sans JP", "Noto Sans CJK KR", "Source Han Sans KR", NanumBarunGothic, AppleGothic, "Malgun Gothic", Dotum, sans-serif !default; | ||
$monospace-font-family: Monaco, Menlo, Consolas, "Courier New", DotumChe, monospace !default; | ||
$base-font-size: 16px !default; | ||
$base-font-weight: 400 !default; | ||
$small-font-size: $base-font-size * 0.875 !default; | ||
$base-line-height: 1.5 !default; | ||
|
||
$spacing-unit: 30px !default; | ||
|
||
$text-color: #111 !default; | ||
$background-color: #fdfdfd !default; | ||
$brand-color: #2568ba !default; | ||
|
||
$grey-color: #757575 !default; | ||
$grey-color-light: adjust-color($grey-color, $lightness: 45%) !default; | ||
$grey-color-dark: adjust-color($grey-color, $lightness: -20%) !default; | ||
|
||
// Width of the content area | ||
$content-width: 800px !default; | ||
$on-palm: 600px !default; | ||
$on-laptop: 800px !default; | ||
|
||
// Use media queries like this: | ||
// @include media-query($on-palm) { | ||
// .wrapper { | ||
// padding-right: $spacing-unit * 0.5; | ||
// padding-left: $spacing-unit * 0.5; | ||
// } | ||
// } | ||
@mixin media-query($device) { | ||
@media screen and (max-width: $device) { | ||
@content; | ||
} | ||
} | ||
|
||
// Import partials. | ||
@import | ||
"whiteglass/base", | ||
"whiteglass/layout", | ||
"whiteglass/syntax-highlighting" | ||
; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
--- | ||
@import "_sass/style"; | ||
@import "_sass/homepage"; | ||
@import "_sass/icons"; |