Skip to content

Commit 7b6d60b

Browse files
committed
style: Extract global body styles to main.css and update TeamCard component layout and background.
1 parent 82ec11a commit 7b6d60b

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

assets/css/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
body {
2+
background-color: #111111;
3+
}
4+
@media (prefers-color-scheme: light) {
5+
body {
6+
background-color: #dddddd;
7+
}
8+
}

components/team/TeamCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defineProps({
2323

2424
<template>
2525
<div
26-
class="mx-auto my-2 rounded bg-white bg-gradient-to-b from-green-500 to-green-400 p-2 text-center shadow-xl transition duration-200 ease-in-out hover:scale-105 max-md:mx-6 dark:from-green-800 dark:to-green-700"
26+
class="h-full flex flex-col rounded bg-green-500 bg-gradient-to-b from-green-500 to-green-400 p-2 text-center shadow-xl transition duration-200 ease-in-out hover:scale-105 max-md:mx-6 dark:bg-green-800 dark:from-green-800 dark:to-green-700"
2727
>
2828
<img class="mx-auto mt-4 w-1/3 rounded-full shadow-xl max-md:w-1/4" :src="image" alt="pic" />
2929
<h2 class="mt-2 text-lg font-bold dark:text-white">{{ name }}</h2>

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default defineNuxtConfig({
4646
},
4747
},
4848

49-
css: ["@fortawesome/fontawesome-svg-core/styles.css"],
49+
css: ["@fortawesome/fontawesome-svg-core/styles.css", "~/assets/css/main.css"],
5050

5151
build: {
5252
transpile: [

pages/index.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,4 @@ useSeoMeta({
2727
});
2828
</script>
2929

30-
<style>
31-
body {
32-
background-color: #111111;
33-
}
34-
@media (prefers-color-scheme: light) {
35-
body {
36-
background-color: #dddddd;
37-
}
38-
}
39-
</style>
30+

0 commit comments

Comments
 (0)