Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
<time datetime="{{date format="YYYY-MM-DD"}}">
{{date format="D MMM YYYY"}}
</time>
<span>
Tags:&nbsp;
{{#foreach tags}}
<span class="gh-post-meta-content-item">
<a href={{url}}>
{{name}}
</a>
</span>
{{/foreach}}
</span>
<span>
Written by:&nbsp;
{{#foreach authors}}
Expand All @@ -31,6 +21,19 @@
</span>
{{/foreach}}
</span>
<span>
{{reading_time}}
</span>
</span>

<span class="flex flex-wrap content-center gap-4 justify-center">
{{#foreach tags}}
<div class="flex-none text-base text-black hover:underline border-2 border-black hover:border-yellow-500 rounded-full px-3">
Copy link
Member

Choose a reason for hiding this comment

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

It would be good if, on hover, the background darkens slightly. See https://material-ui.com/components/chips/ for an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

<a href={{url}}>
Copy link
Member

Choose a reason for hiding this comment

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

On second thought, I think having underline for this doesn't fit well... could you add a class to disable the underline on hover?

Copy link
Member

Choose a reason for hiding this comment

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

Also, can the text here be of the same colour as the span above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"same colour as the span above?"

Im not sure which element youre referring to. It could be:

  1. Light grey "Written By:" color
  2. Black Title color (no difference)

Copy link
Member

Choose a reason for hiding this comment

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

I'm referring to the light grey color. Apologies for the ambiguity!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

{{name}}
</a>
</div>
{{/foreach}}
</span>

{{#if custom_excerpt}}
Expand Down
12 changes: 11 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ module.exports = {
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
extend: {
typography: {
DEFAULT: {
css: {
a: {
textDecoration: "none",
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a big fan of this as it leaves users with no visual indication of hyperlinks, and makes life difficult if we don't use other colours to distinguish.

Copy link
Member

@wei2912 wei2912 Sep 14, 2021

Choose a reason for hiding this comment

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

Can we revert the changes in tailwind.config.js? Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

I'll assign @Hackin7 to work on this too, since it is related to #309.

},
},
},
},
},
},
variants: {
extend: {},
Expand Down