Skip to content

Commit

Permalink
Merge pull request #16 from JS-GitRepo/feature/desktopView
Browse files Browse the repository at this point in the history
mobile styling now updated to align with all recent changes
  • Loading branch information
JS-GitRepo authored Oct 12, 2022
2 parents ddd2cc4 + a6f4aca commit 0140400
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 40 deletions.
44 changes: 31 additions & 13 deletions src/components/HomeViewHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface Props {

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

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

<div className='project-nav-type-cat'>
<NavLink
to={`/${allParams[0]}/${allParams[1]}/gamedev`}
className={({ isActive }) => (isActive ? "highlighted-link" : "")}>
<animated.p style={hueRotation}>gamedev</animated.p>
</NavLink>
<NavLink
to={`/${allParams[0]}/${allParams[1]}/webdev`}
className={({ isActive }) => (isActive ? "highlighted-link" : "")}>
<animated.p style={hueRotation}>webdev</animated.p>
</NavLink>
<div className='nav-ctr'>
<ul>
<li>
<NavLink
to={`/${allParams[0]}/portfolio/${allParams[2]}`}
className={({ isActive }) =>
isActive ? "highlighted-link" : ""
}>
<animated.p style={hueRotation}>portfolio</animated.p>
</NavLink>
</li>
<li>
<NavLink
to={`/${allParams[0]}/blog/${allParams[2]}`}
className={({ isActive }) =>
isActive ? "highlighted-link" : ""
}>
<animated.p style={hueRotation}>blog</animated.p>
</NavLink>
</li>
<li>
<NavLink
to={`/${allParams[0]}/introduction`}
className={({ isActive }) =>
isActive ? "highlighted-link" : ""
}>
<animated.p style={hueRotation}>intro</animated.p>
</NavLink>
</li>
</ul>
</div>
</div>

<div className='nav-ctr'>
<div className='nav-category-ctr'>
<ul>
<li>
<NavLink
Expand Down
9 changes: 7 additions & 2 deletions src/components/styles/HomeViewFooter.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
position: absolute;
bottom: 5%;
width: 75vw;
height: 100px;
max-width: 350px;
height: 110px;
/* Flex */
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -78,7 +79,11 @@

@media only screen and (min-width: 768px) {
.HomeViewFooter {
height: 80px;
height: 20px;
bottom: 10px;
border: none;
background-color: transparent;
backdrop-filter: none;
}

.HomeViewFooter .project-nav-ctr {
Expand Down
60 changes: 36 additions & 24 deletions src/components/styles/HomeViewHeader.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* - - - RESETS - - -*/
.HomeViewHeader h1,
.HomeViewHeader h2,
.HomeViewHeader a,
.HomeViewHeader p,
.HomeViewHeader ul,
.HomeViewHeader li {
margin: 0px;
padding: 0px;
}

/* - - - GENERAL - - -*/
.HomeViewHeader {
/* Position and Sizing */
Expand Down Expand Up @@ -30,41 +41,22 @@

.HomeViewHeader .project-nav-ctr {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
}

.HomeViewHeader .project-nav {
display: flex;
flex-direction: row;
align-items: center;
}

.HomeViewHeader .project-nav-type-cat {
display: flex;
justify-content: center;
align-items: center;
}

.HomeViewHeader .project-nav-type-cat a {
margin: 6px 6px 0px 6px;
}

.HomeViewHeader .nav-ctr {
.HomeViewHeader .nav-category-ctr {
display: flex;
justify-content: center;
}

.HomeViewHeader .nav-ctr ul {
.HomeViewHeader .nav-category-ctr ul {
display: flex;
justify-content: center;
align-items: center;
list-style: none;
padding: 0px;
}

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

Expand All @@ -83,14 +75,34 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: space-evenly;
}

.HomeViewHeader .project-nav {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 5px;
}

.HomeViewHeader .nav-ctr {
width: 200px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 5px;
}

.HomeViewHeader .nav-ctr a {
font-size: 20px;
}

.HomeViewHeader .nav-ctr ul {
display: flex;
list-style: none;
}

.HomeViewHeader .nav-ctr ul li {
margin: 0px 10px;
height: 30px;
}
}
2 changes: 1 addition & 1 deletion src/components/styles/WIPDisclaimer.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
/* - - - - MEDIA QUERIES - - - - */
@media only screen and (min-width: 768px) {
.WIPDisclaimer {
bottom: 100px;
padding: 10px;
width: 80%;
bottom: 50px;
}
}

0 comments on commit 0140400

Please sign in to comment.