Skip to content

Commit 20cb2b0

Browse files
committed
style: properly install prettier and format all
1 parent 128348e commit 20cb2b0

19 files changed

+495
-243
lines changed

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore artifacts
2+
.nuxt
3+
.output
4+
node_modules
5+
pnpm-lock.yaml
6+
pnpm-workspace.yaml
7+
playwright-report

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

CHANGELOG.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
- Color contrast ([#6](https://github.com/tmlmt/homepage/pull/6))
7171
- **HeaderBar:** Link accessibility ([#7](https://github.com/tmlmt/homepage/pull/7))
7272

73-
### ❤️ Contributors
73+
### ❤️ Contributors
7474

7575
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
7676

@@ -84,7 +84,7 @@
8484
- Create ci-cd Github Action ([4e07ea1](https://github.com/tmlmt/homepage/commit/4e07ea1))
8585
- Update source dir ([6f222bb](https://github.com/tmlmt/homepage/commit/6f222bb))
8686

87-
### ❤️ Contributors
87+
### ❤️ Contributors
8888

8989
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
9090

@@ -99,9 +99,9 @@
9999

100100
### 🩹 Fixes
101101

102-
- **orsted:** Better icons ([59e3dca](https://github.com/tmlmt/homepage/commit/59e3dca))
102+
- **orsted:** Better icons ([59e3dca](https://github.com/tmlmt/homepage/commit/59e3dca))
103103

104-
### ❤️ Contributors
104+
### ❤️ Contributors
105105

106106
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
107107

@@ -113,7 +113,7 @@
113113

114114
- **index:** Title top margin ([4ff6a1c](https://github.com/tmlmt/homepage/commit/4ff6a1c))
115115

116-
### ❤️ Contributors
116+
### ❤️ Contributors
117117

118118
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
119119

@@ -139,7 +139,7 @@
139139
- Decrease margins on mobile ([a971c42](https://github.com/tmlmt/homepage/commit/a971c42))
140140
- **index:** Improve text ([8893da0](https://github.com/tmlmt/homepage/commit/8893da0))
141141

142-
### ❤️ Contributors
142+
### ❤️ Contributors
143143

144144
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
145145

@@ -152,7 +152,7 @@
152152
- Remove business cards from sitemap and robots.txt ([2c9878e](https://github.com/tmlmt/homepage/commit/2c9878e))
153153
- Changelog ([c606f50](https://github.com/tmlmt/homepage/commit/c606f50))
154154

155-
### ❤️ Contributors
155+
### ❤️ Contributors
156156

157157
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
158158

@@ -175,7 +175,7 @@
175175

176176
- Rename CardItem to LinkItem and cards to links ([c53fcf8](https://github.com/tmlmt/homepage/commit/c53fcf8))
177177

178-
### ❤️ Contributors
178+
### ❤️ Contributors
179179

180180
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
181181

@@ -187,7 +187,7 @@
187187

188188
- **index:** Main content width ([9bd834b](https://github.com/tmlmt/homepage/commit/9bd834b))
189189

190-
### ❤️ Contributors
190+
### ❤️ Contributors
191191

192192
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
193193

@@ -217,7 +217,6 @@
217217

218218
- Update README and LICENSEs ([c38dbab](https://github.com/tmlmt/homepage/commit/c38dbab))
219219

220-
### ❤️ Contributors
220+
### ❤️ Contributors
221221

222222
- Thomas Lamant ([@tmlmt](http://github.com/tmlmt))
223-

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Source code of [my homepage](https://www.tmlmt.com), made with [Nuxt](https://nu
88

99
## Fork
1010

11-
If you want to work and reuse the code:
11+
If you want to work and reuse the code:
12+
1213
- Install pnpm (see [docs](https://pnpm.io/installation))
1314
- Clone the git repo
1415
- Install the dependencies: `pnpm install`

app/assets/main.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
body {
22
margin: 0;
3-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3+
font-family:
4+
system-ui,
5+
-apple-system,
6+
BlinkMacSystemFont,
7+
"Segoe UI",
8+
Roboto,
9+
Oxygen,
10+
Ubuntu,
11+
Cantarell,
12+
"Open Sans",
13+
"Helvetica Neue",
14+
sans-serif;
415
}
516

6-
a, a:visited {
17+
a,
18+
a:visited {
719
color: #424242;
820
text-decoration: none;
921
}
1022

1123
a:hover {
12-
color: #979797
24+
color: #979797;
1325
}
1426

1527
.text-gradient {
1628
display: inline-block;
17-
background: linear-gradient(to right,#458bfd 0%, #eb7ca7 100%);
29+
background: linear-gradient(to right, #458bfd 0%, #eb7ca7 100%);
1830
background-clip: text;
1931
-webkit-background-clip: text;
2032
-webkit-text-fill-color: transparent;
2133
}
2234

2335
.text-gradient-blue {
2436
display: inline-block;
25-
background: linear-gradient(to right,#0b69ff 0%, #0045b4 100%);
37+
background: linear-gradient(to right, #0b69ff 0%, #0045b4 100%);
2638
background-clip: text;
2739
-webkit-background-clip: text;
2840
-webkit-text-fill-color: transparent;

app/components/FooterBar.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
2-
<div class="flex justify-content-center footer mt-6 mx-3 pb-6 text-sm text-700">
3-
🇨🇵🇯🇵❤️ - 2023 ~ Present &#169; Thomas Lamant - 🏠🇩🇰
2+
<div
3+
class="flex justify-content-center footer mt-6 mx-3 pb-6 text-sm text-700"
4+
>
5+
🇨🇵🇯🇵❤️ - 2023 ~ Present &#169; Thomas Lamant - 🏠🇩🇰
46
</div>
57
</template>
68

app/components/HeaderBar.vue

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
11
<script setup lang="ts">
2-
import logoSrc from '~/assets/logo.svg'
2+
import logoSrc from "~/assets/logo.svg";
33
</script>
44

55
<template>
66
<div class="grid justify-content-between align-content-center m-3">
77
<div class="col-4 flex align-items-center">
8-
<NuxtLink to="/"><img :src="logoSrc" width="40" alt="Logo"></NuxtLink>
8+
<NuxtLink to="/"><img :src="logoSrc" width="40" alt="Logo" /></NuxtLink>
99
</div>
1010
<div class="col-4 flex justify-content-end align-items-center">
1111
<NuxtLink to="/links" class="mx-2">Links</NuxtLink>
12-
<a v-umami="'LinkedIn profile'" href="https://www.linkedin.com/in/thomas-lamant-9a28423b/" aria-label="LinkedIn profile" target="_blank"><i class="pi pi-linkedin mx-2" /></a>
13-
<a v-umami="'Instagram profile'" href="https://instagram.com/tmlmt" aria-label="Instagram profile" target="_blank"><i class="pi pi-instagram mx-2" /></a>
14-
<a v-umami="'Github profile'" href="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/tmlmt" aria-label="GitHub profile" target="_blank"><i class="pi pi-github mx-2" /></a>
15-
<a v-umami="'Contact link'" href="https://blog.tmlmt.com/contact" aria-label="Send me a message" target="_blank"><i class="pi pi-envelope mx-2" /></a>
12+
<a
13+
v-umami="'LinkedIn profile'"
14+
href="https://www.linkedin.com/in/thomas-lamant-9a28423b/"
15+
aria-label="LinkedIn profile"
16+
target="_blank"
17+
><i class="pi pi-linkedin mx-2"
18+
/></a>
19+
<a
20+
v-umami="'Instagram profile'"
21+
href="https://instagram.com/tmlmt"
22+
aria-label="Instagram profile"
23+
target="_blank"
24+
><i class="pi pi-instagram mx-2"
25+
/></a>
26+
<a
27+
v-umami="'Github profile'"
28+
href="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/tmlmt"
29+
aria-label="GitHub profile"
30+
target="_blank"
31+
><i class="pi pi-github mx-2"
32+
/></a>
33+
<a
34+
v-umami="'Contact link'"
35+
href="https://blog.tmlmt.com/contact"
36+
aria-label="Send me a message"
37+
target="_blank"
38+
><i class="pi pi-envelope mx-2"
39+
/></a>
1640
</div>
1741
</div>
1842
</template>

app/components/LinkItem.vue

Lines changed: 51 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<script setup lang="ts">
2-
const props = withDefaults(defineProps<{
3-
id: string,
4-
alt: string,
5-
title: string,
6-
size: number,
7-
link: string,
8-
linkText?: string,
9-
column?: 'left' | 'right',
10-
row: 'top' | 'bottom' }>(), { column: 'right', linkText: '' })
2+
const props = withDefaults(
3+
defineProps<{
4+
id: string;
5+
alt: string;
6+
title: string;
7+
size: number;
8+
link: string;
9+
linkText?: string;
10+
column?: "left" | "right";
11+
row: "top" | "bottom";
12+
}>(),
13+
{ column: "right", linkText: "" },
14+
);
1115
1216
// Managing card overlay opacity
1317
// - Laptops:
@@ -18,42 +22,55 @@ const props = withDefaults(defineProps<{
1822
// (on Chrome: click = mouseenter + click; on Firefox: click = click)
1923
// onLeave resets opacity (to 0) and forced mode (to disabled) so that we can hover again
2024
21-
const isOpaque = ref(false)
22-
const isClick = ref()
23-
const isEnter = ref()
25+
const isOpaque = ref(false);
26+
const isClick = ref();
27+
const isEnter = ref();
2428
const onClick = () => {
25-
isClick.value = true
29+
isClick.value = true;
2630
if (isEnter.value) {
27-
isOpaque.value = true
31+
isOpaque.value = true;
2832
} else {
29-
isOpaque.value = !isOpaque.value
33+
isOpaque.value = !isOpaque.value;
3034
}
31-
isEnter.value = false
32-
}
35+
isEnter.value = false;
36+
};
3337
const onLeave = () => {
34-
isClick.value = false
35-
isOpaque.value = false
36-
}
38+
isClick.value = false;
39+
isOpaque.value = false;
40+
};
3741
const onEnter = () => {
38-
isEnter.value = true
39-
isOpaque.value = true
40-
}
42+
isEnter.value = true;
43+
isOpaque.value = true;
44+
};
4145
</script>
4246

4347
<template>
4448
<div
4549
:class="[
4650
'col-12 md:col-6 flex p-0 card',
4751
props.column === 'left' ? 'md:justify-content-end' : '',
48-
props.row === 'top' ? 'md:align-items-end' : 'md:align-items-start']"
52+
props.row === 'top' ? 'md:align-items-end' : 'md:align-items-start',
53+
]"
4954
>
50-
<div class="card-inner md:mx-2 md:mb-2" @click="onClick" @mouseenter="onEnter" @mouseleave="onLeave">
55+
<div
56+
class="card-inner md:mx-2 md:mb-2"
57+
@click="onClick"
58+
@mouseenter="onEnter"
59+
@mouseleave="onLeave"
60+
>
5161
<div>
52-
<nuxt-img :src="`/links/${props.id}.png`" sizes="sm:100vw md:360px lg:400px" :alt="props.alt" />
62+
<nuxt-img
63+
:src="`/links/${props.id}.png`"
64+
sizes="sm:100vw md:360px lg:400px"
65+
:alt="props.alt"
66+
/>
5367
</div>
5468
<div
5569
class="card-overlay text-white surface-900 px-4 py-2 absolute top-0 left-0 transition-ease-in-out transition-duration-500"
56-
:class="{'card-opaque' : isOpaque && isClick, 'card-transparent': !isOpaque && isClick}"
70+
:class="{
71+
'card-opaque': isOpaque && isClick,
72+
'card-transparent': !isOpaque && isClick,
73+
}"
5774
>
5875
<div class="flex h-full flex-column justify-content-between">
5976
<div>
@@ -62,7 +79,10 @@ const onEnter = () => {
6279
</div>
6380
<div>
6481
<p>
65-
<a :href="props.link" class="explicit-link" target="_blank"><i class="pi pi-external-link mr-1" /> Go to {{ props.linkText ? props.linkText : props.link }}</a>
82+
<a :href="props.link" class="explicit-link" target="_blank"
83+
><i class="pi pi-external-link mr-1" /> Go to
84+
{{ props.linkText ? props.linkText : props.link }}</a
85+
>
6686
</p>
6787
</div>
6888
</div>
@@ -72,7 +92,6 @@ const onEnter = () => {
7292
</template>
7393

7494
<style lang="postcss">
75-
7695
.card {
7796
@media (max-width: 768px) {
7897
justify-content: center;
@@ -115,18 +134,18 @@ const onEnter = () => {
115134
}
116135
117136
&:hover {
118-
color: #ffffff
137+
color: #ffffff;
119138
}
120139
}
121140
}
122141
}
123142
}
124143
125144
.card-opaque {
126-
opacity: 1 !important
145+
opacity: 1 !important;
127146
}
128147
129148
.card-transparent {
130-
opacity: 0 !important
149+
opacity: 0 !important;
131150
}
132151
</style>

app/layouts/cards.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<script setup lang="ts">
2-
const route = useRoute()
2+
const route = useRoute();
33
44
useSeoMeta({
5-
author: 'Thomas Lamant',
6-
title: route.title as string || 'Thomas Lamant',
7-
ogTitle: route.title as string || 'Thomas Lamant',
8-
description: route.description as string || "Thomas Lamant's homepage",
9-
ogDescription: route.description as string || "Thomas Lamant's homepage"
10-
})
5+
author: "Thomas Lamant",
6+
title: (route.title as string) || "Thomas Lamant",
7+
ogTitle: (route.title as string) || "Thomas Lamant",
8+
description: (route.description as string) || "Thomas Lamant's homepage",
9+
ogDescription: (route.description as string) || "Thomas Lamant's homepage",
10+
});
1111
</script>
1212

1313
<template>
14-
<div class="flex flex-column h-full w-full md:justify-content-center align-items-center">
14+
<div
15+
class="flex flex-column h-full w-full md:justify-content-center align-items-center"
16+
>
1517
<main>
1618
<slot />
1719
</main>

0 commit comments

Comments
 (0)