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

              
                <div id="html">
<header>
  <nav id="navbar">
    <a href="#l.i.inicio">INICIO</a>
    <a href="#l.i.proyectos">PROYECTOS</a>
    <a href="#l.i.contacto">CONTACTO</a>
  </nav>
    <a id="l.i.inicio">
      <section id="welcome-section">
        <h1 class="hola">MI PORTAFOLIO PERSONAL</h1>
      </section>
    </a>
</header>
<main>
  <a id="l.i.proyectos">
  <section id="projects">
    <div class="project-tile">
      <a class="pagina-inicio" id="keyframes-pag"
         href="https://codepen.io/alvaro624la/full/YzQJqBP" 
         target="_blank">
        <img class="imgs" 
             src="https://i.imgur.com/KKY0mQk.jpg" 
             alt="imagen_de_la página_tributo">
        <p class=piefotos>Página tributo</p></a>
      <a class="pagina-encuesta" id="keyframes-pag"
         href="https://codepen.io/alvaro624la/full/qBjwbJW"
         target="_blank">
        <img class="imgs" 
             src="https://i.imgur.com/ih7lDd2.jpg" 
             alt="imagen_del formulario_de_encuesta">
        <p class=piefotos>Formulario encuesta</p></a>
      <a class="pagina-producto" id="keyframes-pag"
         href="https://codepen.io/alvaro624la/full/XWgQdYm" 
         target="_blank">
        <img class="imgs" 
             src="https://i.imgur.com/Qu7gbGw.jpg" 
             alt="imagen_de_la pagina_del_producto">
        <p class=piefotos>Página producto</p></a>
    </div>
  </section>
  </a>
  <a id="l.i.contacto">
    <div id="contacto-section">
      <a id="profile-link" 
         href="https://www.freecodecamp.org/espanol/fcc4080bd4f-b785-4b86-b787-079ccdc0e685" 
         target="_blank"><h2><u>Mis certificaciones</u></h2>
        <img 
          src="https://upload.wikimedia.org/wikipedia/commons/3/39/FreeCodeCamp_logo.png"           alt="freecodecamp_logo"></a>
      <div id="profile-link2"><h2><u>Mis datos</u></h2><img 
          src="https://3.bp.blogspot.com/-dLnILVXCB9o/WHKxmIzNsLI/AAAAAAAAQDI/ei_-BUqj35U0a_t2vWRYFQMObfHNNJ-4gCLcB/s1600/datos_personales.png"           alt="logotipo_lapiz_y_libreta"><h3>Nombre: Alvaro x x<br>Edad: xx años<br>Provincia: x</h3></div>
      <div id="profile-link3"><h2><u>Teléfono</u></h2><img 
          src="https://pic.onlinewebfonts.com/svg/img_95526.png" 
          alt="logotipo_de_un_telefono"><h4>6## ## ## ##</h4></div>
    </div>
  </a>
</main>
</div>
              
            
!

CSS

              
                html{
  margin: 0;
  padding: 0;
}
body{
  margin: 0;
  padding: 0;
}
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Staatliches&display=swap');
#html{
  display: grid;
  grid-template-areas:
    'navbar'
    'inicio'
    'proyectos-grid-out'
    'contacto';
  font-family: 'Quicksand', sans-serif, Helvetica;
  font-size: 20px;
}
#navbar{
  grid-area: navbar;
  position: fixed;
  width: 100vw;
  height: auto;
  padding: 10px;
  background: linear-gradient(90deg, #0f23ff, #0f23ff, white);
  text-align: right;
}
#navbar a{
  font-family: 'Staatliches', cursive, Impact, Helvetica !important;
  font-size: 25px;
  margin-right: 100px;
}
#welcome-section{
  grid-area: inicio;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, red, pink, blue);
  width: 100vw;
  height: 100vh;
  font-size: 40px;
  font-family: 'Quicksand', sans-serif, Helvetica;
  
  background-size: 200%;
  background-position: 0%;
  animation-name: background-anim;
  animation-duration: 15s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes background-anim{
  0%{background-position: 0%;}
  50%{background-position: 100%;}
  100%{background-position: 0%;}
}  
}
.hola{
  font-size: 60px;
}
.hola:hover{
  animation-name: anim-hola;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}
@keyframes anim-hola{
  0%{font-size: 60px;}
  100%{font-size: 90px;}
}
.project-tile{
  display: grid;
  grid-template-areas:
    'proyecto1 proyecto2 proyecto3';
  justify-items: center;
  align-items: center;
  padding: 50px;
  margin: 0px;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(90deg, #0f23ff, white);
}
.pagina-inicio{
  grid-area: proyecto1;
  padding-bottom: 10px;
  background-color: #aaa;
  border: ridge 10px pink;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;  
}
#keyframes-pag{
  box-shadow: 15px 25px 12px 3px rgba(0,0,0,0.6);
}
#keyframes-pag:hover{
  animation: anim-inicio 0.6s forwards ease-out;
}
@keyframes anim-inicio{
  0%{
    padding: 0px;
    padding-bottom: 10px;
  }
  100%{
    padding: 10px;
    padding-bottom: 20px;
  }
}

.pagina-encuesta{
  grid-area: proyecto2;
  padding-bottom: 10px;
  background-color: #aaa;
  border: ridge 10px pink;
}
.pagina-producto{
  grid-area: proyecto3;
  padding-bottom: 10px;
  background-color: #aaa;
  border: ridge 10px pink;
}
.imgs{
  width: 200px;
}
.piefotos{
  text-align: center;
}
#contacto-section{
  width: 100vw;
  height: auto;
  padding: 10px;
  background: linear-gradient(45deg, red, pink, blue);
  grid-area: contacto;
  display: grid;
  grid-template-areas:
    'fcc fcc'
    'datos telefono';
  justify-items: start;
  align-items: start;
  text-align: center;
}
#profile-link{
  grid-area: fcc;
  background-color: #aaa;
  border: ridge 10px pink;
}
#profile-link2{
  grid-area: datos;
  display: flex;
  background-color: #aaa;
  border: ridge 10px pink;
}
#profile-link3{
  grid-area: telefono;
  background-color: #aaa;
  border: ridge 10px pink;
}
#profile-link img{
    width: 300px;
    border-radius: 50%;
}
#profile-link2 img{
    width: 20%;
    height: auto;
}
#profile-link3 img{
  width: 100px;
}
@media (max-width: 900px){
  html{font-size: 8px;}
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console