From 13430d869ee391b2014684e493fc442f3136fa6e Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Thu, 7 Nov 2024 16:21:17 +0000 Subject: [PATCH 1/5] remove framer-motion --- app/page.tsx | 22 +++++------------- app/wall/components/InstrumentWallCard.tsx | 6 ++--- package-lock.json | 26 ---------------------- package.json | 1 - 4 files changed, 8 insertions(+), 47 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 5e88c13..b01f320 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,6 @@ "use client"; import { Inter } from "next/font/google"; import Link from "next/link"; -import { motion } from "framer-motion"; const inter = Inter({ subsets: ["latin"] }); @@ -52,10 +51,7 @@ export default function Home() {
- +
- +
- +
- +
- +
- +
diff --git a/app/wall/components/InstrumentWallCard.tsx b/app/wall/components/InstrumentWallCard.tsx index a7db1db..6ece175 100644 --- a/app/wall/components/InstrumentWallCard.tsx +++ b/app/wall/components/InstrumentWallCard.tsx @@ -1,5 +1,4 @@ import Link from "next/link"; -import { motion } from "framer-motion"; import { getForegroundColour, getStatusColour, @@ -13,8 +12,7 @@ export default function WallCard({ instrument: IfcInstrumentStatus; }) { return ( - - + ); } diff --git a/package-lock.json b/package-lock.json index 5fcff1a..ff0fa63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "dependencies": { "@types/pako": "^2.0.3", "cross-env": "^7.0.3", - "framer-motion": "^11.2.5", "next": "^14.2.5", "pako": "^2.1.0", "react": "^18", @@ -4732,31 +4731,6 @@ "url": "https://github.com/sponsors/rawify" } }, - "node_modules/framer-motion": { - "version": "11.5.4", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.5.4.tgz", - "integrity": "sha512-E+tb3/G6SO69POkdJT+3EpdMuhmtCh9EWuK4I1DnIC23L7tFPrl8vxP+LSovwaw6uUr73rUbpb4FgK011wbRJQ==", - "license": "MIT", - "dependencies": { - "tslib": "^2.4.0" - }, - "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 - } - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", diff --git a/package.json b/package.json index 62e76b0..00c9f00 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "dependencies": { "@types/pako": "^2.0.3", "cross-env": "^7.0.3", - "framer-motion": "^11.2.5", "next": "^14.2.5", "pako": "^2.1.0", "react": "^18", From 7023b584c8a1de9957233de84db402314824a411 Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Thu, 7 Nov 2024 18:14:56 +0000 Subject: [PATCH 2/5] change hover to change colour of button, not text --- app/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index b01f320..b273872 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -85,7 +85,7 @@ export default function Home() { Date: Thu, 7 Nov 2024 20:09:57 +0000 Subject: [PATCH 3/5] delink wall --- app/Footer.tsx | 7 ------- app/NavBar.tsx | 6 ------ 2 files changed, 13 deletions(-) diff --git a/app/Footer.tsx b/app/Footer.tsx index 67def74..f444765 100644 --- a/app/Footer.tsx +++ b/app/Footer.tsx @@ -28,13 +28,6 @@ export default function Footer() { > Instrument statuses - - - Wall display -

© 2024 Experiment Controls at ISIS. All rights reserved. diff --git a/app/NavBar.tsx b/app/NavBar.tsx index 6d071b2..66fb925 100644 --- a/app/NavBar.tsx +++ b/app/NavBar.tsx @@ -35,12 +35,6 @@ export default function NavBar() { > Instrument Status - - Wall display - Date: Thu, 7 Nov 2024 21:25:19 +0000 Subject: [PATCH 4/5] use more relevant icons on main page --- app/page.tsx | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index b273872..d250df8 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -55,22 +55,16 @@ export default function Home() { - @@ -109,16 +103,16 @@ export default function Home() { @@ -157,16 +151,16 @@ export default function Home() { From d8df023ea38a64b6126571627d89ec7defb722e6 Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Thu, 7 Nov 2024 21:28:05 +0000 Subject: [PATCH 5/5] add link to icons --- app/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/page.tsx b/app/page.tsx index d250df8..e1cf1da 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,6 +4,10 @@ import Link from "next/link"; const inter = Inter({ subsets: ["latin"] }); +{ + /*Icons from https://heroicons.com/*/ +} + export default function Home() { return (