Skip to content

Commit 32b15fc

Browse files
committed
modified intro display; mostly CSS changes
1 parent a07b2dd commit 32b15fc

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/components/HomeViewHeader.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ const HomeViewHeader = ({ subtitle, subEmoji, allParams }: Props) => {
1616
const [isIntro, setIsIntro] = useState<boolean>(false);
1717

1818
useEffect(() => {
19+
console.log(allParams[1]);
20+
1921
if (allParams[1] === "introduction") {
2022
setIsIntro(true);
2123
} else {
2224
setIsIntro(false);
2325
}
26+
console.log(isIntro);
2427
}, [allParams]);
2528

2629
// Some elements in the return will be hidden by media query CSS, to allow UI elements in the header or footer depending on mobile / Desktop. This is why there are some "redundant" elements
@@ -85,8 +88,7 @@ const HomeViewHeader = ({ subtitle, subEmoji, allParams }: Props) => {
8588
</ul>
8689
</div>
8790
</div>
88-
89-
<div className='nav-category-ctr'>
91+
<div className={isIntro ? "hidden" : "nav-category-ctr"}>
9092
<ul>
9193
<li>
9294
<NavLink

src/components/styles/HomeViewFooter.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
position: absolute;
1616
bottom: 5%;
1717
width: 65vw;
18+
min-width: 225px;
1819
max-width: 350px;
1920
height: 110px;
2021
border-radius: 20px;

src/components/styles/HomeViewHeader.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@
5454
align-items: center;
5555
list-style: none;
5656
padding: 0px;
57+
width: 181px;
5758
}
5859

5960
.HomeViewHeader .nav-category-ctr ul li {
6061
margin: 0px 10px;
6162
}
6263

64+
.HomeViewHeader .hidden {
65+
display: none;
66+
}
67+
6368
/* - - - MEDIA QUERIES - - -*/
6469
@media only screen and (min-width: 768px) {
6570
.HomeViewHeader {
@@ -105,4 +110,10 @@
105110
margin: 0px 10px;
106111
height: 30px;
107112
}
113+
114+
.HomeViewHeader .hidden {
115+
display: flex;
116+
visibility: hidden;
117+
width: 181px;
118+
}
108119
}

0 commit comments

Comments
 (0)