Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- 

Hello Camper!

Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<div class="wrap">
        <h1 id="title"><span>Kunto Aji</span> Tribute Page</h1>
        <div id="main">
            <section id="bio">
                <figure id="img-div">
                    <img id="image" src="https://i.scdn.co/image/ab6761610000e5eb0074bf8996bb881fe7ecd4e5"
                        alt="Profile">
                    <figcaption id="img-caption">Kunto Aji photo for his Spotify cover</figcaption>
                </figure>
            </section>
            <section>
                <div id="tribute-info">
                    <h1>Biography</h1>
                    <p>
                        <b>Kunto Aji Wibisono</b> born in <time datetime="1987-01-04">January 4, 1987.</time>
                        He is a singer, song writer, and also an actor form Indonesia.
                        He started his carrer as a singer in singing talent event called <i>"Indonesian Idol"</i> in
                        2008. He released his album called “Generation Y” in 2015. In September 2018, Kunto Aji released
                        his sophomore album called “Mantra, Mantra”. Kunto Aji’s second album captures many people’s
                        attention not only his fans. One of the things that may give an effect of this positive critic
                        is because his songwriting had grown tremendously. In “Mantra, Mantra” he worked with 4
                        different producers; Ankadiov, Uga Swastadi, Petra Sihombing and Bam Mastro. Kunto Aji’s second
                        album talks and spread the awareness of how important mental health is. His lead singles “Konon
                        Katanya” reminds people to chase their own dreams despite what other people might say, “Topik
                        Semalam” is a message about a guy who hasn’t proposed to his longtime girlfriend but asking her
                        to be patient because he has his plan to do so, and also “Rehat” a self-reminder to people that
                        it’s completely okay to take a breather for a while. The album went on to receive 5 nominations
                        in Anugerah Musik Indonesia (AMI) Awards in 2019 including Best Pop Male Solo Act and Best
                        Album. <a href="https://www.last.fm/music/Kunto+Aji/+wiki" id="tribute-link" target="_blank">Source</a>.
                    </p>
                </div>
            </section>
            <section>
                <h1>Album & Single</h1>
                <div class="album">
                    <div class="album-item">
                        <img src="https://i.scdn.co/image/ab67616d0000b27313d10bbb77b566e85936bbba" alt="">
                        <h2>Generation Y</h2>
                        <p>2015</p>
                    </div>
                    <div class="album-item">
                        <img src="https://i.scdn.co/image/ab67616d0000b273d440eeb2d4e1ba424746e6f7" alt="">
                        <h2>Mantra Mantra</h2>
                        <p>2018</p>
                    </div>
                    <div class="album-item">
                        <img src="https://i.scdn.co/image/ab67616d0000b2738c53fb7245284c6fa1a1575f" alt="">
                        <h2>Terlalu Lama Sendiri</h2>
                        <p>2015</p>
                    </div>
                    <div class="album-item">
                        <img src="https://i.scdn.co/image/ab67616d0000b2736aa89ad6a5d3f01f66ad99bd" alt="">
                        <h2>Pengingat</h2>
                        <p>2015</p>
                    </div>
                </div>
            </section>
        </div>
    </div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');

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

img {
    display: block;
    max-width: 100%;
}

body {
    font-family: 'Baloo Bhaijaan 2', cursive;
}

.wrap {
    padding: 20px 10px;
    background-color: rgb(216, 216, 216);
    min-height: 100vh;
}

#main {
    padding: 20px 40px;
    position: relative;
}

.wrap #title {
    font-size: 2rem;
    text-align: center;
}

.wrap #title span {
    font-family: 'Lobster';
    font-size: 3rem;
}

.wrap #main #bio {
    background-color: rgb(243, 239, 239);
    background: linear-gradient(50deg, #649173, rgb(218, 218, 218), #dbd5a4);
    display: flex;
    flex-direction: column;
    padding: 25px 0;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgb(143, 141, 141);
}

.wrap #main #bio #img-div {
    width: 35%;
    align-self: center;
}

.wrap #main #bio #img-div>#image {
    border-radius: 10px;
}

.wrap #main #bio #img-div>#img-caption {
    font-style: italic;
}

.wrap #main section:not(:first-child) {
    margin-top: 20px;
}

.wrap #main section:nth-child(2) #tribute-info>h1 {
    font-size: 2rem;
}

.wrap #main section:nth-child(2) #tribute-info>p {
    text-align: justify;
}
.wrap #main section:nth-child(2) #tribute-info p>#tribute-link {
    font-style: italic;
    color: black;
}
.wrap #main section:nth-child(2) #tribute-info p>#tribute-link:hover {
    color: red;
    cursor: pointer;
}
.wrap #main section:nth-child(3) h1 {
    font-size: 2rem;
}
.wrap #main section:nth-child(3) .album {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.wrap #main section:nth-child(3) .album .album-item {
    width: 23%;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgb(233, 233, 233);
    box-shadow: 4px 5px 5px rgb(149, 149, 149);
    transition: 0.2s;
}
.wrap #main section:nth-child(3) .album .album-item > img {
    width: 100%;
    height: auto;
}
.wrap #main section:nth-child(3) .album .album-item > h2 {
    font-size: 1.3rem;
}
.wrap #main section:nth-child(3) .album .album-item > p {
    margin-top: -10px;
    font-size: 1.2rem;
}
.album-item > p, .album-item > h2 {
    padding-left: 0.7rem;
}
.wrap #main section:nth-child(3) .album .album-item:hover {
    transform: scale(1.03);
}
@media screen and (max-width: 957px) {
    .wrap #main section:nth-child(3) .album .album-item {
        width: 23%;
    }
    .wrap #main section:nth-child(3) .album .album-item > h2 {
        margin-top: 10px;
        line-height: 23px;
    }
}
@media screen and (max-width: 775px) {
    .wrap #main section:nth-child(3) .album {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .wrap #main section:nth-child(3) .album .album-item {
        width: 30%;
        margin-top: 20px;
    }
    .wrap #main section:nth-child(3) .album .album-item > h2 {
        font-size: 1.5rem;
    }
}
@media screen and (max-width: 600px) {
    
    .wrap #main #bio #img-div {
        width: 60%;
    }
    .wrap #main #bio #img-div>#img-caption {
        line-height: 20px;
    }
    .wrap #main section:nth-child(3) .album .album-item > h2 {
        font-size: 1.1rem;
    }
}
@media screen and (max-width: 440px) {
    .wrap {
        padding: 20px 0px;
    }
    .wrap #main section:nth-child(3) .album .album-item {
        width: 48%;
    }
    .wrap #main section:nth-child(3) .album .album-item > h2 {
        font-size: 1.1rem;
    }
    .wrap #title {
        font-size: 1.5rem;
    }
    .wrap #title span {
        font-size: 2.5rem;
    }
}
              
            
!

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