Skip to content

Commit 40404b6

Browse files
authored
Merge pull request #10 from milan-codes/dev
Redesign, code quality workflows
2 parents 562466d + bb28c3a commit 40404b6

23 files changed

Lines changed: 148 additions & 203 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Check formatting
2+
on:
3+
pull_request:
4+
branches: [main]
5+
jobs:
6+
format:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: oven-sh/setup-bun@v2
11+
- name: Install dependencies
12+
run: bun install
13+
- name: Check formatting
14+
run: bun format:check
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Check linting
2+
on:
3+
pull_request:
4+
branches: [main]
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: oven-sh/setup-bun@v2
11+
- name: Install dependencies
12+
run: bun install
13+
- name: Check linting
14+
run: bun lint

.prettierrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// .prettierrc.mjs
22
/** @type {import("prettier").Config} */
33
export default {
4-
plugins: ["prettier-plugin-astro"],
4+
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
55
overrides: [
66
{
77
files: "*.astro",

bun.lockb

1.31 KB
Binary file not shown.

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default { extends: ['@commitlint/config-conventional'] };
1+
export default { extends: ["@commitlint/config-conventional"] };

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"preview": "astro preview",
1111
"astro": "astro",
1212
"lint": "eslint .",
13+
"format:write": "prettier . --write",
14+
"format:check": "prettier . --check",
1315
"prepare": "husky"
1416
},
1517
"dependencies": {
@@ -32,6 +34,7 @@
3234
"husky": "^9.1.6",
3335
"prettier": "^3.3.3",
3436
"prettier-plugin-astro": "^0.14.1",
37+
"prettier-plugin-tailwindcss": "^0.6.8",
3538
"rehype-katex": "^7.0.1",
3639
"rehype-mathjax": "^6.0.0",
3740
"remark-math": "^6.0.0",

src/assets/memoji-mac.png

-102 KB
Binary file not shown.

src/components/About.astro

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,5 @@
1-
---
2-
import { Image } from "astro:assets";
3-
import memoji from "../assets/memoji-mac.png";
4-
---
5-
6-
<div>
7-
<div class="flex my-8">
8-
<Image
9-
alt="Milán Herke"
10-
src={memoji}
11-
loading="eager"
12-
class="h-16 w-16 rounded-lg object-cover mr-4"
13-
/>
14-
<div>
15-
<h1 class="text-xl text-gray-900 dark:text-gray-100 tracking-wider">
16-
Milán Herke
17-
</h1>
18-
<h1 class="text-gray-600 dark:text-gray-400">Software engineer</h1>
19-
<h1 class="text-sm text-gray-400 dark:text-gray-600 hover:underline">
20-
<a
21-
href="mailto:milanherke@protonmail.com"
22-
class="inline-flex items-center"
23-
>milanherke@protonmail.com <svg
24-
xmlns="http://www.w3.org/2000/svg"
25-
width="24"
26-
height="24"
27-
viewBox="0 0 24 24"
28-
fill="none"
29-
stroke="currentColor"
30-
stroke-width="2"
31-
stroke-linecap="round"
32-
stroke-linejoin="round"
33-
class="ml-1 h-4 w-4"
34-
><line x1="7" y1="17" x2="17" y2="7"></line><polyline
35-
points="7 7 17 7 17 17"></polyline></svg
36-
></a
37-
>
38-
</h1>
39-
</div>
40-
</div>
41-
<div class="my-8">
42-
<h1 class="text-gray-900 dark:text-gray-100 mb-2 tracking-wider">About</h1>
43-
<p class="text-gray-600 dark:text-gray-400">
44-
Hi, I'm Milán. I enjoy building creative, cool products. I'm currently
45-
working towards obtaining my bachelor's degree in computer science at the
46-
University of Pécs, Faculty of Sciences.
47-
</p>
48-
</div>
1+
<div class="my-4 text-gray-600 dark:text-gray-400">
2+
Hi, I'm Milán. I enjoy building creative, cool products. I'm currently working
3+
towards obtaining my bachelor's degree in computer science at the University
4+
of Pécs, Faculty of Sciences.
495
</div>

src/components/Announcement.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const { announcement } = Astro.props;
88
---
99

1010
<div>
11-
<h1 class="text-xl text-gray-900 dark:text-gray-100 tracking-wider">
11+
<h1 class="text-xl tracking-wider text-gray-900 dark:text-gray-100">
1212
{announcement.data.title}
1313
</h1>
1414
<h1 class="text-gray-600 dark:text-gray-400">
1515
{announcement.data.description}
1616
</h1>
17-
<div class="prose dark:prose-invert text-gray-600 dark:text-gray-400 my-8">
17+
<div class="prose my-8 text-gray-600 dark:prose-invert dark:text-gray-400">
1818
<slot />
1919
</div>
2020
</div>

src/components/ArrowRight.astro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<svg
2+
xmlns="http://www.w3.org/2000/svg"
3+
width="24"
4+
height="24"
5+
viewBox="0 0 24 24"
6+
fill="none"
7+
stroke="currentColor"
8+
stroke-width="2"
9+
stroke-linecap="round"
10+
stroke-linejoin="round"
11+
class="ml-1 h-4 w-4"
12+
><line x1="5" y1="12" x2="19" y2="12"></line><polyline
13+
points="12 5 19 12 12 19"></polyline></svg
14+
>

0 commit comments

Comments
 (0)