diff --git a/public/fonts/Researcher.otf b/public/fonts/Researcher.otf new file mode 100644 index 0000000..26918f1 Binary files /dev/null and b/public/fonts/Researcher.otf differ diff --git a/src/components/HackerText.astro b/src/components/HackerText.astro new file mode 100644 index 0000000..2bf95da --- /dev/null +++ b/src/components/HackerText.astro @@ -0,0 +1,54 @@ +--- +interface Props { + text: string; +} + +const { text } = Astro.props; +--- + +

{text}

+ + diff --git a/src/pages/new.astro b/src/pages/index.astro similarity index 88% rename from src/pages/new.astro rename to src/pages/index.astro index a5a61f0..e30ad6c 100644 --- a/src/pages/new.astro +++ b/src/pages/index.astro @@ -3,6 +3,7 @@ import "@/styles/globals.css"; import { Image } from "astro:assets"; import Navbar from "../components/Navbar.astro"; +import HackerText from "../components/HackerText.astro"; import foscLogo from "../assets/img/fosc-logo-old.png"; --- @@ -30,7 +31,7 @@ import foscLogo from "../assets/img/fosc-logo-old.png";
FOSC Logo
-

Welcome to FOSC

+ @@ -40,6 +41,8 @@ import foscLogo from "../assets/img/fosc-logo-old.png"; + diff --git a/tailwind.config.cjs b/tailwind.config.cjs index b5bfccc..73a0aa8 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,4 +1,6 @@ /** @type {import('tailwindcss').Config} */ +const defaultTheme = require("tailwindcss/defaultTheme"); + module.exports = { darkMode: ["class"], content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], @@ -11,6 +13,9 @@ module.exports = { }, }, extend: { + fontFamily: { + mono: ["Researcher", ...defaultTheme.fontFamily.sans], + }, colors: { border: "hsl(var(--border))", input: "hsl(var(--input))",