Skip to content

Commit 706b144

Browse files
authored
Merge pull request #7 from JS-GitRepo/feature/WIPDisclaimer
disclaimer is now a component, as well as closable
2 parents d34ccee + fd12ab5 commit 706b144

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

src/App.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
font-size: 14px;
4949
}
5050

51+
.App .hide {
52+
display: none;
53+
}
54+
5155
/* - - - - MEDIA QUERIES - - - - */
5256
@media only screen and (min-width: 768px) {
5357
.App .wip-disclaimer {

src/App.tsx

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import LandingPage from "./components/LandingPage";
99
import HomeView from "./components/HomeView";
1010
import { useSpring } from "react-spring";
1111
import { useState } from "react";
12+
import WIPDisclaimer from "./components/WIPDisclaimer";
1213

1314
function App() {
1415
const [hueFlip, setHueFlip] = useState<boolean>(false);
@@ -30,11 +31,11 @@ function App() {
3031
});
3132

3233
return (
33-
<div className="App">
34+
<div className='App'>
3435
<Router>
3536
<Routes>
3637
<Route
37-
path="/"
38+
path='/'
3839
element={
3940
<LandingPage
4041
hueRotation={hueRotation}
@@ -43,7 +44,7 @@ function App() {
4344
}
4445
/>
4546
<Route
46-
path="/landing"
47+
path='/landing'
4748
element={
4849
<LandingPage
4950
hueRotation={hueRotation}
@@ -52,7 +53,7 @@ function App() {
5253
}
5354
/>
5455
<Route
55-
path="/landing/:location"
56+
path='/landing/:location'
5657
element={
5758
<LandingPage
5859
hueRotation={hueRotation}
@@ -61,7 +62,7 @@ function App() {
6162
}
6263
/>
6364
<Route
64-
path="/landing/:category/:content"
65+
path='/landing/:category/:content'
6566
element={
6667
<LandingPage
6768
hueRotation={hueRotation}
@@ -70,7 +71,7 @@ function App() {
7071
}
7172
/>
7273
<Route
73-
path="/landing/:category/:content/:project"
74+
path='/landing/:category/:content/:project'
7475
element={
7576
<LandingPage
7677
hueRotation={hueRotation}
@@ -79,7 +80,7 @@ function App() {
7980
}
8081
/>
8182
<Route
82-
path="/home"
83+
path='/home'
8384
element={
8485
<HomeView
8586
hueRotation={hueRotation}
@@ -88,7 +89,7 @@ function App() {
8889
}
8990
/>
9091
<Route
91-
path="/home/:category/:content"
92+
path='/home/:category/:content'
9293
element={
9394
<HomeView
9495
hueRotation={hueRotation}
@@ -97,7 +98,7 @@ function App() {
9798
}
9899
/>
99100
<Route
100-
path="/home/:category/:content/:project"
101+
path='/home/:category/:content/:project'
101102
element={
102103
<HomeView
103104
hueRotation={hueRotation}
@@ -107,13 +108,7 @@ function App() {
107108
/>
108109
</Routes>
109110
</Router>
110-
<div className={"wip-disclaimer"}>
111-
<h2>
112-
<span className="emoji">🛠</span> Website Under Construction{" "}
113-
<span className="emoji">🛠</span>
114-
</h2>
115-
<p>{`Some features may be incomplete, buggy, or site-breaking. Feel free to explore and please re-visit soon!`}</p>
116-
</div>
111+
<WIPDisclaimer />
117112
</div>
118113
);
119114
}

0 commit comments

Comments
 (0)