Skip to content

Commit a6f4aca

Browse files
committed
mobile styling now updated to align with all recent changes
1 parent ddd2cc4 commit a6f4aca

File tree

4 files changed

+75
-40
lines changed

4 files changed

+75
-40
lines changed

src/components/HomeViewHeader.tsx

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ interface Props {
1212

1313
const HomeViewHeader = ({ subtitle, subEmoji, allParams }: Props) => {
1414
// GENERAL
15-
const location = useLocation();
1615
const { hueRotation } = useContext(AppContext);
1716
const [isIntro, setIsIntro] = useState<boolean>(false);
1817

@@ -54,21 +53,40 @@ const HomeViewHeader = ({ subtitle, subEmoji, allParams }: Props) => {
5453
<span className='material-symbols-outlined'>chevron_right</span>
5554
</div>
5655

57-
<div className='project-nav-type-cat'>
58-
<NavLink
59-
to={`/${allParams[0]}/${allParams[1]}/gamedev`}
60-
className={({ isActive }) => (isActive ? "highlighted-link" : "")}>
61-
<animated.p style={hueRotation}>gamedev</animated.p>
62-
</NavLink>
63-
<NavLink
64-
to={`/${allParams[0]}/${allParams[1]}/webdev`}
65-
className={({ isActive }) => (isActive ? "highlighted-link" : "")}>
66-
<animated.p style={hueRotation}>webdev</animated.p>
67-
</NavLink>
56+
<div className='nav-ctr'>
57+
<ul>
58+
<li>
59+
<NavLink
60+
to={`/${allParams[0]}/portfolio/${allParams[2]}`}
61+
className={({ isActive }) =>
62+
isActive ? "highlighted-link" : ""
63+
}>
64+
<animated.p style={hueRotation}>portfolio</animated.p>
65+
</NavLink>
66+
</li>
67+
<li>
68+
<NavLink
69+
to={`/${allParams[0]}/blog/${allParams[2]}`}
70+
className={({ isActive }) =>
71+
isActive ? "highlighted-link" : ""
72+
}>
73+
<animated.p style={hueRotation}>blog</animated.p>
74+
</NavLink>
75+
</li>
76+
<li>
77+
<NavLink
78+
to={`/${allParams[0]}/introduction`}
79+
className={({ isActive }) =>
80+
isActive ? "highlighted-link" : ""
81+
}>
82+
<animated.p style={hueRotation}>intro</animated.p>
83+
</NavLink>
84+
</li>
85+
</ul>
6886
</div>
6987
</div>
7088

71-
<div className='nav-ctr'>
89+
<div className='nav-category-ctr'>
7290
<ul>
7391
<li>
7492
<NavLink

src/components/styles/HomeViewFooter.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
position: absolute;
1616
bottom: 5%;
1717
width: 75vw;
18-
height: 100px;
18+
max-width: 350px;
19+
height: 110px;
1920
/* Flex */
2021
display: flex;
2122
flex-direction: column;
@@ -78,7 +79,11 @@
7879

7980
@media only screen and (min-width: 768px) {
8081
.HomeViewFooter {
81-
height: 80px;
82+
height: 20px;
83+
bottom: 10px;
84+
border: none;
85+
background-color: transparent;
86+
backdrop-filter: none;
8287
}
8388

8489
.HomeViewFooter .project-nav-ctr {

src/components/styles/HomeViewHeader.css

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/* - - - RESETS - - -*/
2+
.HomeViewHeader h1,
3+
.HomeViewHeader h2,
4+
.HomeViewHeader a,
5+
.HomeViewHeader p,
6+
.HomeViewHeader ul,
7+
.HomeViewHeader li {
8+
margin: 0px;
9+
padding: 0px;
10+
}
11+
112
/* - - - GENERAL - - -*/
213
.HomeViewHeader {
314
/* Position and Sizing */
@@ -30,41 +41,22 @@
3041

3142
.HomeViewHeader .project-nav-ctr {
3243
display: none;
33-
flex-direction: column;
34-
align-items: center;
35-
justify-content: center;
36-
}
37-
38-
.HomeViewHeader .project-nav {
39-
display: flex;
40-
flex-direction: row;
41-
align-items: center;
42-
}
43-
44-
.HomeViewHeader .project-nav-type-cat {
45-
display: flex;
46-
justify-content: center;
47-
align-items: center;
4844
}
4945

50-
.HomeViewHeader .project-nav-type-cat a {
51-
margin: 6px 6px 0px 6px;
52-
}
53-
54-
.HomeViewHeader .nav-ctr {
46+
.HomeViewHeader .nav-category-ctr {
5547
display: flex;
5648
justify-content: center;
5749
}
5850

59-
.HomeViewHeader .nav-ctr ul {
51+
.HomeViewHeader .nav-category-ctr ul {
6052
display: flex;
6153
justify-content: center;
6254
align-items: center;
6355
list-style: none;
6456
padding: 0px;
6557
}
6658

67-
.HomeViewHeader .nav-ctr ul li {
59+
.HomeViewHeader .nav-category-ctr ul li {
6860
margin: 0px 10px;
6961
}
7062

@@ -83,14 +75,34 @@
8375
display: flex;
8476
flex-direction: column;
8577
align-items: center;
86-
justify-content: center;
78+
justify-content: space-evenly;
79+
}
80+
81+
.HomeViewHeader .project-nav {
82+
display: flex;
83+
flex-direction: row;
84+
align-items: center;
85+
margin-top: 5px;
8786
}
8887

8988
.HomeViewHeader .nav-ctr {
90-
width: 200px;
89+
display: flex;
90+
justify-content: center;
91+
align-items: center;
92+
margin-bottom: 5px;
93+
}
94+
95+
.HomeViewHeader .nav-ctr a {
96+
font-size: 20px;
97+
}
98+
99+
.HomeViewHeader .nav-ctr ul {
100+
display: flex;
101+
list-style: none;
91102
}
92103

93104
.HomeViewHeader .nav-ctr ul li {
94105
margin: 0px 10px;
106+
height: 30px;
95107
}
96108
}

src/components/styles/WIPDisclaimer.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
/* - - - - MEDIA QUERIES - - - - */
4242
@media only screen and (min-width: 768px) {
4343
.WIPDisclaimer {
44-
bottom: 100px;
4544
padding: 10px;
4645
width: 80%;
46+
bottom: 50px;
4747
}
4848
}

0 commit comments

Comments
 (0)