generated from UoaWDCC/ssr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from UoaWDCC/fix/bug
Refactor/FE-web
- Loading branch information
Showing
17 changed files
with
131 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
import { Outlet } from 'react-router-dom'; | ||
import Header from './components/Header'; | ||
import Footer from './components/Footer'; | ||
import Exec from './components/ExecInfo'; | ||
import { Outlet } from "react-router-dom"; | ||
import Header from "./components/Header"; | ||
import Footer from "./components/Footer"; | ||
|
||
const App = () => { | ||
return ( | ||
<> | ||
<Header /> | ||
<main className="py-3"> | ||
<div className="max-w-6xl mx-auto px-4"> | ||
<Outlet /> | ||
<Exec/> | ||
</div> | ||
</main> | ||
<Footer /> | ||
</> | ||
<> | ||
<Header /> | ||
<main className="py-3"> | ||
<div className="max-w-6xl mx-auto px-4"> | ||
<Outlet /> | ||
</div> | ||
</main> | ||
<Footer /> | ||
</> | ||
); | ||
} | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,12 @@ | ||
import ExecCard from '../screens/ExecScreen' | ||
|
||
interface Exec { | ||
id: number; | ||
image: string; | ||
position: string; | ||
name: string; | ||
bio: string; | ||
} | ||
|
||
const execs: Exec[] = [ | ||
{ | ||
id: 1, | ||
image: 'exec.png', | ||
position: 'President', | ||
name: 'Manas Sonar', | ||
bio: 'Consectetur adipiscing elit', | ||
}, | ||
{ | ||
id: 2, | ||
image: 'exec.png', | ||
position: 'Vice-President', | ||
name: 'Sanchani Brabhaharan', | ||
bio: 'Consectetur adipiscing elit...', | ||
}, | ||
{ | ||
id: 3, | ||
image: 'exec.png', | ||
position: 'Secretary', | ||
name: 'Diya Chottera', | ||
bio: 'Consectetur adipiscing elit...', | ||
}, | ||
{ | ||
id: 4, | ||
image: 'exec.png', | ||
position: 'Treasurer', | ||
name: 'Krish Kumar', | ||
bio: 'Consectetur adipiscing elit...', | ||
}, | ||
{ | ||
id: 5, | ||
image: 'exec.png', | ||
position: 'Secretary', | ||
name: 'Diya Chottera', | ||
bio: 'Consectetur adipiscing elit...', | ||
}, | ||
{ | ||
id: 6, | ||
image: 'exec.png', | ||
position: 'Treasurer', | ||
name: 'Krish Kumar', | ||
bio: 'Consectetur adipiscing elit...', | ||
}, | ||
]; | ||
import { execs } from "../data/data"; | ||
import ExecCard from "../screens/ExecScreen"; | ||
|
||
function ExecScreen() { | ||
return ( | ||
<div> | ||
<ExecCard execs= {execs}/> | ||
</div> | ||
); | ||
return ( | ||
<div> | ||
<ExecCard execs={execs} /> | ||
</div> | ||
); | ||
} | ||
|
||
export default ExecScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
function Footer() { | ||
const currentTime = new Date().getFullYear(); | ||
return ( | ||
<footer> | ||
<h1>Footer | {currentTime}</h1> | ||
</footer> | ||
) | ||
const currentTime = new Date().getFullYear(); | ||
return ( | ||
<footer> | ||
<h1>Footer | {currentTime}</h1> | ||
</footer> | ||
); | ||
} | ||
|
||
export default Footer | ||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
|
||
function Header() { | ||
|
||
return ( | ||
<header> | ||
<h1>Header</h1> | ||
</header> | ||
) | ||
return ( | ||
<header> | ||
<h1>Header</h1> | ||
</header> | ||
); | ||
} | ||
|
||
export default Header | ||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const LoadingSpinner = () => { | ||
return ( | ||
<div className="fixed top-0 left-0 w-full h-full flex justify-center items-center bg-gray-200 bg-opacity-50 z-50"> | ||
<div className="border-gray-300 h-32 w-32 animate-spin rounded-full border-8 border-t-[#0B7EF5]" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoadingSpinner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:wdth,[email protected],300..800&display=swap'); | ||
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:wdth,[email protected],300..800&display=swap"); | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
function CreditsScreen() { | ||
return ( | ||
<div> | ||
<h2> Credits Screen</h2> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<h2> Credits Screen</h2> | ||
</div> | ||
); | ||
} | ||
|
||
export default CreditsScreen | ||
export default CreditsScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
function LoginScreen() { | ||
return ( | ||
<div> | ||
<h2> Login Screen</h2> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<h2> Login Screen</h2> | ||
</div> | ||
); | ||
} | ||
|
||
export default LoginScreen | ||
export default LoginScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
function PPVScreen() { | ||
return ( | ||
<div> | ||
<h2> PPV Screen</h2> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<h2> PPV Screen</h2> | ||
</div> | ||
); | ||
} | ||
|
||
export default PPVScreen | ||
export default PPVScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
function PhotosScreen() { | ||
return ( | ||
<div> | ||
<h2> PhotosScreen Screen</h2> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<h2> PhotosScreen Screen</h2> | ||
</div> | ||
); | ||
} | ||
|
||
export default PhotosScreen | ||
export default PhotosScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
function SignUpScreen() { | ||
return ( | ||
<div> | ||
<h2> Sign Up Screen</h2> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<h2> Sign Up Screen</h2> | ||
</div> | ||
); | ||
} | ||
|
||
export default SignUpScreen | ||
export default SignUpScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
function TestScreen() { | ||
return ( | ||
<div> | ||
<h2> Test Screen</h2> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<h2> Test Screen</h2> | ||
</div> | ||
); | ||
} | ||
|
||
export default TestScreen | ||
export default TestScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
enum QueryKeys { | ||
GetIntro = 'get-intro', | ||
GetIntro = "get-intro", | ||
} | ||
|
||
export default QueryKeys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters