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

              
                <header>
  <div class="nav-line">
    <button id="ham" aria-expanded="false">&#9776;</button>
  </div>
  <nav id="navbar" class="nav">
    <ul class="nav-list">
      <li class="nav-link">
        <a href="#welcome-section">About</a>
      </li>
      <li class="nav-link">
        <a href="#about">My work</a>
      </li>
      <li class="nav-link">
        <a href="#projects">Contact me</a>
      </li>
    </ul>
  </nav>
</header>
<section id="welcome-section">
  <div class="welcome-text">
    <h1>KSENIYA PUSHKINA</h1>
    <p>Front End Developer</p>
  </div>
</section>
<section id="projects" class="blue-bg">
  <div class="margin">
    <h2>PROJECTS</h2>
    <hr class="line" />
    <div class="project-container">
      <div class="project-tile">
        <img class="project-image" src="https://i.postimg.cc/SNsKQbH4/22.png" alt="Landing page image" />
        <a href="https://codepen.io/Kseniya_Pushkina_/pen/QWaVQQX/" target="_blank" class="project-link">Landing Page</a>
      </div>
      <div class="project-tile">
        <img class="project-image" src="https://i.postimg.cc/769mVzxp/24.png" alt="Registration form image" />
        <a href="https://codepen.io/Kseniya_Pushkina_/pen/dyJJzRQ" target="_blank" class="project-link">Registration Form</a>
      </div>
      <div class="project-tile">
        <img class="project-image" src="https://i.postimg.cc/YSk0HLHn/23.png" alt="Technical documentation page image" />
        <a href="https://codepen.io/Kseniya_Pushkina_/pen/rNprbqX" target="_blank" class="project-link">Technical Documentation Page</a>
      </div>
      <div class="project-tile">
        <img class="project-image" src="https://i.postimg.cc/0yZYhvgw/26.png" alt="Tribute page image" />
        <a href="https://codepen.io/Kseniya_Pushkina_/pen/NWXaeGR" target="_blank" class="project-link">Tribute Page</a>
      </div>
    </div>
  </div>
</section>
<section id="contacts">
  <div class="container">
    <h3 class="text-center">
      Contact me
    </h3>
    <div class="projects-container">
      <a class="project-tile" href="https://github.com/settings/profile" id="profile-link" target="_blank">
        <span>View repo</span> <span>⟶</span>
      </a>
      <a href="#" class="project-tile">
        <span>Text me</span> <span>⟶</span>
      </a>
      <a href="#" class="project-tile">
        <span>Call me</span> <span>⟶</span>
      </a>
      <a href="#" class="project-tile">
        <span>My works</span> <span>⟶</span>
      </a>
    </div>
  </div>
</section>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Baloo+Tamma+2&display=swap");

:root {
  font-size: 17px;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 100%;
  --color-dark-blue: #96b38a;
  --color-light-blue: #455c3b;
  --color-white: #f7f3f3;
  --color-black-text: #202020;
}

*,
*:before,
*:after {
  margin: 0;
  box-sizing: inherit;
}

section {
  padding: 0.5rem 1.5rem 2rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: bold;
}

h2 {
  padding-top: 4rem;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.7rem;
  text-decoration-color: #eee;
  text-decoration-thickness: 0.3rem;
  margin-block-start: 0;
  margin-block-end: 0;
  display: block;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.line {
  margin: 0 auto 2.5rem;
  width: 70px;
  height: 2px;
  border: none;
  background-color: var(--color-black-text);
}

/* || UTILITIES */

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beige-bg {
  background-color: #f5f5e9;
}

.blue-bg {
  background-color: var(--color-light-blue);
}

/* || NAVIGTION */

.nav-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 3rem;
  display: flex;
  background-color: var(--color-light-blue);
  -webkit-box-shadow: 0px 4px 10px -3px rgba(0, 0, 0, 0.54);
  box-shadow: 0px 4px 10px -3px rgba(0, 0, 0, 0.54);
  z-index: 100;
}

#ham {
  margin: 0.25rem;
  padding: 0.25rem;
  background-color: var(--color-light-blue);
  font-size: 1.5rem;
  color: var(--color-white);
  cursor: pointer;
  outline: none;
  border: none;
}

#ham:focus-visible {
  outline: 1px solid var(--color-white);
}

.nav {
  position: fixed;
  top: 3rem;
  width: 100vw;
  height: fit-content;
  color: #000000;
  background: #ffffff;
  opacity: 0.9;
  transform: translateY(-130%);
  transition: transform 0.2s ease;
  z-index: 99;
}

.showNav {
  transform: translateY(0);
}

.nav-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 0.75rem 0;
  list-style: none;
}

.nav-link a {
  display: block;
  margin-top: 1rem;
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
}

.nav-link a:hover {
  color: #90becc;
}

.nav-link a:focus {
  outline: 2px solid var(--color-white);
  color: #90becc;
}

.nav-link a:active {
  outline: none;
}

#welcome-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url(https://images.pexels.com/photos/8408549/pexels-photo-8408549.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.welcome-text {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-light-blue);
  transform: translate(-50%, -50%);
}

#welcome-section p {
  padding: 0 1rem;
  font-size: 1.5rem;
}

#about {
  text-align: justify;
}

#about p:first-of-type {
  padding-bottom: 1rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.skills span {
  margin: 0.25rem;
  padding: 0.25rem 1rem;
  border-radius: 5px;
  background-color: var(--color-light-blue);
  color: var(--color-white);
}

#projects h2 {
  color: var(--color-white);
}

