diff --git a/.prettierrc.mjs b/.prettierrc.mjs new file mode 100644 index 0000000..d51a77f --- /dev/null +++ b/.prettierrc.mjs @@ -0,0 +1,4 @@ +/** @type {import("prettier").Config} */ +export default { + plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], +}; diff --git a/.vscode/settings.json b/.vscode/settings.json index 89d1965..162d99d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,8 @@ { "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "prettier.documentSelectors": [ + "**/*.astro" + ], + "prettier.requireConfig": true } \ No newline at end of file diff --git a/package.json b/package.json index c23a6b1..a5db838 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@astrojs/tailwind": "^5.0.0", + "@fontsource-variable/inter": "^5.0.8", "@types/canvas-confetti": "^1.6.0", "astro": "^3.0.7", "astro-critters": "^2.0.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c38c00b..ce3ddc1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ dependencies: '@astrojs/tailwind': specifier: ^5.0.0 version: 5.0.0(astro@3.0.7)(tailwindcss@3.3.3) + '@fontsource-variable/inter': + specifier: ^5.0.8 + version: 5.0.8 '@types/canvas-confetti': specifier: ^1.6.0 version: 1.6.0 @@ -761,6 +764,10 @@ packages: dev: false optional: true + /@fontsource-variable/inter@5.0.8: + resolution: {integrity: sha512-WkYfFNccmEIeL2fNg0mYeLWqOoB7xD8MFxFRc4IwbSP2o8ZaBt36v5aW4by4MyrgGRMNk7uNi5LbvYKq6clPjw==} + dev: false + /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 1c24afa..342def5 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,4 +1,4 @@ -
+

DeltaHacks 10

Back and better than ever!

diff --git a/src/layouts/main.astro b/src/layouts/main.astro index d96afa6..89efa8d 100644 --- a/src/layouts/main.astro +++ b/src/layouts/main.astro @@ -1,5 +1,5 @@ --- -const { content } = Astro.props; +import "@fontsource-variable/inter"; --- @@ -7,9 +7,14 @@ const { content } = Astro.props; - {content.title} + + DeltaHacks 10 + - + diff --git a/src/pages/index.astro b/src/pages/index.astro index 3fd10b7..560535d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,4 +1,5 @@ --- +import Layout from "../layouts/main.astro"; // Component Imports // import Button from '../components/Button.astro'; import Hero from "../components/Hero.astro"; @@ -8,30 +9,13 @@ import Sponsors from "../components/Sponsors.astro"; // https://docs.astro.build/core-concepts/astro-components/ --- - - - - - - - DeltaHacks 10 - - - - -
- -

- This site is still under construction! If you stumble across this, - please check back later! orz -

-
-
- -
-
- - + + +

+ This site is still under construction! If you stumble across this, please + check back later! orz +

+
+ +
+
diff --git a/tailwind.config.cjs b/tailwind.config.cjs index e529c05..d44ab50 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,7 +1,18 @@ +const defaultTheme = require("tailwindcss/defaultTheme"); + module.exports = { content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], theme: { - extend: {}, + extend: { + fontFamily: { + sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans], + }, + colors: { + "dh-red": "#E72250", + "dh-yellow": "#F8D13D", + "dh-blue": "#2D9AEA", + }, + }, }, plugins: [], };