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

              
                <div id="main" class="container">
  <header class="header">
    <figure class="logo">
    <img
      class="logo-img"
      src="https://github.com/orionseth/fccproject-1-tribute/blob/main/img/logo-SN.png?raw=true"
      alt="SNES logo"
      />
    </figure>
      
    <figure class="logo">
    <img
      class="logo-img"
      src="https://github.com/orionseth/fccproject-1-tribute/blob/main/img/logo-SF.png?raw=true"
      alt="Super Famicom logo"
      />
    </figure>
  </header>

  <main>
    <h1 id="title" class="heading-primary">The Super Nintendo</h1>
    
    <article id="tribute-info" class="tribute-info">
      <section class="section-card">
          <div class="card-text">
            <h2 class="heading-secondary">Best System</h2>

            <p>
              The 16-bit Super Nintendo Entertainment System (SNES), or Super
              Famicom as it is known in Japan, is regarded by many as the best retro gaming system of all time. 
            </p>

          <p>
            It launched in 1990 and sold over 49 million units worldwide.
          </p>
        </div>

        <figure id="img-div" class="card-fig">
          <img
            id="image"
            src="https://github.com/orionseth/fccproject-1-tribute/blob/main/img/console-SN.jpg?raw=true"
            alt="Super Nintendo console"
          />

          <figcaption id="img-caption">
            North American Super Nintendo
          </figcaption>
        </figure>
    </section>

    <section class="section-card">
        <div class="card-text">
          <h2 class="heading-secondary">Games Library</h2>

          <p>
            The SNES has an impressive lineup of titles.  Many games are still sought after today and feature:   
          </p>

          <ul class="features">
            <li>catchy soundtracks</li>
            <li>colorful sprites</li>
            <li>fun gameplay</li>
            <li>classic design</li>
          </ul>
        </div>

        <figure class="card-fig">
          <img
            src="https://github.com/orionseth/fccproject-1-tribute/blob/main/img/chrono-trigger.png?raw=true"
            alt="screenshot of Chrono Trigger gameplay"
            height="448"
            width="512"
          />

          <figcaption>
            <em>Chrono Trigger (1995)</em>
          </figcaption>
        </figure>
    </section>

    <section class="section-card">
        <div class="card-text">
          <h2 class="heading-secondary">Technical Specification</h2>

          <ul class="specifications">
            <li>
              <strong>Processor:</strong> 
              <span>16-bit Ricoh @3.58 MHz</span>
            </li>
            
            <li>
              <strong>Memory:</strong> 
              <span>128 KB RAM</span>
            </li>
            
            <li>
              <strong>Video:</strong> 
              <span>8 mode Picture Processing Unit</span>
            </li>
            
            <li>
              <strong>Audio:</strong> 
              <span>Sony S-SMP soundchip</span>
            </li>
            
            <li>
              <strong>Media type:</strong> 
              <span>ROM cartridge</span>
            </li>
            
            <li>
              <strong>Controller Ports:</strong> 
              <span>2</span>
            </li>
          </ul>
        </div>

        <figure class="card-fig">
          <img
            src="https://github.com/orionseth/fccproject-1-tribute/blob/main/img/dkc.jpg?raw=true"
            alt="screenshot of Donkey Kong Country gameplay"
            height="448"
            width="512"
          />

          <figcaption>
            <em>Donkey Kong Country (1994)</em>
          </figcaption>
        </figure>
    </section>

    <section class="section-card">
        <div class="card-text">
          <h2 class="heading-secondary">Lifecycle End</h2>

          <p>
            Games development continued into late 1990s in Japan, and the last Super Famicom game was made in 2000.
          </p>

          <p>
            Producition of the Super Famicom console was discontinued in
            2003 when Nintendo ran out of parts to manufacture the system.
          </p>
        </div>

        <figure class="card-fig">
          <img
            src="https://github.com/orionseth/fccproject-1-tribute/blob/main/img/console-SF.jpg?raw=true"
            alt="Super Famicom console"
          />

          <figcaption>Japanese Super Famicom</figcaption>
        </figure>
    </section>
    </article>
  
    <aside class="tribute-aside">
      <h3>See it in action</h3>
    
      <a
         id="tribute-link"
         class="tribute-link"
         href="https://youtu.be/V1DPaOjTFEM"
         target="_blank" > 
        watch top SNES games &rarr;
      </a>
    </aside>
  </main>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  color: #343a40;
}

.container {
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 3.2rem auto 9.6rem;
}

/* Headings */
.heading-primary {
  color: #212529;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -3px;
  text-align: center;
  margin-bottom: 4.8rem;
}

.heading-secondary {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9.6rem;
}

.logo {
  max-width: 40rem;
}

.logo-img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ARTICLE */
.tribute-info {
  box-shadow: 0 9px 21px rgba(0, 0, 0, 0.1);
  border-radius: 2.4rem;
  padding: 2.4rem 3.2rem;
  margin-bottom: 4.8rem;
  display: flex;
  flex-direction: column;
  gap: 6.4rem;
}

.section-card {
  display: flex;
  align-items: flex-start;
}

/* Section text */
.card-text {
  flex: 0 0 50%;
  line-height: 1.65;
}

.card-text p:not(:last-child) {
  margin-bottom: 1.2rem;
}

.features {
  list-style-type: circle;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.features li::marker {
  color: #18c8c8;
}

.specifications {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Section figure */
.card-fig {
  max-width: 35rem;
  margin-left: auto;
}

.card-fig img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 2.4rem;
}

.card-fig figcaption {
  text-align: center;
  color: #71777e;
  font-size: 1.6rem;
}

/* ASIDE */
.tribute-aside {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.tribute-aside h3 {
  color: #71777e;
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 1px;
}

.tribute-link:link,
.tribute-link:visited {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -1px;
  color: #e7121a;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: all 0.2s ease-out;
  line-height: 1.2;
}

.tribute-link:hover,
.tribute-link:active {
  color: #b90e15;
  border-bottom: 1px solid transparent;
}

/* MEDIA QUERIES */
/* Below 912px */
@media screen and (max-width: 57em) {
  body {
    font-size: 1.6rem;
  }
  
  .header {
    flex-flow: column;
    gap: 3.2rem;
    margin-bottom: 6.4rem;
  }
  
  .heading-primary {
    font-size: 4.4rem;
    margin-bottom: 2.4rem;
  }
  
  .tribute-info {
    gap: 8rem;
  }
  
  .section-card {
    flex-direction: column-reverse;
    align-items: center;
    gap: 3.2rem;
  }
  
  .card-text {
    max-width: 54rem;
  }
  
  .card-fig {
    margin: 0;
  }
}

/* Below 560px */
@media screen and (max-width: 35em) {
  html {
    font-size: 56.25%;
  }
  
  .container {
    padding: 0 1.6rem;
    margin: 2.4rem 0 6.4rem 0;
  }
  
  .header {
    gap: 2.4rem;
  }
  
  .heading-primary {
    font-size: 3.6rem;
    letter-spacing: -1px;
  }
  
  .tribute-info {
    box-shadow: unset;
    padding: 0 1.6rem;
  }
  
  .section-card {
    gap: 2.4rem;
  }
  
  .heading-secondary {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }
  
  .card-text p:not(:last-child) {
    margin-bottom: 0.8rem;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console