diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..036bd1d --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +# Ignore artifacts: +public +dist +coverage \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +{} diff --git a/package-lock.json b/package-lock.json index 647f742..35077ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "1.0.0", "license": "ISC", "devDependencies": { - "astro": "^4.7.0" + "astro": "^4.7.0", + "prettier": "3.2.5" } }, "node_modules/@ampproject/remapping": { @@ -4699,6 +4700,21 @@ "node": ">=8.15" } }, + "node_modules/prettier": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/prismjs": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", diff --git a/package.json b/package.json index dfd5c3f..6b96287 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "author": "", "license": "ISC", "devDependencies": { - "astro": "^4.7.0" + "astro": "^4.7.0", + "prettier": "3.2.5" } } diff --git a/src/components/Footer.astro b/src/components/Footer.astro new file mode 100644 index 0000000..6881abd --- /dev/null +++ b/src/components/Footer.astro @@ -0,0 +1,52 @@ + + \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro new file mode 100644 index 0000000..8429270 --- /dev/null +++ b/src/components/Header.astro @@ -0,0 +1,14 @@ +--- +import { Image } from "astro:assets"; +--- + + + diff --git a/src/env.d.ts b/src/env.d.ts index 8c34fb4..c13bd73 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1 +1,2 @@ +/// /// \ No newline at end of file diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..73f89d7 --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,22 @@ +--- +import Footer from "../components/Footer.astro"; +const { title } = Astro.props.frontmatter || Astro.props; +--- + + + + + + + + {title ? `${title} - a11y.courses` : "a11y.courses"} + + + +

{title}

+ +