-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
72 additions
and
72 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
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
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,17 +1,18 @@ | ||
import React from 'react' | ||
import {CssModuleWrapper} from "~/components/css-module-wrapper"; | ||
|
||
const Tags = ({tags}) => | ||
tags?.length > 0 ? ( | ||
type Props = { | ||
tags: string[] | ||
} | ||
|
||
const Tags: React.FC<Props> = ({tags = []}) => { | ||
return ( | ||
<CssModuleWrapper className={"tags-module"}> | ||
<small className={"tags"}> | ||
{tags.map((tag) => ( | ||
<div key={tag} className={"tag"}> | ||
{tag} | ||
</div> | ||
))} | ||
{tags.map((tag) => <div key={tag} className={"tag"}>{tag}</div>)} | ||
</small> | ||
</CssModuleWrapper> | ||
) : <></> | ||
) | ||
} | ||
|
||
export default Tags |
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,30 +1,30 @@ | ||
.article-module .article-list { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
grid-gap: var(--space-3xl); | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
grid-gap: var(--space-3xl); | ||
} | ||
|
||
.article-module .title { | ||
display: inline-block; | ||
font-size: var(--text-lg); | ||
margin-bottom: var(--space-xs); | ||
margin-top: var(--space-lg); | ||
border-bottom: 1.5px solid transparent; | ||
display: inline-block; | ||
font-size: var(--text-lg); | ||
margin-bottom: var(--space-xs); | ||
margin-top: var(--space-lg); | ||
border-bottom: 1.5px solid transparent; | ||
} | ||
|
||
.article-module .link { | ||
text-decoration: none; | ||
text-decoration: none; | ||
} | ||
|
||
.article-module .link:hover .title { | ||
border-bottom-color: var(--primary); | ||
border-bottom-color: var(--primary); | ||
} | ||
|
||
.article-module .meta { | ||
margin-top: var(--space-md); | ||
display: flex; | ||
justify-content: space-between; | ||
display: flex; | ||
justify-content: space-between; | ||
} |
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,11 +1,12 @@ | ||
.tags-module .tags { | ||
display: flex; | ||
gap: var(--space-md); | ||
display: flex; | ||
gap: var(--space-md); | ||
margin-top: var(--space-md); | ||
} | ||
|
||
.tags-module .tag { | ||
background-color: var(--black-fade-5); | ||
border-radius: var(--radius-sm); | ||
line-height: var(--solid); | ||
padding: var(--space-sm) var(--space-md); | ||
background-color: var(--black-fade-5); | ||
border-radius: var(--radius-sm); | ||
line-height: var(--solid); | ||
padding: var(--space-sm) var(--space-md); | ||
} |
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,4 +1,4 @@ | ||
export function toReadableDate(dateString: string): string { | ||
const options: Intl.DateTimeFormatOptions = {year: "numeric", month: "long", day: "numeric"} | ||
return new Date(dateString).toLocaleDateString(undefined, options) | ||
return new Date(dateString).toLocaleDateString(["de-DE"], options) | ||
} |
8c2b39f
There was a problem hiding this comment.
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: