Skip to content

Commit

Permalink
better theme
Browse files Browse the repository at this point in the history
  • Loading branch information
EndangeredMassa committed Jan 15, 2024
1 parent 77e2fe7 commit 5f59a7c
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 15 deletions.
7 changes: 4 additions & 3 deletions app/components/article-card.gjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { LinkTo } from '@ember/routing';
import IconSvg from './icon-svg';

<template>
<div class="blog-item">
<h2>
<h1>
<LinkTo class="post-link"
@route="blog.article"
@model={{@article}}>
{{@article.title}}
</LinkTo>
</h2>
<p class="meta"><i>{{@article.date}}</i></p>
</h1>
<p class="meta"><IconSvg @name="calendar" /> <i>{{@article.date}}</i></p>
<p class="meta">{{{@article.description}}}</p>
</div>
</template>
4 changes: 2 additions & 2 deletions app/components/article-header.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { LinkTo } from '@ember/routing';

<template>
<div class="blog-item">
<h2>
<h1>
{{@article.title}}
</h2>
</h1>
<p class="meta"><i>{{@article.date}}</i></p>
</div>
</template>
2 changes: 1 addition & 1 deletion app/components/icon-button.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<a ...attributes class="icon-button" href={{@href}} title={{@title}}>
{{svg-jar (concat 'icon-' @icon) width='22px'}}
<IconSvg @name={{@icon}} />
</a>
1 change: 1 addition & 0 deletions app/components/icon-svg.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{svg-jar (concat 'icon-' @name) width='22px' style="position: relative; top: 4px;"}}
39 changes: 33 additions & 6 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@
/* override the width of the main content */
grid-template-columns: 1fr min(55rem,90%) 1fr;

--bg: #000000;
/* --bg: #000000;
--accent-bg: #151149;
--text: #4FA5E4;
--text-light: #4FA5E4;
--accent: #E14BC9;
--accent: #E14BC9; */

--bg: #000000;
--accent-bg: #151149;
/* --text: #4FA5E4; */
/* --text-light: #4FA5E4; */
--accent: #52b7dc;
--accent-sub2: #9caae4;
--accent-sub3: #be9cde;

header {
color: #FFFFFF;
Expand All @@ -36,10 +44,29 @@
}
}

.site-title {
font-size: 2em;
font-weight: bold;
color: #E84CCF;
margin-bottom: 0.2em;
}

h1, h2, h3 {
line-height: 1;
}

h1 {
color: var(--accent)
}

h2 {
color: var(--accent-sub2)
}

h3 {
color: var(--accent-sub3)
}

a, a:visited {
color:var(--accent);
}
Expand Down Expand Up @@ -106,12 +133,12 @@ footer p a[href^="https://"]:after,
TODO: move the title to not an h1, then move these styles to h1
*/

.blog-item h2 a {
.blog-item h1 a {
font-size: 1.6rem;
}

.blog-item h2 {
color: var(--accent);
.blog-item h1 {
/* color: var(--accent); */
margin-bottom: 0.4rem;
font-size: 2.6rem;
}
Expand All @@ -125,7 +152,7 @@ footer p a[href^="https://"]:after,
text-decoration: none;

svg {
color: var(--text);
color: var(--accent);
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/templates/application.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MyRouteComponent extends Component {

<template>
<header>
<h1>Sean Massa's Labs</h1>
<div class="site-title">Sean Massa's Labs</div>
<nav>
<LinkTo @route="index">Home</LinkTo>
<LinkTo @route="blog">Blog</LinkTo>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/blog/article/theme-pact.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ I like this model because you control the direction and personal outputs. Succes

By leveraging the power of direction, defaults, and habits, this framework makes success happen as a matter of course. Well, that's the theory.

## What is a Theme?
### What is a Theme?

*This concept comes from the [Theme System](https://www.thethemesystem.com/), developed by [Myke Hurley](https://twitter.com/imyke) and [CGP Grey](https://twitter.com/cgpgrey/) through [Cortex](https://www.relay.fm/cortex).*

Expand All @@ -48,7 +48,7 @@ For my purposes, I decided a theme has to be:

## What is a PACT Goal?

*This concept comes from [SMART goals are not so smart: make a PACT instead](https://nesslabs.com/smart-goals-pact)* by [Anne-Laure Le Cunff](https://twitter.com/neuranne) through [Ness Labs](https://twitter.com/ness_labs).
*This concept comes from [SMART goals are not so smart: make a PACT instead](https://nesslabs.com/smart-goals-pact) by [Anne-Laure Le Cunff](https://twitter.com/neuranne) through [Ness Labs](https://twitter.com/ness_labs).*

Anne-Laure defines a PACT Goal as:

Expand Down
3 changes: 3 additions & 0 deletions public/assets/icon-calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f59a7c

Please sign in to comment.