<header>
    <h1>Welcome to My Personal Website</h1>
</header>

<div class="main-content">
    <div class="nav-wrapper">
        <nav>
            <a href="#about">About Me</a>
            <a href="#portfolio">Portfolio</a>
            <a href="#contact">Contact</a>
        </nav>
    </div>

    <article>
        <section id="about">
            <h2>About Me</h2>
            <p>
                I am a software engineer with a passion for web development. I am proficient in HTML, CSS, JavaScript.
                I also have experience with database management and data analysis.
                I am a quick learner and always eager to learn new technologies and techniques.
                I am excited to work on projects that can make a positive impact on society.
            </p>
        </section>

        <section id="portfolio">
            <h2>Portfolio</h2>
            <h3>Projects</h3>
            <a href="https://github.com/m-sarabi/rain-char">rain-char</a>:
            A lightweight JavaScript library for creating
            a Matrix-style falling
            character effect.

            <h3>Art</h3>
            <p>I enjoy creating art and I have made some digital artworks.</p>
        </section>

        <section id="contact">
            <h2>Contact</h2>
            <p>You can reach me through my social media profiles:</p>
            <ul>
                <li><a href="https://github.com/m-sarabi">GitHub</a></li>
                <li><a href="https://x.com/_msarabi">Twitter</a></li>
                <li><a href="https://t.me/MSarabi">Telegram</a></li>
            </ul>
        </section>
    </article>
</div>

<footer>
  <p>&copy; 2024 <a href="https://m-sarabi.ir">Mohammad Sarabi.</a> All rights reserved.</p>
</footer>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #333;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
    z-index: 2;
}

.main-content {
    display: flex;
    flex: 1;
    position: relative;
}

.nav-wrapper {
    position: absolute;
    height: 100%;
}

nav {
    width: 130px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    left: 20px;
    height: fit-content;
    z-index: 1;
}

nav a {
    display: block;
    color: #333;
    text-decoration: none;
    margin: 10px 0;
    font-weight: bold;
}

nav a:hover {
    color: #006baf;
}

article {
    max-width: 100%;
    margin-right: 10%;
    margin-left: 140px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

section {
    margin-bottom: 20px;
}

section h2 {
    margin-bottom: 10px;
    color: #006baf;
}

section p {
    margin-bottom: 10px;
}

section ul {
    margin-left: 20px;
}

section a {
    color: #006baf;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

footer a {
    color: #fff;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.