Skip to content

Commit

Permalink
feat: format
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Jan 20, 2024
1 parent 7e29b8c commit aff0c9f
Show file tree
Hide file tree
Showing 11 changed files with 338 additions and 293 deletions.
123 changes: 50 additions & 73 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,115 +1,92 @@
-
name: duplicate
- name: duplicate
color: ededed

Check warning on line 2 in .github/labels.yaml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (ededed)
description: 'This issue or Pull Request already exists'
description: "This issue or Pull Request already exists"
aliases: []
-
name: 'good first issue'
- name: "good first issue"
color: 7057ff
description: 'Good for newcomers'
description: "Good for newcomers"
aliases: []
-
name: 'help wanted'
- name: "help wanted"
color: e99695
description: 'Extra attention is needed'
description: "Extra attention is needed"
aliases: []
-
name: 'Status: Abandoned'
color: '000000'
description: 'The issue or Pull Request is wontfix'
- name: "Status: Abandoned"
color: "000000"
description: "The issue or Pull Request is wontfix"

Check warning on line 15 in .github/labels.yaml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (wontfix)
aliases: []
-
name: 'Status: Blocked'
- name: "Status: Blocked"
color: ee0701
description: 'Progress on the issue is Blocked'
description: "Progress on the issue is Blocked"
aliases: []
-
name: 'Status: In Progress'
- name: "Status: In Progress"
color: cccccc
description: 'Work in Progress'
description: "Work in Progress"
aliases: []
-
name: 'Status: Need More Info'
- name: "Status: Need More Info"
color: F9C90A
description: 'Lacks enough info to make progress'
description: "Lacks enough info to make progress"
aliases: []
-
name: 'Status: PR Welcome'
color: '2E7733'
description: 'Welcome to Pull Request'
- name: "Status: PR Welcome"
color: "2E7733"
description: "Welcome to Pull Request"
aliases: []
-
name: 'Status: Proposal'
- name: "Status: Proposal"
color: d4c5f9
description: 'Request for comments'
description: "Request for comments"
aliases: []
-
name: 'Status: Review Needed'
- name: "Status: Review Needed"
color: fbca04

Check warning on line 38 in .github/labels.yaml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (fbca)
description: 'Request for review comments'
description: "Request for review comments"
aliases: []
-
name: 'Type: Breaking Change'
- name: "Type: Breaking Change"
color: b60205
description: 'Includes breaking changes'
description: "Includes breaking changes"
aliases: []
-
name: 'Type: Bug'
- name: "Type: Bug"
color: ee0701
description: 'Bug or Bug fixes'
description: "Bug or Bug fixes"
aliases: []
-
name: 'Type: CI'
- name: "Type: CI"
color: ffd412
description: 'Changes to CI configuration files and scripts'
description: "Changes to CI configuration files and scripts"
aliases: []
-
name: 'Type: Dependencies'
- name: "Type: Dependencies"
color: 0366d6
description: 'Dependency issues or Changes to dependency files'
description: "Dependency issues or Changes to dependency files"
aliases: []
-
name: 'Type: Documentation'
- name: "Type: Documentation"
color: 0e8a16
description: 'Documentation only changes'
description: "Documentation only changes"
aliases: []
-
name: 'Type: Feature'
- name: "Type: Feature"
color: 1d76db
description: 'New Feature'
description: "New Feature"
aliases: []
-
name: 'Type: Maintenance'
- name: "Type: Maintenance"
color: abd406
description: 'Repository Maintenance'
description: "Repository Maintenance"
aliases: []
-
name: 'Type: Meta'
- name: "Type: Meta"
color: BFD4F2
description: 'Type: Meta - Related to repository itself'
description: "Type: Meta - Related to repository itself"
aliases: []
-
name: 'Type: Question'
- name: "Type: Question"
color: cc317c
description: 'Further information is requested'
description: "Further information is requested"
aliases: []
-
name: 'Type: Refactoring'
- name: "Type: Refactoring"
color: fbca04

Check warning on line 78 in .github/labels.yaml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (fbca)
description: 'A code change that neither fixes a bug nor adds a feature'
description: "A code change that neither fixes a bug nor adds a feature"
aliases: []
-
name: 'Type: Release'
color: '5319E7'
description: 'Related to release process'
- name: "Type: Release"
color: "5319E7"
description: "Related to release process"
aliases: []
-
name: 'Type: Security'
- name: "Type: Security"
color: ee0701
description: 'Vulnerability disclosure or Fixing security issue'
description: "Vulnerability disclosure or Fixing security issue"
aliases: []
-
name: 'Type: Testing'
color: '257759'
description: 'Adding missing tests or correcting existing tests'
- name: "Type: Testing"
color: "257759"
description: "Adding missing tests or correcting existing tests"
aliases: []
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/biomejs/pre-commit
- repo: https://github.com/biomejs/pre-commit
rev: "v0.1.0"
hooks:
- id: biome-check
- id: biome-check
additional_dependencies: ["@biomejs/[email protected]"]

Check warning on line 6 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (biomejs)
12 changes: 12 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"plugins": ["prettier-plugin-astro"],

Check warning on line 3 in .prettierrc.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (astro)
"overrides": [
{
"files": "*.astro",

Check warning on line 6 in .prettierrc.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (astro)
"options": {
"parser": "astro"

Check warning on line 8 in .prettierrc.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (astro)
}
}
]
}
1 change: 1 addition & 0 deletions apps/static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"test": "tsc -p . --noEmit",
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
Expand Down
100 changes: 50 additions & 50 deletions apps/static/src/components/Card.astro
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
---
interface Props {
title: string;
body: string;
href: string;
title: string;
body: string;
href: string;
}
const { href, title, body } = Astro.props;
---

<li class="link-card">
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
{body}
</p>
</a>
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
{body}
</p>
</a>
</li>
<style>
.link-card {
list-style: none;
display: flex;
padding: 1px;
background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
background-color: #23262d;
opacity: 0.8;
}
h2 {
margin: 0;
font-size: 1.25rem;
transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
p {
margin-top: 0.5rem;
margin-bottom: 0;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
background-image: var(--accent-gradient);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent-light));
}
.link-card {
list-style: none;
display: flex;
padding: 1px;
background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
background-color: #23262d;
opacity: 0.8;
}
h2 {
margin: 0;
font-size: 1.25rem;
transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
p {
margin-top: 0.5rem;
margin-bottom: 0;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
background-image: var(--accent-gradient);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent-light));
}
</style>
78 changes: 39 additions & 39 deletions apps/static/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
---
interface Props {
title: string;
title: string;
}
const { title } = Astro.props;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background: #13151a;
background-size: 224px;
}
code {
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background: #13151a;
background-size: 224px;
}
code {
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
</style>
Loading

0 comments on commit aff0c9f

Please sign in to comment.