Improve nav and other changes
This commit is contained in:
parent
6716a135eb
commit
417537c763
4 changed files with 49 additions and 59 deletions
|
@ -4,24 +4,21 @@ import styles from "../styles/Nav.module.css"
|
||||||
---
|
---
|
||||||
|
|
||||||
<nav class={styles.nav} aria-expanded="true">
|
<nav class={styles.nav} aria-expanded="true">
|
||||||
<ul class={styles.links}>
|
<section>
|
||||||
<li>
|
<a href="/" id={styles.logo}
|
||||||
<a href="/#">Home</a>
|
><img src="/images/logo.svg" alt="Henry Hiles" /></a
|
||||||
</li>
|
>
|
||||||
<li>
|
<a href="/#">Home</a>
|
||||||
<a href="/#portfolio">Projects</a>
|
<a href="/#portfolio">Projects</a>
|
||||||
</li>
|
<a href="/#about">About Me</a>
|
||||||
<li>
|
</section>
|
||||||
<a href="/#about">About Me</a>
|
<section>
|
||||||
</li>
|
<a
|
||||||
<li>
|
target="_blank"
|
||||||
<a
|
rel="noreferrer"
|
||||||
target="_blank"
|
href="https://github.com/Henry-Hiles"
|
||||||
rel="noreferrer"
|
>
|
||||||
href="https://github.com/Henry-Hiles"
|
<Icon name="mdi:github" />
|
||||||
>
|
</a>
|
||||||
<Icon name="mdi:github" />
|
</section>
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
.about a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
.nav {
|
.nav {
|
||||||
padding: 0.5rem;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 1.3rem;
|
align-items: center;
|
||||||
overflow-y: auto;
|
justify-content: space-between;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background: hsl(0 0% 0% / 0.4);
|
background: hsl(0 0% 0% / 0.4);
|
||||||
font-size: 1.5em;
|
font-size: 1.4rem;
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
padding: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links svg {
|
.nav section {
|
||||||
height: 30px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav :is(svg, img) {
|
||||||
|
height: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav button {
|
.nav button {
|
||||||
|
@ -26,24 +31,26 @@
|
||||||
color: var(--secondary-text);
|
color: var(--secondary-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.links {
|
.nav a {
|
||||||
margin: auto;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
list-style: none;
|
|
||||||
padding: 0.7em 1.7em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.links li {
|
|
||||||
margin: 0 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.links a {
|
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links a:hover {
|
.nav a:hover {
|
||||||
color: var(--secondary-text);
|
color: var(--secondary-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 500px) {
|
||||||
|
.nav {
|
||||||
|
position: sticky;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 400px) {
|
||||||
|
#logo + a {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
.portfolioItems {
|
.portfolioItems {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
padding: 2em 3em;
|
||||||
padding: 30px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.portfolioItems a {
|
.portfolioItems a {
|
||||||
|
@ -28,27 +29,12 @@
|
||||||
width: 13em;
|
width: 13em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.portfolioItems div {
|
|
||||||
background: rgba(0, 0, 0, 0.3);
|
|
||||||
border-bottom-left-radius: 1rem;
|
|
||||||
border-bottom-right-radius: 1rem;
|
|
||||||
bottom: 0;
|
|
||||||
color: #f5f5f5;
|
|
||||||
font-size: 1em;
|
|
||||||
left: 0%;
|
|
||||||
padding: 0.1em;
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.portfolioItems a:hover {
|
.portfolioItems a:hover {
|
||||||
scale: 1.1;
|
scale: 1.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.projectName {
|
.projectName {
|
||||||
display: flex;
|
width: 100%;
|
||||||
justify-content: center;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue