Skip to content

Commit

Permalink
added revolux oc job desc,
Browse files Browse the repository at this point in the history
switches to hash router
  • Loading branch information
SaliyaBandara committed Oct 24, 2023
1 parent 0cd2f64 commit 838c7e1
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ucsc-ieee",
"version": "0.1.0",
"private": true,
"homepage": "https://ucscieee.com",
"homepage": "https://ucscieee.lk",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-brands-svg-icons": "^5.15.3",
Expand Down
15 changes: 11 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import NewsList from "./components/Common/NewsList";
const Home = lazy(() => import("./components/Landing"));
const EventDetails = lazy(() => import("./components/Landing/EventDetails"));
const PreviousOfficers = lazy(() => import("./components/PreviousOfficers"));
const RevoluxOCJobDesc = lazy(() => import("./components/Landing/Misc/RevoluxOCJobDesc.js"));

const App = () => {
return (
<Router>
<Suspense fallback={<Loading/>}>
<main>
<Switch>
Expand All @@ -36,12 +36,19 @@ const App = () => {
<PreviousOfficers/>
<Footer/>
</Route>
<Route path="/revolux-oc-job-desc">
<RevoluxOCJobDesc/>
</Route>
</Switch>
<NewsList/>
<SocialMedia/>
{window.location.hash !== "#/revolux-oc-job-desc" && (
<>
<NewsList/>
<SocialMedia/>
</>
)}

</main>
</Suspense>
</Router>
);
};

Expand Down
26 changes: 26 additions & 0 deletions src/components/Landing/Misc/RevoluxOCJobDesc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import "./styles.css";

const RevoluxOCJobDesc = () => {
const figmaUrl = "https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2FkeS1y4OejeWxRbDBFk3iDy%2FRevolUX3.0-initial%3Fpage-id%3D9%253A8781%26type%3Ddesign%26node-id%3D28-9460%26viewport%3D-7373%252C3588%252C0.68%26t%3D2JDoTcb0oun6XIvD-1%26scaling%3Dscale-down%26starting-point-node-id%3D28%253A9854%26mode%3Ddesign";

return (
<div style={{width: '100vw', height: 'calc(100vh + 50px)', position: 'relative', background: 'rgb(0, 0, 0)' }}>
<iframe
style={{
border: '1px solid rgba(0, 0, 0, 0.1)', position: 'relative', margin: '0',
padding: '0',
boxSizing: 'border-box',
overflow: 'hidden'
}}
width="100%"
height="100%"
src={figmaUrl}
allowFullScreen
title='RevolUX 3.0 OC Job Description'
></iframe>
</div>
);
};

export default RevoluxOCJobDesc;
6 changes: 6 additions & 0 deletions src/components/Landing/Misc/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
}
11 changes: 10 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import React from "react";
import ReactDOM from "react-dom";
import { HashRouter } from "react-router-dom";
import "./index.css";
import App from "./App";

ReactDOM.render(<App/>, document.getElementById("root"));
// ReactDOM.render(<App />, document.getElementById("root"));
ReactDOM.render(
<React.StrictMode>
<HashRouter>
<App />
</HashRouter>
</React.StrictMode>,
document.getElementById('root')
);

0 comments on commit 838c7e1

Please sign in to comment.