Skip to content

Commit 796312c

Browse files
committed
Merge remote-tracking branch 'origin/main' into improve_inst_page
2 parents 0b950f6 + 67cbabf commit 796312c

File tree

6 files changed

+24
-78
lines changed

6 files changed

+24
-78
lines changed

app/Footer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ export default function Footer() {
2828
>
2929
Instrument statuses
3030
</Link>
31-
32-
<Link
33-
href="/wall"
34-
className="text-base leading-6 text-gray-500 hover:text-gray-900 dark:text-white dark:hover:text-gray-400 transition-color duration-100 px-5 py-2"
35-
>
36-
Wall display
37-
</Link>
3831
</nav>
3932
<p className="mt-8 text-base leading-6 text-center text-gray-400">
4033
© 2024 Experiment Controls at ISIS. All rights reserved.

app/NavBar.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ export default function NavBar() {
3535
>
3636
Instrument Status
3737
</Link>
38-
<Link
39-
className="block py-2 px-3 rounded text-black dark:text-white hover:text-white hover:bg-zinc-800"
40-
href="/wall"
41-
>
42-
Wall display
43-
</Link>
4438
<Link
4539
className="block py-2 px-3 rounded text-black dark:text-white hover:text-white hover:bg-zinc-800"
4640
href="https://www.isis.stfc.ac.uk/Pages/Beam-Status.aspx"

app/page.tsx

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
"use client";
22
import { Inter } from "next/font/google";
33
import Link from "next/link";
4-
import { motion } from "framer-motion";
54

65
const inter = Inter({ subsets: ["latin"] });
76

7+
{
8+
/*Icons from https://heroicons.com/*/
9+
}
10+
811
export default function Home() {
912
return (
1013
<main
@@ -52,29 +55,20 @@ export default function Home() {
5255
<section className="">
5356
<div className="container md:px-6 mx-auto">
5457
<div className="grid grid-cols-1 gap-8 mt-8 xl:mt-12 xl:gap-12 md:grid-cols-2 xl:grid-cols-3">
55-
<motion.div
56-
whileHover={{ y: -10 }}
57-
className="p-8 space-y-3 border-2 border-blue-400 dark:border-blue-300 rounded-xl bg-white dark:bg-zinc-900"
58-
>
58+
<div className="p-8 space-y-3 border-2 border-blue-400 dark:border-blue-300 rounded-xl bg-white dark:bg-zinc-900">
5959
<span className="inline-block text-blue-500 dark:text-blue-400">
6060
<svg
6161
xmlns="http://www.w3.org/2000/svg"
62-
className="w-8 h-8"
6362
fill="none"
6463
viewBox="0 0 24 24"
64+
strokeWidth="1.5"
6565
stroke="currentColor"
66+
className="size-10"
6667
>
6768
<path
6869
strokeLinecap="round"
6970
strokeLinejoin="round"
70-
strokeWidth="2"
71-
d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"
72-
/>
73-
<path
74-
strokeLinecap="round"
75-
strokeLinejoin="round"
76-
strokeWidth="2"
77-
d="M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z"
71+
d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"
7872
/>
7973
</svg>
8074
</span>
@@ -89,7 +83,7 @@ export default function Home() {
8983

9084
<a
9185
href="https://stfc365.sharepoint.com/sites/isis-hub/SitePages/Instrument-Quick-Links.aspx"
92-
className="inline-flex p-2 text-blue-500 capitalize transition-colors duration-200 transform bg-blue-100 rounded-full dark:bg-blue-500 dark:text-white hover:underline hover:text-blue-600 dark:hover:text-blue-500"
86+
className="inline-flex p-2 text-blue-500 capitalize transition-colors duration-200 transform bg-blue-100 rounded-full dark:bg-blue-500 dark:text-white hover:underline hover:bg-blue-400 dark:hover:bg-blue-400"
9387
target="_blank"
9488
>
9589
<svg
@@ -107,25 +101,22 @@ export default function Home() {
107101
/>
108102
</svg>
109103
</a>
110-
</motion.div>
104+
</div>
111105

112-
<motion.div
113-
whileHover={{ y: -10 }}
114-
className="p-8 space-y-3 border-2 border-blue-400 dark:border-blue-300 rounded-xl bg-white dark:bg-zinc-900"
115-
>
106+
<div className="p-8 space-y-3 border-2 border-blue-400 dark:border-blue-300 rounded-xl bg-white dark:bg-zinc-900">
116107
<span className="inline-block text-blue-500 dark:text-blue-400">
117108
<svg
118109
xmlns="http://www.w3.org/2000/svg"
119-
className="w-8 h-8"
120110
fill="none"
121111
viewBox="0 0 24 24"
112+
strokeWidth="1.5"
122113
stroke="currentColor"
114+
className="size-10"
123115
>
124116
<path
125117
strokeLinecap="round"
126118
strokeLinejoin="round"
127-
strokeWidth="2"
128-
d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7a1 1 0 011-1h3a1 1 0 001-1V4z"
119+
d="M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"
129120
/>
130121
</svg>
131122
</span>
@@ -140,7 +131,7 @@ export default function Home() {
140131

141132
<a
142133
href="https://shadow.nd.rl.ac.uk/journals/"
143-
className="inline-flex p-2 text-blue-500 capitalize transition-colors duration-200 transform bg-blue-100 rounded-full dark:bg-blue-500 dark:text-white hover:underline hover:text-blue-600 dark:hover:text-blue-500"
134+
className="inline-flex p-2 text-blue-500 capitalize transition-colors duration-200 transform bg-blue-100 rounded-full dark:bg-blue-500 dark:text-white hover:underline hover:bg-blue-400 dark:hover:bg-blue-400"
144135
target="_blank"
145136
>
146137
<svg
@@ -158,25 +149,22 @@ export default function Home() {
158149
/>
159150
</svg>
160151
</a>
161-
</motion.div>
152+
</div>
162153

163-
<motion.div
164-
whileHover={{ y: -10 }}
165-
className="p-8 space-y-3 border-2 border-blue-400 dark:border-blue-300 rounded-xl bg-white dark:bg-zinc-900"
166-
>
154+
<div className="p-8 space-y-3 border-2 border-blue-400 dark:border-blue-300 rounded-xl bg-white dark:bg-zinc-900">
167155
<span className="inline-block text-blue-500 dark:text-blue-400">
168156
<svg
169157
xmlns="http://www.w3.org/2000/svg"
170-
className="w-8 h-8"
171158
fill="none"
172159
viewBox="0 0 24 24"
160+
strokeWidth="1.5"
173161
stroke="currentColor"
162+
className="size-10"
174163
>
175164
<path
176165
strokeLinecap="round"
177166
strokeLinejoin="round"
178-
strokeWidth="2"
179-
d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"
167+
d="M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"
180168
/>
181169
</svg>
182170
</span>
@@ -191,7 +179,7 @@ export default function Home() {
191179

192180
<a
193181
href="https://www.isis.stfc.ac.uk/Pages/Beam-Status.aspx"
194-
className="inline-flex p-2 text-blue-500 capitalize transition-colors duration-200 transform bg-blue-100 rounded-full dark:bg-blue-500 dark:text-white hover:underline hover:text-blue-600 dark:hover:text-blue-500"
182+
className="inline-flex p-2 text-blue-500 capitalize transition-colors duration-200 transform bg-blue-100 rounded-full dark:bg-blue-500 dark:text-white hover:underline hover:bg-blue-400 dark:hover:bg-blue-400"
195183
target="_blank"
196184
>
197185
<svg
@@ -209,7 +197,7 @@ export default function Home() {
209197
/>
210198
</svg>
211199
</a>
212-
</motion.div>
200+
</div>
213201
</div>
214202
</div>
215203
</section>

app/wall/components/InstrumentWallCard.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Link from "next/link";
2-
import { motion } from "framer-motion";
32
import {
43
getForegroundColour,
54
getStatusColour,
@@ -13,8 +12,7 @@ export default function WallCard({
1312
instrument: IfcInstrumentStatus;
1413
}) {
1514
return (
16-
<motion.div
17-
whileHover={{ y: -10 }}
15+
<div
1816
className={`flex items-center justify-between p-3 rounded-lg shadow-sm border-2 border-gray-700 dark:border-gray-200 hover:shadow-lg hover:border-black dark:hover:border-gray-700 transition-all duration-200
1917
${getStatusColour(instrument.status || "UNKNOWN")} ${getForegroundColour(
2018
instrument.status || "UNKNOWN",
@@ -34,6 +32,6 @@ export default function WallCard({
3432
</span>
3533
</div>
3634
</Link>
37-
</motion.div>
35+
</div>
3836
);
3937
}

package-lock.json

Lines changed: 0 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"dependencies": {
1717
"@types/pako": "^2.0.3",
1818
"cross-env": "^7.0.3",
19-
"framer-motion": "^11.2.5",
2019
"next": "^14.2.5",
2120
"pako": "^2.1.0",
2221
"react": "^18",

0 commit comments

Comments
 (0)