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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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 class="header">
    <div class="header-flex">
      <h1 class="header-logo">jenseign</h1>
      <nav class="no-mobile">
      <a href="#" class="current">portfolio</a> •
      <a href="#">contact(@)laureneipsum.com</a> •
      <a href="#">linkedIn</a> 
      </nav>
      <nav class="mobile">
        <a href="#footer-nav">≡</a>
      </nav> 
    </div>
  </header>
  <div class="grid">
    <div class="about">Laurène Ipsum, étudiante en design graphique en 2e année à l’<em>ésad Amiens</em>.<br>
      <br>
       Actuellement à la recherche d’un <strong>stage</strong> d’un mois sur Paris, Lille ou Amiens pour la période juillet-août.</div>
    <a href="#" class="m a-img-txt"><img src="https://dummyimage.com/400x600/6100ff/fff&text=%20" alt="affiche"><span class="a-txt">Fête de la musique, affiche et identité 2019</span></a>
    <a href="#" class="s a-img-txt"><img src="https://dummyimage.com/400x288/00B3ED/fff&text=%20" alt="site   "><span class="a-txt">* CNAP *</span></a>
    <a href="#" class="m a-img-txt"><img src="https://dummyimage.com/400x600/FFDE13/fff&text=%20" alt="affiche"><span class="a-txt">Blockchain 2000</span></a>
    <a href="#" class="s a-img-txt"><img src="https://dummyimage.com/400x288/FF5046/fff&text=%20" alt="site   "><span class="a-txt">Musée du Bitcoin</span></a>
    <a href="#" class="l a-img-txt"><img src="https://dummyimage.com/824x600/1FD0C0/fff&text=%20" alt="app    "><span class="a-txt">Refonte Facebook</span></a>
    <a href="#" class="m a-img-txt"><img src="https://dummyimage.com/400x600/FF5046/fff&text=%20" alt="affiche"><span class="a-txt">Fondation Cartier</span></a>
    <a href="#" class="s a-img-txt"><img src="https://dummyimage.com/400x288/FFDE13/fff&text=%20" alt="site   "><span class="a-txt">Exposition Data</span></a>
    <a href="#" class="m a-img-txt"><img src="https://dummyimage.com/400x600/FF6600/fff&text=%20" alt="affiche"><span class="a-txt">Zoo de Beauval</span></a>
    <a href="#" class="s a-img-txt"><img src="https://dummyimage.com/400x288/6100ff/fff&text=%20" alt="site   "><span class="a-txt">Refonte Deezer</span></a>
    <a href="#" class="m a-img-txt"><img src="https://dummyimage.com/400x600/00B3ED/fff&text=%20" alt="site   "><span class="a-txt">Campagne Petit Bateau</span></a>
    <a href="#" class="s a-img-txt"><img src="https://dummyimage.com/400x288/FF5046/fff&text=%20" alt="site   "><span class="a-txt">Site Moët &amp; Chandon</span></a>
  </div>

  <footer class="footer">
    <nav id="footer-nav">
      <a href="#" class="current">portfolio</a>
      <a href="#">contact(@)laureneipsum.com</a> •
      <a href="#">linkedIn</a> 
    </nav>
  </footer>

              
            
!

CSS

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


body{
  margin:0;
  background: #eee;
  font-family: 'Space Mono', monospace;
}


a{
  color:#333;
}

.current{
  position: relative;
  color:#000;
}
.current::after{
  content:' ';
  display: block;
  width:50%;
  height:6px;
  border-top:1px solid #EA5046;
  border-bottom:1px solid #EA5046;
  bottom:-12px;
  transform: translate(50%,0) rotate(-15deg);
  opacity: 1;
  position: absolute;
}

nav{
  color:#EA5046;
}
nav a{
  text-decoration: none;
}

nav.mobile{
  display:block;
  font-size: 24px;
  line-height: 1;
}
nav.mobile a{
  /* line-height: 48px; */
  padding:7px 14px;
  height:48px;
  background:#EA5046;
  color:#fff;
  display: block;
}
@media (min-width:56em){
  nav.mobile{
    display:none;
  }
}
nav.no-mobile{
  display:none;
}
@media (min-width:56em){
  nav.no-mobile{
    display:block;
  }
}
img{
  display:block;
  width:100%;
  height:auto;
}

.header{
  position:fixed;
  z-index: 999;
  top:0;
  right:0;
  left:0;
  height:48px;
  background: #fff;
  display:grid;
  grid-gap: 1.5em;
  gap:1.5em;
  grid-template-columns: 1fr;
  justify-content: center;	
  padding:0 24px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (min-width:40em){
  .header{
      grid-template-columns: repeat(auto-fill, 25em);
    }
}

.header-logo{
  margin:0; 
  font-size:1em;
}

.header-flex{
  grid-column: 1/-1;
  display:flex;
  justify-content: space-between;
  align-items: center;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  gap:24px;
  justify-content: center;	
  margin:72px 0 24px 0;
  padding:0 24px;
}

@media (min-width:40em){
  .grid{
    grid-template-columns: repeat(auto-fill, 25em);
    grid-auto-rows: 18em;
    grid-auto-flow: row dense;
  }

}

.about{
  background: #fff;
  color:#111;
  /* font-family:'Palanquin',sans-serif; */
  font-weight: 400;
  padding: 24px;
  font-size: 16px;
}

@media (min-width:54.5em){
 .about{
  grid-column-end: span 2;
  font-size: 24px;


 }
}

.s{
  grid-column-end: span 1;
  grid-row-end:span 1;
}

.m{
  grid-column-end: span 1;
  grid-row-end:span 2;
}

.l{
  grid-column-end: span 1;
  grid-row-end:span 1;
}

@media (min-width:54.5em){
  .l{
    grid-column-end: span 2;
    grid-row-end:span 2;
  }  
}

.a-img-txt{
  display:grid; 
  text-decoration: none;
  font-size: 24px;
}
 
/* les enfants se superposent */
.a-img-txt>*{
  grid-area:1/1/-1/-1; 
  /* raccourci pour grid-row et grid-column */
}
 
/* le texte */
.a-txt{
  display:flex;
  justify-content:center;
  align-items:center;
  color:#fff;
  opacity:0;
  background:rgba(0,0,0,0.8);
  transition:opacity .8s;
  padding:24px;
}
 
/* le survol */
.a-txt:hover{
  opacity:1;
}


.footer{
  background: #fff;
  display:grid;
  grid-gap: 1.5em;
  gap:1.5em;
  grid-template-columns: 1fr;
  justify-content: center;	
  padding:0 24px;
}

.footer a{
  display:block;
  padding:12px 0;
  border-bottom:1px solid #eee;
}
.footer .current{
  color:#000;
  font-weight: 700;
}

.footer .current::after{
  display: none;
}

@media (min-width:40em){
  .footer{
      grid-template-columns: repeat(auto-fill, 25em);
    }
}

@media (min-width:56em){
  .footer{
    display:none;
  }
}



              
            
!

JS

              
                
              
            
!
999px

Console