#projects .line {
  background-color: var(--color-white);
}

.project-container {
  display: flex;
  padding: 0.5rem 0;
  flex-direction: column;
}

#projects p {
  padding: 0.5rem;
  color: var(--color-white);
  text-align: center;
  line-height: 1;
}
.project-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 0.25rem 1rem;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  cursor: pointer;
}

.project-link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 2px;
  opacity: 0.9;
  background-color: var(--color-dark-blue);
  transition: 0.3s;
}

.project-tile:hover .project-link,
.project-link:focus {
  top: 0;
}

#contact p {
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.arrow {
  width: 12rem;
  height: 12rem;
  background-image: url(https://i.postimg.cc/Fss9mnzH/arrow-2079328-640.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-links i {
  margin: 0.25rem 1rem;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-white);
  border-radius: 3px;
  border: 2px solid var(--color-white);
  background-color: var(--color-black-text);
}

.contact-links i:hover {
  border: 2px solid var(--color-black-text);
  color: var(--color-black-text);
  background-color: var(--color-white);
}

.link:focus-visible {
  outline: 3px solid rgb(197, 124, 247);
}

footer p {
  color: var(--color-white);
  font-size: 1rem;
  text-align: center;
}

@media (min-width: 30em) {
  /* || GENERAL STYLES */

  section {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .project-tile {
    margin: 0 2rem 2rem;
  }
}

@media (min-width: 43.75em) {
  .margin {
    margin-right: 4rem;
  }

  .nav-line {
    display: none;
  }

  .nav {
    transform: translateY(0%);
    top: 0rem;
    left: 0rem;
    width: 100%;
    background-color: var(--color-light-blue);
    opacity: 1;
    -webkit-box-shadow: 0px 4px 10px -3px rgba(0, 0, 0, 0.54);
    box-shadow: 0px 4px 10px -3px rgba(0, 0, 0, 0.54);
    z-index: 101;
  }

  .nav-list {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0.5rem;
  }

  .nav-link a {
    margin: 0 1rem;
  }

  #about {
    padding: 0.5rem 5rem 2rem;
  }

  .skills {
    justify-content: flex-start;
  }

  .project-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }

  .flex-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 0 2rem;
  }

  .contact-text {
    padding-right: 5rem;
  }

  .contact-text h2 {
    padding: 0;
  }

  .contact-links {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
  }

  .contact-links i {
    margin: 0.25rem 1rem;
  }
}

@media (min-width: 48em) {
  .project-tile {
    max-width: 22rem;
    margin: 0 1rem 2rem;
  }
}

@media (min-width: 43.75em) and (min-height: 31.25em) {
  .arrow {
    transform: rotate(-15deg);
  }
}

@media (min-width: 43.75em) and (min-height: 43.75em) {
  .contact-links {
    top: calc(100vh - 15rem);
  }

  .arrow {
    transform: rotate(0deg);
  }
}

body {
  line-height: 1.5;
  font-family: "Roboto", sans-serif;
  background-color: #eee;
  margin: 0;
  overflow-x: hidden;
  color: #303030;
}

.container {
  width: 85vw;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.projects-container {
  display: grid;
  gap: 1rem;
  align-content: stretch;
  align-items: stretch;
  justify-content: space-between;
  padding-top: 90px;
  justify-items: stretch;
  grid-template-columns: 1fr;
}

#contacts {
  background-color: #303030;
}

#contacts .container {
  padding: 5rem 0 5rem 0;
}

#contacts h3 {
  color: #eee;
  font-size: 2.5rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.7rem;
  text-decoration-color: #eee;
  text-decoration-thickness: 0.3rem;
  margin-block-start: 0;
  margin-block-end: 0;
}

#contacts .project-tile {
  border: 3px solid #eee;
  background-color: #303030;
  color: #eee;
}

#contacts .project-tile:hover {
  background-color: #455c3b;
  border-color: #96b38a;
  color: #96b38a;
}

#contacts .project-tile h4 {
  display: flex;
  justify-content: space-between;
}

#contacts .project-tile h4 > :last-child {
  color: #ee7c07;
  font-weight: bold;
}

footer {
  padding: 2rem 0 2rem 0;
  background-color: #303030;
  color: #eee;
  border-top: 0.7rem solid #fff;
}

footer .container {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

@media (max-width: 650px) {
  #header-img {
    width: 70%;
  }
  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  footer .container {
    flex-direction: column;
    font-size: 0.8rem;
  }
  footer .container:last-child {
    text-align: center;
  }
}

@media (min-width: 650px) {
  .project-tile h3 > :last-child {
    height: 3.2rem;
  }
  .projects-container {
    grid-template-columns: 1fr 1fr;
  }

  .project-tile h3,
  .project-tile h4 {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
  }
}
@media (min-width: 1280px) {
  .projects-container {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
a.project-tile {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  padding: 5px 18px;
  gap: 9px;
  min-height: 65px;
  background-color: #eee;
  border: 3px solid #303030;
  transition: all 150ms ease-in;
  min-width: 174px;
  flex: 1;
}
a.project-tile:hover {
  background-color: #fff;
  border-color: #ee7c07;
}
a.project-tile span {
  font-size: 1.7rem;
  margin-block-start: 0;
  margin-block-end: 0;
  font-weight: unset;
  line-height: 1.3;
}
a.project-tile span:first-of-type {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}
a.project-tile span:last-of-type {
  color: #96b38a;
}

              
            
!

JS

              
                
              
            
!
999px

Console