From dfd5b15ed9227c1c07754abf77672493fe5c166c Mon Sep 17 00:00:00 2001 From: Timothy Pidashev Date: Mon, 4 Nov 2024 13:18:09 -0800 Subject: [PATCH] fix footer --- src/package.json | 1 + src/pnpm-lock.yaml | 27 +++++++++++++++++++++++++-- src/src/components/footer/index.tsx | 17 +++++++++++++++-- src/src/components/footer/links.ts | 10 +++++----- src/src/components/hero/index.tsx | 2 +- src/src/layouts/index.astro | 2 +- src/src/layouts/main.astro | 24 ++++++++++++++++++++++++ 7 files changed, 72 insertions(+), 11 deletions(-) create mode 100644 src/src/layouts/main.astro diff --git a/src/package.json b/src/package.json index 98e31a3..bea8201 100644 --- a/src/package.json +++ b/src/package.json @@ -15,6 +15,7 @@ "astro": "^4.16.7" }, "dependencies": { + "framer-motion": "^11.11.11", "react": "^18.3.1", "react-dom": "^18.3.1", "react-responsive": "^10.0.0", diff --git a/src/pnpm-lock.yaml b/src/pnpm-lock.yaml index 54880a8..b02153a 100644 --- a/src/pnpm-lock.yaml +++ b/src/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + framer-motion: + specifier: ^11.11.11 + version: 11.11.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -910,6 +913,20 @@ packages: fraction.js@4.3.7: resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} + framer-motion@11.11.11: + resolution: {integrity: sha512-tuDH23ptJAKUHGydJQII9PhABNJBpB+z0P1bmgKK9QFIssHGlfPd6kxMq00LSKwE27WFsb2z0ovY0bpUyMvfRw==} + peerDependencies: + '@emotion/is-prop-valid': '*' + react: ^18.0.0 + react-dom: ^18.0.0 + peerDependenciesMeta: + '@emotion/is-prop-valid': + optional: true + react: + optional: true + react-dom: + optional: true + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -2711,6 +2728,13 @@ snapshots: fraction.js@4.3.7: {} + framer-motion@11.11.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + dependencies: + tslib: 2.8.0 + optionalDependencies: + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + fsevents@2.3.3: optional: true @@ -3744,8 +3768,7 @@ snapshots: optionalDependencies: typescript: 5.6.3 - tslib@2.8.0: - optional: true + tslib@2.8.0: {} type-fest@4.26.1: {} diff --git a/src/src/components/footer/index.tsx b/src/src/components/footer/index.tsx index ba17e10..a909a80 100644 --- a/src/src/components/footer/index.tsx +++ b/src/src/components/footer/index.tsx @@ -1,9 +1,22 @@ import React from "react"; +import { Links } from "@/components/footer/links"; + export default function Footer({ fixed = false }) { + const footerLinks = Links.map((link) => ( +
+ {link.label} +
+ )); + return ( -