From 5b5bc9e0d79877f0554278ab6a609ef688858d8f Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Sat, 30 Dec 2023 12:53:40 +0100 Subject: Add locomotive --- apps/website/package.json | 1 + apps/website/src/components/base/Footer.astro | 7 +++- apps/website/src/components/base/Section.astro | 8 +++- .../src/components/base/navbar/Navbar.astro | 5 ++- apps/website/src/env.d.ts | 3 +- apps/website/src/layouts/Layout.astro | 22 ++++++++-- apps/website/src/pages/projects/oneconfig.astro | 48 ++++++++++++---------- apps/website/src/styles/global.css | 8 ++-- pnpm-lock.yaml | 40 ++++++++++++++++++ 9 files changed, 110 insertions(+), 32 deletions(-) diff --git a/apps/website/package.json b/apps/website/package.json index 553b23c..a6e73a0 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -17,6 +17,7 @@ "@astrojs/tailwind": "^5.0.4", "astro": "^4.0.7", "fullpage.js": "^4.0.20", + "locomotive-scroll": "^4.1.4", "sass": "^1.69.5", "tailwindcss": "^3.4.0", "vitest": "^1.1.0" diff --git a/apps/website/src/components/base/Footer.astro b/apps/website/src/components/base/Footer.astro index 88e6d7b..9463edc 100644 --- a/apps/website/src/components/base/Footer.astro +++ b/apps/website/src/components/base/Footer.astro @@ -2,10 +2,15 @@ import Icon from '@components/icons/Icon.astro'; import Logo from '@components/logos/Logo.astro'; import configConst from '@config'; +import type { HTMLAttributes } from 'astro/types'; import Link from './Link.astro'; + +interface Props extends HTMLAttributes<'footer'> {} + +const props = Astro.props; --- -