Skip to content

Commit

Permalink
feat(layout): adjust fonts and paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrozer committed Sep 10, 2023
1 parent 36fa9ba commit 3122a0d
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 165 deletions.
11 changes: 6 additions & 5 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FONT FACES
====*/

@import url(https://fonts.bunny.net/css?family=acme:400);
@import url(https://fonts.bunny.net/css?family=acme:250);

@font-face
{
Expand All @@ -28,7 +28,7 @@ VARIABLE OVERRIDES

$global-font-size: 18px !default;
$global-background: #000000 !default;
$global-color: rgba(0, 255, 53, 0.85) !default;
$global-color: #f626eed9 !default;
$global-emphasis-color: #f626eed9 !default;
$global-font-family: "Acme", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
$global-secondary-background: #691066d9 !default;
Expand All @@ -50,12 +50,13 @@ body, a {
cursor: url(../images/coeurseur-mini.png), auto !important;
}

h1 {
font-family: "Basteleur Bold"
h1.uk-article-title {
font-family: "Basteleur Moonlight";
color: rgba(0, 255, 53, 0.85) !important;
}

h2, h3 {
font-family: "Optiker-K"
font-family: "Basteleur Bold";
}

.uk-overlay-primary h1 {
Expand Down
6 changes: 3 additions & 3 deletions index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@


{{! Portfolio }}
<div class="uk-section uk-padding-small">
<div class="uk-section">
<a id="portfolio"></a>

<div
class="uk-container uk-dark"
uk-scrollspy="cls: uk-animation-slide-right"
>
<h2 class="uk-heading-divider">Portfolio</h2>
<h2 class="uk-heading-divider uk-text-center">Portfolio</h2>

{{> portfolio}}
</div>
Expand All @@ -24,7 +24,7 @@
<a id="readings"></a>

<div class="uk-container uk-dark" uk-scrollspy="cls: uk-animation-slide-right">
<h2 class="uk-heading-divider">Readings</h2>
<h2 class="uk-heading-divider uk-text-center">Readings</h2>
{{> readings posts=posts featuredOnly=true }}
{{#getPostByTags "post-index" ""}}
<div class="uk-margin uk-flex uk-flex-right">
Expand Down
10 changes: 6 additions & 4 deletions partials/post-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
{{else}}
<img src="{{@config.custom.postDefaultHeaderImageUrl}}" uk-cover>
{{/checkIfAll}}
<canvas width="300" height="300"></canvas>
<canvas width="96" height="96"></canvas>
</div>

<div class="uk-card-header">
<div class="uk-grid-small uk-flex-middle" uk-grid>
<div class="uk-width-auto">
<img class="uk-border-circle" width="40" height="40" src="{{author.avatarImage.url}}" alt="Avatar">
<img class="uk-border-circle" width="48" height="48" src="{{author.avatarImage.url}}" alt="Avatar">
</div>
<div class="uk-width-expand">
<h3 class="uk-card-title uk-margin-remove-bottom">{{title}}</h3>
Expand All @@ -23,8 +23,10 @@
</div>
</div>

<div class="uk-card-body" uk-height-viewport="expand: true">
<p>{{excerpt}}</p>
<div
class="uk-card-body uk-padding-remove-top uk-padding-remove-bottom"
>
<p>{{{excerpt}}}</p>
</div>

<div class="uk-card-footer">
Expand Down
2 changes: 1 addition & 1 deletion partials/readings.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{! Posts listing }}
<div class="uk-grid-small uk-child-width-1-2@m" uk-grid uk-height-match=".uk-card-body > p">
<div class="uk-grid-small uk-child-width-1-2@m" uk-grid="masonry: true">
{{#each posts}}
{{#unless isHidden}}
{{#if ../featuredOnly }}
Expand Down
9 changes: 6 additions & 3 deletions post-index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
{{> head}}
{{> navbar}}

<main class="uk-container uk-animation-fade">
{{> readings posts=@website.contentStructure.posts featuredOnly=false }}
</main>
<div class="uk-section uk-padding-small">
<div class="uk-container uk-animation-fade">
<h2 class="uk-heading-divider uk-text-center">Readings</h2>
{{> readings posts=@website.contentStructure.posts featuredOnly=false }}
</div>
</div>

{{> footer}}
Loading

0 comments on commit 3122a0d

Please sign in to comment.