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

              
                  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
    integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous" />

<body>
  <nav id="navbar" class="nav">
    <ul class="nav-list">
      <li class="nav-item"><a href="#projects" class="nav-link">Sample Projects</a></li>
      <li class="nav-item"><a href="#contact" class="nav-link">Contact</a></li>
    </ul>
  </nav>

  <section id="welcome-section">
    <h1>Jim Kernicky</h1>
    <p>Web Design & WordPress Theme Development</p>
  </section>

  <section id="projects" class="projects-section">
    <h2>Here are some of my projects</h2>
    <div class="projects-group">
      <a href="https://codepen.io/jim-kernicky/pen/poPzNBY" target="_blank">
        <div class="project-tile">
          <img src="https://kernixwebdesign.com/wp-content/uploads/2021/07/tribute400.png" alt="portfolio1">
          <p>FCC Tribute Page</p>
        </div>
      </a>
      <a href="https://codepen.io/jim-kernicky/pen/VwbZNoo" target="_blank">
        <div class="project-tile">
          <img src="https://kernixwebdesign.com/wp-content/uploads/2021/07/landingpage400.png" alt="portfolio2">
          <p>FCC Landing Page</p>
        </div>
      </a>
      <a href="https://codepen.io/jim-kernicky/pen/eYWOxpj" target="_blank">
        <div class="project-tile">
          <img src="https://kernixwebdesign.com/wp-content/uploads/2021/07/surveyform400.png" alt="portfolio3">
          <p>FCC Survey Form</p>
        </div>
      </a>
      <a href="https://codepen.io/jim-kernicky/pen/JjWOZWx" target="_blank">
        <div class="project-tile">
          <img src="https://kernixwebdesign.com/wp-content/uploads/2021/07/music-player400.png" alt="portfolio4">
          <p>Custom Music Player</p>
        </div>
      </a>
      <a href="https://codepen.io/jim-kernicky/pen/jOBapZd" target="_blank">
        <div class="project-tile">
          <img src="https://kernixwebdesign.com/wp-content/uploads/2021/07/hamburger2400.png" alt="portfolio5">
          <p>Hamburger Menu</p>
        </div>
      </a>
      <a href="https://codepen.io/jim-kernicky/pen/QWpqwOG" target="_blank">
        <div class="project-tile">
          <img src="https://kernixwebdesign.com/wp-content/uploads/2021/07/videoplayer400.png" alt="portfolio6">
          <p>Custom Video Player</p>
        </div>
      </a>
    </div>
  </section>

  <section id="contact" class="online-resources">
    <h2>Check out my other online profiles...</h2>
    <p>... or contact me for a project you have in mind.</p>
    <div class="online-contact">
      <a href="https://github.com/Kernix13" id="profile-link" target="_blank">
        <p><i class="fab fa-github"></i>GitHub</p>
      </a>
      <a href="https://codepen.io/jim-kernicky" class="profile-link" target="_blank">
        <p><i class="fab fa-codepen"></i>Codepen</p>
      </a>
      <a href="https://freecodecamp.org/certification/fccb4a9d0f6-135f-4a94-97f5-795068269ca7/responsive-web-design" class="profile-link" target="_blank">
        <p><i class="fab fa-free-code-camp"></i>freeCodeCamp</p>
      </a>
      <a href="https://kernixwebdesign.com/" class="profile-link" target="_blank">
        <p><i class="fas fa-palette"></i>My Website</p>
      </a>
      <a href="mailto:example@example.com" class="profile-link" target="_blank">
        <p><i class="far fa-envelope-open"></i>Email me</p>
      </a>
      <a href="tel:555-555-5555" class="profile-link" target="_blank" title="555-555-5555">
        <p><i class="fas fa-mobile-alt"></i>Call me</p>
      </a>
    </div>
  </section>

  <footer>
    <p>
      &copy; Created by
      <a href="https://www.kernixwebdesign/" target="_blank">Kernix Web Design</a>
    </p>
  </footer>

</body>
              
            
!

CSS

              
                *,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --main-color: rgb(0, 128, 96);
}

body {
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
  font-size: 4rem;
  margin: 0;
}

h2 {
  font-size: 2rem;
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

section, footer {
  padding: 0 4em;
}

#navbar {
  padding: 0 4em;
  background-color: var(--main-color);
  position: fixed;
  top: 0;
  width: 100%;
  /* z-index: 10; */
}

.nav-list {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 1em;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
}

.nav-link:hover {
  background-color: rgb(39, 39, 49);
}

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  height: 100vh;
  background-image: linear-gradient(-108deg, rgb(66, 51, 51), rgb(36, 36, 58));
  /* background-image: linear-gradient(-108deg, #3a3d40 0%, #181719 100%); */
}

#welcome-section p {
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.projects-section {
  background-color: #414c57;
  padding-top: 3rem;
}

.projects-section h2 {
  max-width: 40rem;
  margin: 0 auto 4rem;
  color: var(--white);
  text-align: center;
  padding: 1.5em 0 0.5em;
  border-bottom: 0.125rem solid var(--white);
}


.projects-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
  grid-gap: 2em;
  padding-bottom: 2em;
}

.project-tile {
  color: var(--white);
  border: 1px solid black;
  background-color: rgba(92, 202, 236, 0.37);
  border: 2px solid #333;
  box-shadow: 0.25em 0.25em 0.55em 0 rgba(255, 255, 255, 0.411);
  border-radius: 0.5em;
}

.project-tile img {
  display: block;
  margin: 0.75em auto 0;
}

.project-tile p {
  font-size: 1.1rem;
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.project-tile p:hover {
  color: rgb(17, 6, 173);
  transition: color 300ms ease-out;
}

.online-resources {
  color: var(--white);
  /* width: 100%;
  height: 80vh; */
  padding: 4em 0;
  margin: 0 auto;
  text-align: center;
  background-color: rgb(9, 72, 92);
}

.online-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.online-resources h2 {
  font-size: 2.25rem;
  padding: 0 2em;
}
.online-resources p {
  font-size: 1.25rem;
}

.online-contact a {
  color: var(--white);
  text-decoration: none;
  transition: transform 400ms ease-out;
}
.online-contact a:hover {
  transform: translateY(-.5em);
}

.online-contact i {
  font-size: 1.25rem;
  padding-right: 0.5em;
}

.online-contact p {
  font-size: 1.25rem;
  padding-right: 2em;
}

footer {
  text-align: right;
  background-color: rgb(9, 72, 92);
  border-top: 3px solid var(--main-color);
}

footer p {
  color: var(--white);
  padding: 2em;
  margin: 0;
}

footer a {
  color: var(--white);
}

/* media queries */
@media (max-width: 496px) {
  .nav-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .project-tile {
    padding: 0;
  }
}
@media (max-width: 850px) {
  .online-resources h2 {
    padding: 0 1em 1em;
  }
}
              
            
!

JS

              
                // coded by @lasjorg
// eslint-disable-next-line no-unused-vars
const projectName = 'portfolio';

              
            
!
999px

Console