Skip to content

Commit

Permalink
fix: rootstate error
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSM committed Sep 22, 2023
1 parent 7b0ab64 commit 01bf039
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 9 deletions.
3 changes: 3 additions & 0 deletions apps/app/components/atoms/AppIconButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const apps: { [key: string]: { url: string } } = {
solidity: {
url: "https://soliditylang.org/?utm_source=menthor.io",
},
html: {
url: "https://developer.mozilla.org/pt-BR/docs/Web/HTML?utm_source=menthor.io",
},
};
</script>

Expand Down
7 changes: 6 additions & 1 deletion apps/app/components/content/ProseA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ defineProps({
</script>

<template>
<NuxtLink :href="href" target="_blank" external>
<NuxtLink
:href="href"
target="_blank"
external
class="font-bold border-b border-pink-500 hover:border-b-[2px]"
>
<slot />
</NuxtLink>
</template>
5 changes: 5 additions & 0 deletions apps/app/components/content/ProseUl.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<ol class="list-disc list-inside">
<slot />
</ol>
</template>
6 changes: 6 additions & 0 deletions apps/app/public/app/logos/html.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions apps/app/stores/components/defaultAside.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineStore } from "pinia";

export type RootState = {
export type DefaultAside = {
opened: boolean;
};

export const useDefaultAsideStore = defineStore("defaultAside", {
state: (): RootState => ({
state: (): DefaultAside => ({
opened: false,
}),
});
4 changes: 2 additions & 2 deletions apps/app/stores/components/enrollmentModal.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineStore } from "pinia";

export type RootState = {
export type Enrollment = {
opened: boolean;
};

export const useEnrollmentModalStore = defineStore("enrollmentModal", {
state: (): RootState => ({
state: (): Enrollment => ({
opened: false,
}),
});
12 changes: 8 additions & 4 deletions packages/assets/styles/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@
@apply text-zinc-800 mb-4;
}

#nuxt_content p a {
@apply font-bold border-b border-pink-500 hover:border-b-[2px];
}

#nuxt_content code .line {
@apply px-4;
}

#nuxt_content a code {
@apply !border-dashed border-2 hover:border-pink-500;
}

#nuxt_content a a {
@apply !border-none;
}

#nuxt_content code .line.highlight {
@apply pl-3 pr-4 border-l-[2px] border-zinc-950 bg-zinc-50;
}
Expand Down

0 comments on commit 01bf039

Please sign in to comment.