A Pen by Sebastian Ortiz on CodePen.
Live Preview: https://codepen.io/dsebao/full/VweNPKB
A Pen by Sebastian Ortiz on CodePen.
Live Preview: https://codepen.io/dsebao/full/VweNPKB
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> | |
<div id="main"> | |
<div class="container"> | |
<div class="row"> | |
<div class='col-md-6 mx-auto'> | |
<div class="card my-5"> | |
<div class="p-5"> | |
<h6 class='text-center'>TRIBUTE PAGE</h6> | |
<h1 class="mb-4 text-center mt-4" id="title">Le Corbusier</h1> | |
<div id="tribute-info"> | |
<p>Es considerado uno de los más claros exponentes de la arquitectura moderna, uno de los arquitectos más influyentes del siglo XX | |
</p> | |
</div> | |
</div> | |
<div id="img-div"> | |
<figure><img class="w-100" id="image" src="https://tecnne.com/wp-content/uploads/2013/07/Le-Corbusier-Leccion-de-roma-tecnne.jpg" alt="Le Corbusier"> | |
<figcaption id="img-caption" class="text-center">Le Corbusier <a href="https://es.wikipedia.org/wiki/Le_Corbusier" id="tribute-link" target="_blank">More info</a></figcaption> | |
</figure> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&display=swap'); | |
a{ | |
color: #ef7; | |
} | |
body{ | |
background-color: #ef7; | |
color: #666; | |
} | |
h1{ | |
font-family: "Playfair Display"; | |
font-style: italic; | |
} | |
.card{ | |
overflow: hidden; | |
border: none; | |
border-radius: 20px; | |
box-shadow: 0 20px 40px rgba(0,0,0,0.2); | |
} | |
.card #img-div figure{ | |
position:relative; | |
margin: 0; | |
} | |
.card img{ | |
display: block; | |
max-width:100%; | |
} | |
.card figcaption{ | |
width: 100%; | |
position: absolute; | |
bottom: 0; | |
box-sizing: border-box; | |
padding: 20px; | |
color: #fff; | |
} |
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" /> |