HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<head>
<link href="https://fonts.googleapis.com/css2?family=Monoton&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Barlow&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Exo&display=swap" rel="stylesheet">
</head>
<body>
<!--NAVIGATION------------------------------>
<nav>
<input id="nav-toggle" type="checkbox">
<ul class="nav-links">
<li><a href="#">Home</a></li>
<li><a href="#biography">Biography</a></li>
<li><a href="#albums">Discography</a></li>
<li><a href="#awards">Awards</a></li>
<li><a href="#info">More Info</a></li>
</ul>
<label for="nav-toggle" class="burger">
<div class="line1"></div>
<div class="line2"></div>
<div class="line3"></div>
</label>
</nav>
<!--MAIN INFORMATION-------------------------------->
<main id="main">
<div id="img-div">
<h1 id="title"><a href="https://en.wikipedia.org/wiki/Ed_Sheeran" target="_blank">ED SHEERAN</a></h1>
<img id="image" src="https://res.cloudinary.com/dxtk2jw11/image/upload/v1629960226/Triute%20page/Cover_zb9gv8.jpg" alt="">
<p id="img-caption" style="display: none;">Ed Sheeran</p>
</div>
<!--BIOGRAPHY-------------------------------->
<section id="biography">
<h2>Biography</h2>
<div id="tribute-info">
<p>Ed Sheeran was born on February 17, 1991, in Halifax, West Yorkshire, in the United Kingdom. When he was young, he began playing guitar, showing early promise as a musical talent. When he was 11, Sheeran met singer-songwriter Damien Rice backstage at one of Rice’s shows, and the young musician found added inspiration.<br>At only 14 years of age, Sheeran headed to London for the summer. Thinking he could find gigs in the big city, Sheeran left home with his guitar and a backpack full of clothes, and his musical career took flight. In London, Sheeran got busy recording and playing the local singer/songwriter circuit and quickly released two albums: a self-titled record in 2006 and Want Some? in 2007. Sheeran headed to the United States in 2010. In January 2011.<br>Sheeran released his last EP as an independent artist, without any promotion, the record reached No. 2 on the iTunes chart, and he signed on with Atlantic Records that same month. With Atlantic, Sheeran released his major debut studio album, +. An instant hit, the album sold more than a million copies in the United Kingdom in the first six months alone. <a href="https://www.biography.com/musician/ed-sheeran#:~:text=Ed%20Sheeran%20was%20born%20on,promise%20as%20a%20musical%20talent.&text=With%20that%20accomplishment%20and%20his,to%20London%20for%20the%20summer." target="_blank" id="tribute-link">More about Ed Sheeran Biography...</a></p>
<img src="https://res.cloudinary.com/dxtk2jw11/image/upload/v1629375804/Triute%20page/Ed_Sheeran_ogruaz.jpg" alt="Ed Sheeran singing">
</div>
</section>
<!---ALBUMS--------------------------------->
<section id="albums">
<h2>Discography</h2>
<div class="albums">
<div class="albums">
<div class="box">
<a href="https://open.spotify.com/album/32iAEBstCjauDhyKpGjTuq" target="_blank" style="position: absolute; inset: 0; text-decoration: none; z-index: 2; background-color: #fff; opacity: 0;"></a>
<div class="box-image"></div>
<div class="box-text">
<p>Album Name - (=)</p>
<P>Release - 29 October 2021</P>
</div>
</div>
<div class="box two">
<a href="https://open.spotify.com/album/1xn54DMo2qIqBuMqHtUsFd" target="_blank" style="position: absolute; inset: 0; text-decoration: none; z-index: 2; background-color: #fff; opacity: 0;"></a>
<div class="box-image"></div>
<div class="box-text">
<p>Album Name - Multiply(X)</p>
<P>Release - 20 june 2004</P>
</div>
</div>
<div class="box three">
<a href="https://open.spotify.com/album/02pi98kE0nra0yBqCStzbC" target="_blank" style="position: absolute; inset: 0; text-decoration: none; z-index: 2; background-color: #fff; opacity: 0;"></a>
<div class="box-image"></div>
<div class="box-text">
<p>Album Name - Plus(+)</p>
<P>Release - 09 Sept 2011</P>
</div>
</div>
<div class="box four">
<a href="https://open.spotify.com/album/3T4tUhGYeRNVUGevb0wThu" target="_blank" style="position: absolute; inset: 0; text-decoration: none; z-index: 2; background-color: #fff; opacity: 0;"></a>
<div class="box-image"></div>
<div class="box-text">
<p>Album Name - Devide(÷)</p>
<P>Release - 03 March 2017</P>
</div>
</div>
<div class="box five">
<a href="https://open.spotify.com/album/3oIFxDIo2fwuk4lwCmFZCx" target="_blank" style="position: absolute; inset: 0; text-decoration: none; z-index: 2; background-color: #fff; opacity: 0;"></a>
<div class="box-image"></div>
<div class="box-text">
<p>Album Name - No.6 Collaborations..</p>
<P>Release - 12 july 2019</P>
</div>
</div>
<div class="box six">
<a href="https://open.spotify.com/album/40TWM0OpD4tS3AoWLnUxIC" target="_blank" style="position: absolute; inset: 0; text-decoration: none; z-index: 2; background-color: #fff; opacity: 0;"></a>
<div class="box-image"></div>
<div class="box-text">
<p>Album Name - Songs I Wrote with Amy</p>
<P>Release - 18 Aril 2010</P>
</div>
</div>
</div>
</section>
<!---AWARDS--------------------------------->
<section id="awards">
<h2>Awards</h2>
<div id="container">
<div class="award">
<img src="https://res.cloudinary.com/dxtk2jw11/image/upload/v1629722192/Triute%20page/grammy_cbzems.jpg" alt="">
<ul>
<li>Grammy Award for Song of the Year 2016</li>
<li>Grammy Award for Best Pop Vocal Album 2018</li>
<li>Grammy Award for Best Pop Solo Performance 2016,2018</li>
</ul>
</div>
<div class="award">
<img src="https://res.cloudinary.com/dxtk2jw11/image/upload/v1629722174/Triute%20page/billbord_gaj1fn.jpg" alt="">
<ul>
<li>Billboard Music Award for Top Artist 2018</li>
<li>Billboard Music Award for Top Song Sales Artist 2018</li>
<li>Billboard Music Award for Top Male Artist 2018</li>
<li>Billboard Music Award for Top Radio Song 2018</li>
<li>Billboard Music Award for Top Radio Songs Artist 2018</li>
</ul>
</div>
<div class="award">
<img src="https://res.cloudinary.com/dxtk2jw11/image/upload/v1629722170/Triute%20page/brit_r36mke.jpg" alt="">
<ul>
<li>Brit Award for MasterCard British Album of the Year 2015</li>
<li>Brit Award for Breakthrough Artist 2012</li>
</ul>
</div>
<div class="award">
<img src="https://res.cloudinary.com/dxtk2jw11/image/upload/v1629722184/Triute%20page/iheart_tmguis.jpg" alt="">
<ul>
<li>iHeartRadio Music Award for Best Lyrics 2017</li>
<li>iHeartRadio Music Award for Song of the Year 2018</li>
</ul>
</div>
</div>
</section>
</main>
<!--MORE INFO-------------------------------->
<section id="info">
<div class="wiki"><a href="https://en.wikipedia.org/wiki/Ed_Sheeran" target="_blank"><svg class="svg wiki" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M15.562 19.478l-3.07-7.238q-.258.51-1.652 3.182t-2.068 4.057a1.493 1.493 0 0 1-.292.004h.005l-.062.001c-.075 0-.15-.006-.222-.018l.008.001q-.854-2.01-2.662-6.114T2.843 7.144a4.935 4.935 0 0 0-.699-1.128l.007.008a5.747 5.747 0 0 0-1.063-1.035l-.015-.011a1.867 1.867 0 0 0-1.055-.447L.011 4.53q0-.052-.005-.25t-.005-.282h6.073v.521a2.98 2.98 0 0 0-.846.173l.021-.007a1.631 1.631 0 0 0-.692.447l-.001.001a.566.566 0 0 0-.102.669l-.002-.003q.271.614 2.255 5.2t2.453 5.626q.32-.635 1.458-2.776t1.364-2.578q-.198-.406-1.313-2.926T9.253 5.272q-.396-.72-2.094-.74v-.523l5.343.01v.49h-.04c-.345 0-.667.096-.942.263l.008-.005q-.349.24-.13.72q.344.73.906 1.974t.895 1.953q1.146-2.229 1.802-3.781q.25-.573-.103-.826a2.526 2.526 0 0 0-1.35-.276h.008c.007-.065.011-.14.011-.216V4.27v.002v-.25q.666 0 1.776-.005l2.834-.015v.51a2.738 2.738 0 0 0-1.253.351l.014-.007a2.596 2.596 0 0 0-.931.828l-.006.009l-2.219 4.604q.135.344 1.328 3.021t1.266 2.854L20.97 5.579a1.356 1.356 0 0 0-.511-.648l-.005-.003a2.038 2.038 0 0 0-.663-.324l-.015-.004a2.91 2.91 0 0 0-.572-.08h-.006v-.524l4.792.042l.01.021l-.01.458a2.252 2.252 0 0 0-2.089 1.495l-.005.016q-5.482 12.666-5.824 13.447z" fill="currentColor"/></svg></a></div>
<div class="youtube"><a href="https://www.youtube.com/channel/UC0C-w0YjGpqDXGB8IHb662A" target="_blank"><svg class="svg utube" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M9.522 15.553V8.81l6.484 3.383l-6.484 3.36zM23.76 7.641s-.235-1.654-.954-2.382c-.913-.956-1.936-.96-2.405-1.016C17.043 4 12.005 4 12.005 4h-.01s-5.038 0-8.396.243c-.47.055-1.492.06-2.406 1.016C.474 5.987.24 7.641.24 7.641S0 9.584 0 11.525v1.822c0 1.942.24 3.884.24 3.884s.234 1.653.953 2.382c.914.956 2.113.926 2.647 1.026c1.92.184 8.16.241 8.16.241s5.043-.007 8.401-.25c.47-.056 1.492-.061 2.405-1.017c.72-.729.954-2.382.954-2.382s.24-1.942.24-3.885v-1.82c0-1.942-.24-3.885-.24-3.885z"/></svg></a></div>
<div class="imdb"><a href="https://www.imdb.com/name/nm3247828/" target="_blank"><svg class="svg imdb" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M18.8 13.768v-1.875l.001-.044c0-.137-.02-.27-.057-.395l.002.01q-.054-.16-.32-.16t-.268.59v.16a8.109 8.109 0 0 0 .115 2.409l-.009-.051q.054.107.24.107a.227.227 0 0 0 .24-.159v-.002c.035-.125.055-.27.055-.418l-.001-.065v.003zm-4.607-3.322a1.274 1.274 0 0 0-.083-.545l.003.009q-.08-.16-.455-.16v4.5q.375 0 .455-.187a1.672 1.672 0 0 0 .08-.621v.004zM24 2.572v-.045c0-.696-.287-1.326-.749-1.776L23.25.75A2.472 2.472 0 0 0 21.473 0h-.047h.002H2.526A2.47 2.47 0 0 0 .749.75L.748.751a2.472 2.472 0 0 0-.75 1.777v.046v-.002v18.901c0 .696.287 1.326.749 1.776l.001.001c.451.463 1.08.75 1.777.75h.047h-.002H21.473c.696 0 1.326-.287 1.776-.749l.001-.001c.463-.451.75-1.08.75-1.777v-.045v.002zm-18.8 6v6.858H3.429V8.573zm6.054 0v6.858H9.751v-4.661l-.64 4.661H7.983l-.64-4.554v4.554H5.786V8.573h2.303q.16 1.018.429 3.161l.054.054l.375-3.214zm4.66 2.41v1.446a13.038 13.038 0 0 1-.115 2.21l.008-.067c-.1.383-.408.675-.794.749l-.006.001a13.951 13.951 0 0 1-2.327.107l.024.001h-.8V8.572h1.5a6.704 6.704 0 0 1 1.488.114l-.042-.007c.499.108.881.509.959 1.011l.001.007a4.29 4.29 0 0 1 .11 1.131v-.007zm4.608.96h-.058v1.929a2.996 2.996 0 0 1-.166 1.146l.006-.021a1.007 1.007 0 0 1-.968.479h.004h-.035c-.448 0-.852-.184-1.143-.48l-.054.429H16.5V8.567h1.66v2.25a1.472 1.472 0 0 1 1.21-.508h-.004a.987.987 0 0 1 .935.451l.002.004a2.245 2.245 0 0 1 .214 1.188l.001-.009z" fill="currentColor"/></svg></a></div>
<div class="insta"><a href="https://www.instagram.com/teddysphotos/?hl=en" target="_blank"><svg class="svg instagram" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M12 0C8.74 0 8.333.015 7.053.072C5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053C.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913a5.885 5.885 0 0 0 1.384 2.126A5.868 5.868 0 0 0 4.14 23.37c.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558a5.898 5.898 0 0 0 2.126-1.384a5.86 5.86 0 0 0 1.384-2.126c.296-.765.499-1.636.558-2.913c.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913a5.89 5.89 0 0 0-1.384-2.126A5.847 5.847 0 0 0 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071c1.17.055 1.805.249 2.227.415c.562.217.96.477 1.382.896c.419.42.679.819.896 1.381c.164.422.36 1.057.413 2.227c.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227a3.81 3.81 0 0 1-.899 1.382a3.744 3.744 0 0 1-1.38.896c-.42.164-1.065.36-2.235.413c-1.274.057-1.649.07-4.859.07c-3.211 0-3.586-.015-4.859-.074c-1.171-.061-1.816-.256-2.236-.421a3.716 3.716 0 0 1-1.379-.899a3.644 3.644 0 0 1-.9-1.38c-.165-.42-.359-1.065-.42-2.235c-.045-1.26-.061-1.649-.061-4.844c0-3.196.016-3.586.061-4.861c.061-1.17.255-1.814.42-2.234c.21-.57.479-.96.9-1.381c.419-.419.81-.689 1.379-.898c.42-.166 1.051-.361 2.221-.421c1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678a6.162 6.162 0 1 0 0 12.324a6.162 6.162 0 1 0 0-12.324zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4s4 1.79 4 4s-1.79 4-4 4zm7.846-10.405a1.441 1.441 0 0 1-2.88 0a1.44 1.44 0 0 1 2.88 0z" fill="currentColor"/></svg></a></div>
</section>
</main>
<!--FOOTER-------------------------------------------------------------->
<footer>
<p>© 2021 <a href="https://codepen.io/vilgax04" target="_blank">Zakariyya Maqsood</a></p>
</footer>
</body>
</html>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--headerFooter: #539739;
--background: #f0eee3;
--mainContent: #fc5956;
}
body {
font-family: 'Exo', sans-serif;
background-color: var(--background);
}
/* NAVBAR ----------------------------------------------------------------------------*/
nav {
position: fixed;
left: 0;
right: 0;
top: 0;
background-color: var(--headerFooter);
z-index: 3;
}
.nav-links {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
}
nav input {
display: none;
}
.nav-links li {
list-style: none;
display: inline-block;
}
.nav-links li a {
display: block;
text-decoration: none;
color: #fff;
font-family: 'Kaushan Script', cursive;
font-weight: bold;
font-size: 20px;
padding: 11px 20px;
}
.nav-links li a:hover {
background-color: #fff;
color: #444444;
}
#nav-toggle {
position: absolute;
}
nav .burger {
position: absolute;
right: 4%;
top: 50%;
transform: translateY(-50%);
display: none;
}
.burger div {
background-color: #fff;
width: 25px;
height: 3px;
margin: 5px;
border-radius: 2px;
transition: .2s ease-in-out;
}
/* COVER ----------------------------------------------------------------------------*/
#img-div {
position: relative;
top: 50px;
}
#image {
display: block;
max-width: 100%;
height: auto;
}
#title {
position: absolute;
right: 7%;
top: 80px;
font-family: 'Monoton', cursive;
color: #ff1177;
font-size: 5.5vw;
font-weight: initial;
cursor: pointer;
animation: none;
transition: all 0.2s
}
#title:hover {
color: #fff;
animation: neon 1.5s ease-in-out infinite alternate;
font-weight: initial;
}
#title a {
text-decoration: none;
color: inherit;
}
@keyframes neon {
from {
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #ff1177,
0 0 70px #ff1177, 0 0 80px #ff1177, 0 0 100px #ff1177, 0 0 150px #ff1177;
}
to {
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff1177,
0 0 35px #ff1177, 0 0 40px #ff1177, 0 0 50px #ff1177, 0 0 75px #ff1177;
}
}
/* BIOGRAPHY ----------------------------------------------------------------------------*/
#biography {
padding-top: 120px;
padding-bottom: 70px;
padding-left: 13vw;
padding-right: 13vw;
}
h2 {
font-family: 'Barlow', sans-serif;
text-align: center;
font-size: 35px;
margin: 0px auto 30px auto;
}
#tribute-info {
display: flex;
align-items: center;
justify-content: center;
}
#tribute-info img {
display: inline-block;
width: 350px;
height: 350px;
border-radius: 50%;
margin-left: 30px;
shape-outside: circle(50%);
}
#tribute-info p {
line-height: 1.8;
}
/* ALBUMS ----------------------------------------------------------------------------*/
#albums {
background-color: var(--mainContent);
padding-top: 80px;
padding-bottom: 70px;
padding-left: 12vw;
padding-right: 12vw;
}
#albums h2 {
margin: 0 auto 10px auto;
}
.albums {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.box {
position: relative;
margin: 25px;
width: max-content;
display: grid;
grid-template-columns: 225px;
grid-template-rows: 225px 47px;
grid-template-areas: "image" "text";
box-shadow: 5px 5px 15px rgb(0, 0, 0, .9);
text-align: center;
overflow: hidden;
position: relative;
transition: .7s ease;
cursor: pointer;
}
.box-image {
grid-area: image;
background: url(https://res.cloudinary.com/dxtk2jw11/image/upload/v1629953916/Triute%20page/ab67616d0000b273a5cf426490a6e1c1bde53fb1_pa8yjh.jpg);
background-size: cover;
}
.two .box-image {
background: url(https://res.cloudinary.com/dxtk2jw11/image/upload/v1629375805/Triute%20page/X_cover_svorky.png);
background-size: cover;
}
.three .box-image {
background: url(https://res.cloudinary.com/dxtk2jw11/image/upload/v1629375805/Triute%20page/plus_xp3njz.png);
background-size: cover;
}
.four .box-image {
background: url(https://res.cloudinary.com/dxtk2jw11/image/upload/v1629375805/Triute%20page/devide_k8vr4t.jpg);
background-size: cover;
}
.five .box-image {
background: url(https://res.cloudinary.com/dxtk2jw11/image/upload/v1629375804/Triute%20page/No._6_Collaborations_Project_trpmrq.png);
background-size: cover;
}
.six .box-image {
background: url(https://res.cloudinary.com/dxtk2jw11/image/upload/v1629375805/Triute%20page/songs_i_wrote_with_Amy_qqkcdu.jpg);
background-size: cover;
}
.box-text {
grid-area: text;
padding: 8px;
font-size: 11px;
font-weight: 590;
color: #fff;
background-color: #ab0702;
}
.two .box-text {
background-color: #107d33;
}
.three .box-text {
background-color: #bb4d09;
}
.four .box-text {
background-color: #288fa7;
}
.five .box-text {
background-color: #505050;
}
.six .box-text {
background-color: #932126;
}
.box:hover {
transform: scale(1.1);
box-shadow: 5px 5px 15px rgb(0, 0, 0, .6);
}
/*AWARDS ----------------------------------------------------------------------------*/
#awards {
padding-top: 80px;
padding-bottom: 70px;
padding-left: 9vw;
padding-right: 9vw;
}
#container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
}
.award {
width: 300px;
height: 495px;
background-color: var(--mainContent);
padding: 15px;
margin: 30px;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 5px 5px 15px rgb(0, 0, 0, .6);
border-radius: 12px;
}
#container .award img {
width: 180px;
height: 180px;
border-radius: 50%;
margin: 10px auto 12px auto;
}
#container .award ul {
padding: 0 20px 0 20px;
}
#container .award ul li {
grid-area: text;
font-size: 15px;
}
/* MORE INFO ------------------------------------------------------------------------*/
#info {
padding: 20px 0;
display: flex;
background-color: var(--headerFooter);
justify-content: center;
}
#info div {
display: inline-block;
width: 46px;
height: 46px;
margin: 0 6px;
border-radius: 10px;
text-align: center;
}
#info .wiki:hover {
background-color: #fff;
}
#info .youtube:hover {
background-color: #fff;
}
#info .imdb:hover {
background-color: #000;
}
#info .insta:hover {
background-color: #E4405F;
}
.svg {
position: relative;
top: 50%;
transform: translateY(-50%);
font-size: 34px;
color: #fff;
}
.svg.wiki {
font-size: 37px;
}
.svg.imdb {
font-size: 32px
}
.svg.utube {
font-size: 35px;
}
.svg.wiki:hover {
color: #000;
}
.svg.utube:hover {
color: #FF0000;
}
.svg.imdb:hover {
color: #f3ce13;
}
.svg.instagram:hover {
color: #fff;
}
/* FOOTER ----------------------------------------------------------------------------*/
footer {
background-color: #107d33;
padding: 7px;
}
footer p {
font-size: 12px;
text-align: center;
}
footer a {
text-decoration: none;
color: inherit;
}
footer a:hover {
color: #fff;
}
@media screen and (max-width: 768px) {
nav {
min-height: 8vh;
}
.nav-links {
position: fixed;
left: 0;
right: 0;
top: 8vh;
z-index: 2;
bottom: 100%;
background-color: rgb(0, 0, 0, .8);
display: flex;
flex-direction: column;
justify-content: space-evenly;
width: auto;
height: auto;
overflow: hidden;
transition: all 0.5s ease-in-out;
}
nav :checked ~ .nav-links {
bottom: 0;
}
nav .burger {
display: block;
}
nav :checked ~ .burger .line1 {
transform: translateY(8px) rotate(225deg);
}
nav :checked ~ .burger .line3 {
transform: translateY(-8px) rotate(-225deg);
}
nav :checked ~ .burger .line2 {
opacity: 0;
}
.nav-links li {
width: 100%;
text-align: center;
}
.nav-links li a {
letter-spacing: 1px;
}
#img-div {
top: 40px;
}
.name {
right: 6%;
top: 55px;
}
#tribute-info {
flex-direction: column-reverse;
justify-content: center;
}
#tribute-info img {
margin: 0 auto 25px auto;
}
h2 {
font-size: 32px;
}
#albums, #albums {
padding-left: 9vw;
padding-right: 9vw;
}
}
@media screen and (max-width: 480px) {
#albums, #albums {
padding-left: 0;
padding-right: 0;
}
#tribute-info img {
width: 60vw;
height: 60vw;
margin: 0 auto 25px auto;
}
#tribute-info p {
font-size: 15px;
}
#container .award img {
width: 37vw;
height: 37vw;
}
#container .award ul li {
font-size: 14px;
}
}
Also see: Tab Triggers