diff --git a/components/Auth.js b/components/Auth.js
index c2fdbef..d6a38b7 100644
--- a/components/Auth.js
+++ b/components/Auth.js
@@ -1,5 +1,6 @@
import { useState } from 'react';
import { supabase } from '../utils/supabaseClient';
+import Main from './Main';
export default function Auth() {
const [loading, setLoading] = useState(false);
@@ -19,34 +20,32 @@ export default function Auth() {
};
return (
-
-
-
Supabase + Next.js
-
- Sign in via magic link with your email below
-
-
- setEmail(e.target.value)}
- />
-
-
-
-
+
+ Welcome to Solent Mind
+
+ Sign in via magic link with your email below
+
+
+ setEmail(e.target.value)}
+ />
-
+
+
+
+
);
}
diff --git a/components/Greeting.js b/components/Greeting.js
index bc16af5..2f6d130 100644
--- a/components/Greeting.js
+++ b/components/Greeting.js
@@ -1,6 +1,5 @@
import React from 'react';
import { CgProfile } from 'react-icons/cg';
-import { supabase } from '../utils/supabaseClient';
const Greeting = ({ user }) => {
return (
diff --git a/components/Main.js b/components/Main.js
index f572878..cfdbf30 100644
--- a/components/Main.js
+++ b/components/Main.js
@@ -1,6 +1,4 @@
import React from 'react';
-import Link from 'next/link';
-import { BsFillArrowRightCircleFill } from 'react-icons/bs';
const Main = ({ children }) => {
return (
diff --git a/components/Tabs.js b/components/Tabs.js
new file mode 100644
index 0000000..6b5be63
--- /dev/null
+++ b/components/Tabs.js
@@ -0,0 +1,26 @@
+import Link from 'next/link';
+import { BsFillArrowRightCircleFill } from 'react-icons/bs';
+
+const Tabs = ({ contents }) => {
+ return (
+
+ {contents.map((content) => (
+ -
+
+
{content.topic}
+
+
+
+
+
+
+
+ ))}
+
+ );
+};
+
+export default Tabs;
diff --git a/pages/aboutUs.js b/pages/aboutUs.js
index f4642d0..33868f4 100644
--- a/pages/aboutUs.js
+++ b/pages/aboutUs.js
@@ -1,13 +1,29 @@
-import Link from 'next/link';
import Header from '../components/Header';
-import { BsFillArrowRightCircleFill } from 'react-icons/bs';
import Main from '../components/Main';
+import Tabs from '../components/Tabs';
const AboutUs = () => {
+ const contents = [
+ {
+ topic: 'What we do',
+ url: 'https://www.solentmind.org.uk/about-us/what-we-do/',
+ },
+ {
+ topic: 'Who we are',
+ url: 'https://www.solentmind.org.uk/about-us/who-we-are/',
+ },
+ {
+ topic: 'Reports & accounts',
+ url: 'https://www.solentmind.org.uk/about-us/reports-and-accounts/',
+ },
+ {
+ topic: 'Policies',
+ url: 'https://www.solentmind.org.uk/about-us/policies/',
+ },
+ ];
return (
<>
-
ABOUT US
@@ -17,48 +33,7 @@ const AboutUs = () => {
plan to achieve it.
-