Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<!-- START OF NAVBAR -->
<nav id="navbar">
  <ul class="nav-list">
    <li>
      <a href="#welcome-section">About Me</a>
    </li>
    <li>
      <a href="#projects">Projects</a>
    </li>
    <li>
      <a href="#personal-info">Personal Information</a>
    </li>
  </ul>
</nav>
<!-- END OF NAVBAR -->

<!-- START OF WELCOME-SECTION -->
<section id="welcome-section">
  <header id="welcome-section-header">
    <h1>Hello, I am Patrik Bajzík!</h1>
    <p><em>a programming lover</em></p>
  </header>
</section>
<!-- END OF WELCOME-SECTION -->

<!-- START OF PROJECTS -->
<section id="projects">
  <header class="header-wrap">
    <h2>My projects so far:</h2>
  </header>
  <div class="project-wrap">
    <a href="https://codepen.io/patri22k/full/XWzjVBd" target="_blank" class="project-tile">
      <img src="https://thumbs.dreamstime.com/b/documents-gear-vector-concept-creative-icon-symbol-204072258.jpg" class="project-image" alt="Technical Documentation Page">
      <p>
        <span class="code">&lt;Technical Documentation Page &#47;&gt;</span>
      </p>
    </a>
    <a href="https://codepen.io/patri22k/full/qBPwpLJ" target="_blank" class="project-tile">
      <img src="https://cloud1l.edupage.org/cloud?z%3AxkH5OjrIjGVSHJqYzlUGsy59DqqZmRdY%2FJTZ2tcZi3t%2F9PhesXv%2BJ%2BxKD5pKmDRE" alt="Gymnázium Jána Hollého Survey Form" class="project-image">
      <p>
        <span class="code">&lt;Gymnázium Jána Hollého Survey Form &#47;&gt;</span>
      </p>
    </a>
    <a href="https://codepen.io/patri22k/full/MWEOyKg" target="_blank" class="project-tile">
      <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Einstein_1921_by_F_Schmutzer_-_restoration.jpg/800px-Einstein_1921_by_F_Schmutzer_-_restoration.jpg" alt="Albert Einstein" class="project-image">
      <p>
        <span class="code">&lt; Albert Einstein &#47;&gt;</span>
      </p>
    </a>
  </div>
</section>
<!-- END OF WELCOME-SECTION -->

<!-- START OF PERSONAL-INFO -->
<section id="personal-info">
  <header>
    <h2>Thanks for your valuable time.</h2>
    <p>If you want to contact me, click one of your favorite social media icons belove:</p>
  </header>
  <div class="personal-wrap">
    <div class="text-wrap">
      <a href="https://twitter.com/Patri22k" target="_blank" id="profile-link">
        <img src="https://cdn-icons-png.flaticon.com/512/124/124021.png" height="30" width="30" alt="Twitter" align="left">Twitter
      </a>
    </div>
    <div class="text-wrap">
      <a href="https://github.com/Patri22k" target="_blank">
        <img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" height="30" width="30" alt="GitHub" align="left">GitHub
      </a>
    </div>
    <div class="text-wrap">
      <a href="https://www.instagram.com/patrik_bajzik/" target="_blank">
        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Instagram_logo_2016.svg/800px-Instagram_logo_2016.svg.png" height="30" width="30" alt="Instagram" align="left">Instagram
      </a>
    </div>
  </div>
</section>
<!-- END OF PERSONAL-INFO -->

<footer>
  <span>&copy;2022 Patrik Bajzík</span>
</footer>
              
            
!

CSS

              
                *,
*::before,
*::after {
  margin: 0;
  padding: 0;
  font-family: "Baumans", cursive;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

h1 {
  font-size: 50px;
}

h2 {
  font-size: 40px;
}

/* START OF NAVBAR */
.nav-list {
  position: fixed;
  display: flex;
  justify-content: flex-end;
  top: 0;
  left: 0;
  width: 100%;
  list-style: none;
  z-index: 5;
  background: #22520f;
}

.nav-list a {
  display: block;
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  padding: 1rem;
}

.nav-list a:hover {
  background-color: #d96011;
  color: #f5ff19;
}
/* END OF NAVBAR */

/* START OF WELCOME-SECTION */
#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #a9d598;
  height: 100vh;
}

#welcome-section-header h1 {
  color: white;
}

#welcome-section-header p {
  text-align: center;
  font-size: 30px;
  background-color: #f5ff19;
  color: #247100;
  margin-right: 10rem;
  margin-left: 10rem;
}
/* END OF WELCOME-SECTION */

/* START OF PROJECTS */
#projects {
  padding: 2.5rem;
}

#projects header {
  text-align: center;
  padding-bottom: 2.5rem;
}

.project-wrap {
  display: grid;
  grid-template-columns: repeat(3, 25rem);
  grid-template-rows: 17.5rem;
  grid-gap: 2rem;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-wrap p {
  background-color: #174800;
  padding: 0.75rem;
  margin-top: -5px;
}

.code {
  color: white;
  transition: color 0.25s linear;
}

.code:hover {
  color: #ff9309;
}
/* END OF WELCOME-SECTION */

/* START OF PERSONAL-INFO */
#personal-info {
  background-color: #a9d598;
  padding: 2rem;
  color: white;
}

#personal-info header {
  text-align: center;
}

#personal-info p {
  font-size: 20px;
  margin-bottom: 1rem;
}

.personal-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 5rem;
}

.text-wrap a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
  margin-left: 0.5rem;
}
/* END OF PERSONAL-INFO */

footer {
  border-top: 5px solid #d96011;
  text-align: right !important;
  font-size: 17px;
  font-weight: 800;
  padding: 1rem;
  color: #247100;
}

@media (max-width: 76.8125rem) {
  .project-wrap {
    grid-template-columns: repeat(3, 21rem);
  }
}

@media (max-width: 64rem) {
  html {
    text-align: center;
  }
  
  footer {
    text-align: right !important;
  }
  
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }
  
  #welcome-section-header p {
    font-size: 20px;
  }
  
  .nav-list a {
    font-size: 1rem;
  }
  
  .project-wrap {
    grid-template-columns: repeat(3, 17.5rem);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console