diff --git a/package.json b/package.json index 9516ad5..ada98cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "website", "type": "module", - "version": "0.6.3", + "version": "0.6.4", "scripts": { "dev": "astro dev", "start": "astro dev", @@ -9,8 +9,8 @@ "preview": "astro preview", "astro": "astro", "format": "biome check --write ./ && prettier -w \"**/*\" --ignore-unknown --cache", - "lint": "biome check .", - "lint:fix": "biome check --write .", + "lint": "biome lint .", + "lint:fix": "biome lint --write .", "format:ci": "pnpm run biome:write && pnpm run prettier:write", "biome:write": "biome check --write ./", "prettier:write": "prettier -w ./" diff --git a/src/components/CTA.astro b/src/components/CTA.astro index 7e23283..51eb450 100644 --- a/src/components/CTA.astro +++ b/src/components/CTA.astro @@ -1,9 +1,17 @@ --- -interface Props { +type Props = { url: string; - text?: string; -} -const { url = "/", text } = Astro.props; + text: string; + ext?: boolean; +}; + +const { + url = "/", + text = "Click here", + ext = true +} = Astro.props; + +const relAtt = ext ? "noopener noreferrer" : undefined; ---
@@ -11,6 +19,7 @@ const { url = "/", text } = Astro.props;
{text} diff --git a/src/components/CopyButton.astro b/src/components/CopyButton.astro index 6cc363b..1ad15f9 100644 --- a/src/components/CopyButton.astro +++ b/src/components/CopyButton.astro @@ -13,6 +13,7 @@ const { text } = Astro.props; diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 784b608..89b393d 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -9,10 +9,9 @@ >Atharva Types GithubContact
- + diff --git a/src/pages/index.astro b/src/pages/index.astro index 8a2265b..96d6249 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -16,5 +16,5 @@ const description = - +