new to development here and have designed a personal portfolio site that has give me a headache (with placeholder images). Home Page of Portfolio
The nav is fixed to the top, and it's a long-page layout, with each of the sections mentioned in the nav stacked below. I've tried using css grid, I've tried using positioning & media queries, and I'm at a loss as to where I'm stumbling. The image is large and not resizing the way I expected.
Here's the HTML & some CSS:
/* Recurring Styles */
html, body {
background-color: #DEDEDE;
font-family: Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Arabic Font 2013';
font-weight: normal;
color: #262525;
text-transform: lowercase;
}
p {
font-family: Helvetica, Arial, sans-serif;
font-weight: 100;
}
/* Navigation */
header {
position: fixed;
width: 100%;
height: auto;
top: 0;
z-index: 1;
}
nav ul {
display: flex;
float: right;
}
nav li {
list-style-type: none;
text-transform: uppercase;
letter-spacing: .20rem;
padding-left: 7rem;
}
nav a {
text-decoration: none;
color: #404040;
font-weight: bold;
font-size: .65rem;
}
/* HOME */
#home-section {
height: 100vh;
}
.intro {
display: inline-block;
margin: auto 20%;
}
.intro h1 {
font-size: 8rem;
letter-spacing: -.5rem;
margin: 0;
}
.img-container {
display: inline-block;
}
.img-container img {
max-height: 50px;
width: auto;
}
.aside p {
float: right;
text-transform: uppercase;
border-bottom: 2px solid #262525;
transform: rotate(90deg) translateY(-200%) translateX(-100%);
transform-origin: 0px 0px;
font-weight: 500;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<section id="home-section">
<header>
<nav>
<ul>
<li><a href=#home-section>Home</a></li>
<li><a href=#about-section>About</a></li>
<li><a href=#work-section>Work</a></li>
<li><a href=#contact-section>Contact</a></li>
</ul>
</nav>
</header>
<div class="vl" id="vl-home"></div>
<p class="page-num" id="num-home">01</p>
<article class="intro">
<h1>Hey, there.</h1>
<p>Nice to meet you —
<br>I'm Marci, and I’m taking life one < element > at a time. </p>
</article>
<div class="aside">
<p>Front - End<br>Web Developer</p>
</div>
<div class="accent-overlay overlay-home"></div>
<div class="img-container">
<img src="./src/headshot-main.png" id="darkest">
<img src="./src/headshot-main.png" id="lighter">
<img src="./src/headshot-main.png" id="lightest">
</div>
</section>
</main>
</body>
</html>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…