Skip to content

Commit 2a2a8ea

Browse files
committed
disclaimer now closable
1 parent 17fa253 commit 2a2a8ea

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

src/components/WIPDisclaimer.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.WIPDisclaimer {
2+
font-family: "munro";
3+
color: white;
4+
position: absolute;
5+
bottom: 12%;
6+
left: 50%;
7+
transform: translate(-50%);
8+
z-index: 100;
9+
border: solid white 2px;
10+
background-color: rgba(96, 96, 96, 0.348);
11+
padding: 0px 10px;
12+
width: 90%;
13+
}
14+
15+
.WIPDisclaimer h2 {
16+
margin: 10px;
17+
font-size: 16px;
18+
font-style: normal;
19+
font-weight: 400;
20+
}
21+
22+
.WIPDisclaimer .wip-text {
23+
margin: 10px;
24+
font-size: 14px;
25+
}
26+
27+
.WIPDisclaimer .close-ctr {
28+
position: absolute;
29+
border: solid white 1px;
30+
left: 5px;
31+
top: 5px;
32+
}
33+
34+
.WIPDisclaimer .close-ctr p {
35+
margin: 0px;
36+
padding: 1px;
37+
width: 18px;
38+
height: 18px;
39+
}
40+
41+
/* - - - - MEDIA QUERIES - - - - */
42+
@media only screen and (min-width: 768px) {
43+
.WIPDisclaimer {
44+
bottom: 100px;
45+
padding: 10px;
46+
width: 80%;
47+
}
48+
}

src/components/WIPDisclaimer.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { useState } from "react";
2+
import "./WIPDisclaimer.css";
3+
4+
const WIPDisclaimer = () => {
5+
const [closeClass, setCloseClass] = useState<string>("WIPDisclaimer");
6+
7+
return (
8+
<div className={`${closeClass}`}>
9+
<div
10+
className='close-ctr'
11+
onClick={() => setCloseClass("WIPDisclaimer hide")}>
12+
<p>X</p>
13+
</div>
14+
<h2>
15+
<span className='emoji'>🛠</span> Website Under Construction{" "}
16+
<span className='emoji'>🛠</span>
17+
</h2>
18+
<p className='wip-text'>{`Some features may be incomplete, buggy, or site-breaking. Feel free to explore and please re-visit soon!`}</p>
19+
</div>
20+
);
21+
};
22+
23+
export default WIPDisclaimer;

src/components/projects/MediaMatchup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const MediaMatchup = ({ isPortfolio }: Props) => {
2727
const desc: string = "";
2828

2929
return (
30-
<animated.div className="MediaMatchup">
30+
<animated.div className='MediaMatchup media-ctr'>
3131
<ProjImage
3232
imgSrc={mediaMatchupMainAVIF}
3333
imgSrc_Fallback={mediaMatchupMainJPG}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.ProjImage {
2+
display: flex;
3+
flex-direction: column;
4+
justify-content: center;
5+
height: 100%;
6+
max-width: 100%;
7+
}
8+
9+
.ProjImage .img-ctr {
10+
max-width: 100%;
11+
}

0 commit comments

Comments
 (0)