aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2024-01-22 03:30:30 +0100
committerPauline <git@ethanlibs.co>2024-01-22 03:30:30 +0100
commit61ba9fd1f62cb959f197cf95c2686809318c6482 (patch)
tree44bec06175f1b833f2131d14f461cf288e5b9200 /apps/website/src/components/base
parentfbaa87ef4fcad18ac03cb0cfa82fb106751c1b38 (diff)
downloadNexus-61ba9fd1f62cb959f197cf95c2686809318c6482.tar.gz
Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.tar.bz2
Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.zip
chore(deps): bump and format
Diffstat (limited to 'apps/website/src/components/base')
-rw-r--r--apps/website/src/components/base/Button.astro12
-rw-r--r--apps/website/src/components/base/Card.astro4
-rw-r--r--apps/website/src/components/base/FormattedDate.astro2
-rw-r--r--apps/website/src/components/base/Header.astro6
-rw-r--r--apps/website/src/components/base/Paragraph.astro4
-rw-r--r--apps/website/src/components/base/ScreenOverlay.astro2
-rw-r--r--apps/website/src/components/base/Section.astro12
-rw-r--r--apps/website/src/components/base/Slider.astro10
-rw-r--r--apps/website/src/components/base/navbar/NavbarElement.astro7
9 files changed, 31 insertions, 28 deletions
diff --git a/apps/website/src/components/base/Button.astro b/apps/website/src/components/base/Button.astro
index e529dc5..0a6039f 100644
--- a/apps/website/src/components/base/Button.astro
+++ b/apps/website/src/components/base/Button.astro
@@ -23,12 +23,12 @@ const iconSize = {
};
interface Props extends HTMLAttributes<'button'> {
- style?: keyof typeof styles
- size?: keyof typeof sizes
- text?: string
- iconLeft?: Icons
- iconRight?: Icons
- href?: string
+ style?: keyof typeof styles;
+ size?: keyof typeof sizes;
+ text?: string;
+ iconLeft?: Icons;
+ iconRight?: Icons;
+ href?: string;
}
const {
diff --git a/apps/website/src/components/base/Card.astro b/apps/website/src/components/base/Card.astro
index 6438273..ff8cc91 100644
--- a/apps/website/src/components/base/Card.astro
+++ b/apps/website/src/components/base/Card.astro
@@ -4,8 +4,8 @@ import Icon from '@components/icons/Icon.astro';
import type { HTMLAttributes } from 'astro/types';
interface Props extends HTMLAttributes<'div'> {
- icon: Icons
- text?: string
+ icon: Icons;
+ text?: string;
}
const {
diff --git a/apps/website/src/components/base/FormattedDate.astro b/apps/website/src/components/base/FormattedDate.astro
index af538b9..da68837 100644
--- a/apps/website/src/components/base/FormattedDate.astro
+++ b/apps/website/src/components/base/FormattedDate.astro
@@ -1,6 +1,6 @@
---
interface Props {
- date: Date
+ date: Date;
}
const { date } = Astro.props;
diff --git a/apps/website/src/components/base/Header.astro b/apps/website/src/components/base/Header.astro
index 962b2d4..63199e3 100644
--- a/apps/website/src/components/base/Header.astro
+++ b/apps/website/src/components/base/Header.astro
@@ -14,9 +14,9 @@ const sizes = {
type Headers = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
interface Props extends HTMLAttributes<Headers> {
- size?: keyof typeof sizes
- align?: 'left' | 'center' | 'right' | 'inherit'
- inheritSize?: boolean
+ size?: keyof typeof sizes;
+ align?: 'left' | 'center' | 'right' | 'inherit';
+ inheritSize?: boolean;
}
const {
diff --git a/apps/website/src/components/base/Paragraph.astro b/apps/website/src/components/base/Paragraph.astro
index db0bff6..f700496 100644
--- a/apps/website/src/components/base/Paragraph.astro
+++ b/apps/website/src/components/base/Paragraph.astro
@@ -10,8 +10,8 @@ const sizes = {
};
interface Props extends HTMLAttributes<'p'> {
- text?: string
- size?: keyof typeof sizes
+ text?: string;
+ size?: keyof typeof sizes;
}
const {
diff --git a/apps/website/src/components/base/ScreenOverlay.astro b/apps/website/src/components/base/ScreenOverlay.astro
index 1b97152..4413b61 100644
--- a/apps/website/src/components/base/ScreenOverlay.astro
+++ b/apps/website/src/components/base/ScreenOverlay.astro
@@ -2,7 +2,7 @@
import type { HTMLAttributes } from 'astro/types';
interface Props extends HTMLAttributes<'div'> {
- zIndex?: number
+ zIndex?: number;
}
const {
diff --git a/apps/website/src/components/base/Section.astro b/apps/website/src/components/base/Section.astro
index 6ea3075..e0e994b 100644
--- a/apps/website/src/components/base/Section.astro
+++ b/apps/website/src/components/base/Section.astro
@@ -2,11 +2,11 @@
import type { HTMLAttributes } from 'astro/types';
interface Props extends HTMLAttributes<'section'> {
- maxWidth?: 'none' | String
- colReverse?: boolean
- wrapperClass?: string
- wFull?: boolean
- hFull?: boolean
+ maxWidth?: 'none' | String;
+ colReverse?: boolean;
+ wrapperClass?: string;
+ wFull?: boolean;
+ hFull?: boolean;
}
const {
@@ -30,6 +30,7 @@ const className = `max-w-[${maxWidth}] ${hFull ? 'min-h-screen' : 'h-auto'} ${wF
<div class={className} {...props}>
{twoColumn
? (
+ <>
<div class="flex flex-col items-center text-center w-full md:w-auto md:items-start md:text-left relative">
<slot name="left"></slot>
</div>
@@ -37,6 +38,7 @@ const className = `max-w-[${maxWidth}] ${hFull ? 'min-h-screen' : 'h-auto'} ${wF
<div class="flex flex-col items-center text-center w-full md:w-auto md:items-start md:text-left relative">
<slot name="right"></slot>
</div>
+ </>
)
: (
<slot></slot>
diff --git a/apps/website/src/components/base/Slider.astro b/apps/website/src/components/base/Slider.astro
index 1afd680..e637afe 100644
--- a/apps/website/src/components/base/Slider.astro
+++ b/apps/website/src/components/base/Slider.astro
@@ -2,11 +2,11 @@
import type { HTMLAttributes } from 'astro/types';
interface Props extends HTMLAttributes<'div'> {
- dir?: string
- wrapperClass?: string
- childrenNum: number
- childrenSize?: string
- speed?: string
+ dir?: string;
+ wrapperClass?: string;
+ childrenNum: number;
+ childrenSize?: string;
+ speed?: string;
}
const {
diff --git a/apps/website/src/components/base/navbar/NavbarElement.astro b/apps/website/src/components/base/navbar/NavbarElement.astro
index 5e37253..b1e23d9 100644
--- a/apps/website/src/components/base/navbar/NavbarElement.astro
+++ b/apps/website/src/components/base/navbar/NavbarElement.astro
@@ -8,8 +8,8 @@ import ScrollbarOverlayContainer from '../ScrollbarOverlayContainer.astro';
import Tag from '../Tag.astro';
interface Props {
- element: NavbarElement
- index: number
+ element: NavbarElement;
+ index: number;
}
const {
@@ -35,6 +35,7 @@ function isCurrentPage(url: string): boolean {
: (
<label for={`navbar-input-${index}`} class="group">
{element.dropdown && (
+ <>
<p class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 cursor-default ${isCurrentPage(element.dropdown[0].path ?? '') ? 'text-blue-400' : 'text-gray-700'}`}>
{element.text && element.text}
{element.logo && <Logo size={element.logo[1] < 0 ? undefined : element.logo[1]} logo={element.logo[0] as LogoType}/>}
@@ -93,8 +94,8 @@ function isCurrentPage(url: string): boolean {
</ul>
</ScrollbarOverlayContainer>
</div>
+ </>
)}
</label>
)}
</li>
-{/* WHY IS ESLINT DOING THIS */}