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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                
    <body>
    <header id="header">
            <nav id="nav-bar">
                    <div id="main-nav">
                        <ul class="menu">
                            <li><a  href="#services" class="nav-link">Services</a></li>
                            <li><a href="#about" class="nav-link">Meet the team</a></li>
                            <li><a href="#pricing" class="nav-link">Pricing</a></li>
                            <li><a href="#contact" class="nav-link">Location</a></li>
                        </ul>
                    </div>
                </nav>
        <div id="header-text">
            <h1>Ihenx Photography</h1>

            <img id="header-img" src="https://assets.dryicons.com/uploads/icon/svg/12355/fccd1915-dd44-4632-91a5-f3eb259d8d62.svg" alt="" width="30">
        </div>
        
    </header>
    <main id="wrapper">
        <div id="flex">
            <!-- Container -->
            <section id="container">
                <div id="showcase">
                    <div id="showcase-text">
                        <p>Let Us paint your world with our lens.Our in-house photography team is made up
                            of professional photographers that can add value to your world
                        </p>
                        <form action="https://www.freecodecamp.com/email-submit" id="form">
                            <div class="form-group">
                                <input type="email" name="email" id="email" placeholder="enter email address" required>
                                <div id="click">
                                    <input type="submit" value="Get Started" id="submit">
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
                <div id="features" class="content">
                    <div class="content-text">
                        <h3 id="services">Services</h3>
                        <p>our photography servics include:</p>
                        <ul>
                            <li>Full day or half day photo shoots with all necessary equipments</li>
                            <li>professional camera and kits</li>
                            <li>professional lighting setup</li>
                            <li>Photo editing, color correction and retouching</li>
                            <li>Complete photo library access with full usage rights</li>
                            <li>Photo metadata to SEO best practices</li>

                        </ul>
                        <div id="vide">
                            <iframe id="video"
                            src="https://www.youtube.com/embed/ineZXLbL7s8"
                             frameborder="0" allow="accelerometer; autoplay;
                              encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                        </div>
                    </div>
                </div>
                <div id="about" class="content">
                    <div class="content-text">
                        <div class="about-header">
                            <h3>meet the team</h3>
                        </div>
                        <p>Our team gets a natural high from continuously driving demand
                            for our client's products and services.We are transparent, strategic hard-hitting and
                            results
                            driven
                            with a major soft spot- we truly care about our clients.
                        </p>
                        <p>So take a few minutes and dive in to learn a little bit about our talented team
                            and all the great things they can do together.
                        </p>
                    </div>
                </div>

                <div id="pricing" class="content">
                    <div class="content-text">
                        <h3>Pricing</h3>
                        <p class="pick">
                            if your you'll like to know the prices of
                            the services i offer check out below;</p>
                        <div id="grid">
                            <div class="product">
                                <h4>Wedding photography</h4>
                                <div class="center">
                                    <div id="image">
                                        <img src="image/IMG_20190812_180959.jpg" alt="">
                                    </div>


                                    <p class="pick">Wedding coverage begins at $950 for intimate Wedding
                                        days , destination events and associate photographer
                                    </p>
                                </div>
                            </div>

                            <div class="product">
                                <h4>Headshot Photography</h4>
                                <div class="center">
                                    <div id="image">
                                        <img src="image/IMG_20190925_141501.jpg" alt="">
                                    </div>

                                    <p class="pick">Headshot packages begin at $600.I offer headshot personal brandoing session
                                        for website and social media and camp card.
                                    </p>
                                </div>
                            </div>


                            <div class="product">
                                <h4>Portrait Photography</h4>
                                <div class="center">
                                    <div id="image">
                                        <img src="image/IMG_20200131_205000.jpg" alt="">
                                    </div>
                                    <p class="pick">I offer portrait services for weddings and commercial
                                        purposes.portrait package begins at $250.
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </div>

        </div>
        </section>

        <div id="contact">
            <div id="contact-text">
                <h3>Location</h3>
                <div id="context">
                    <div id="flex">
                        <h4>The Original HQ</h4>

                        <p>korodumma, karu local government Area nasarawa state </p>
                        <h4>Anambara State</h4>
                        <p>behind ifite street, along Nnamdi Azikiwe University</p>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <footer>
        <p>Landing page written by Godspower Iheanacho</p>
    </footer>
</body>










<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>


              
            
!

CSS

              
                
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

*{
box-sizing: border-box;
}
body{
    background: #fafafa;
    margin:auto;
    padding:0;
    font-size: 1.2em;
    width: 100%;
    text-align: center;

}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}
header{
    background: #adadad;
    color:#501b1d;
    position: sticky;
    top:0;
    left: 0;
    width: 100%;
    overflow:auto;
}
#header-text{
    display: flex;
    flex-direction: column;
    place-items: center;
}
#header-text h1{
    font-size: 3rem;
    text-transform: capitalize;
    font-weight: 700;
    font-family: 'Lobster', cursive;
}
#header-img{
    margin-top: -1rem;
    width:50px;
    margin-bottom: 1rem;
}
@media(max-width:500px){
    #header-text h1{
        font-size: 2rem;
    }
    nav{
        text-align: center;
        margin-bottom:0;
    }
    #main-nav li a{
        font-size: 1rem;
        padding:4px
    }
}
nav{
    background: #64485c;
    text-align: right;
}
#main-nav .menu{
    margin:0;
    padding:5px;
}
#main-nav ul li{
    display: inline;
    padding:5px;
    margin:5px;
}
#main-nav li a{
    padding:6px;
    color:#adadad;
    font-size:1.3rem;
    font-weight: 500;
    transition:all .5s ease;
}
#main-nav li a:hover{
    background: #adadad;
    color: #501b1d;
}
#showcase{
    background:linear-gradient(45deg, #501b1d73, #adadad), url(image/pexels-photo-1983040.jpeg);
    display: flex;
    flex-direction: column;
    min-height: 20em;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}
#showcase-text{
padding: 2rem  1rem;
justify-content: center;
align-items: center;
text-align: center;
margin:2 auto;
font-size:2rem;
line-height: 1.4;
}
@media(max-width:500px){
    #showcase-text{
        font-size: 1.5rem
    }
}
#form{
    margin-top: 2rem;

}
input{
    height: 7vh;
    padding:0.5rem 1rem;
}
#email{
    width:50%;
    border:none;
    outline: none;
    border-radius:5px;
    background: #fafafadc;

}
#submit{
  background:#501b1d;
  color:#adadad;
}
#submit:hover{
  color:#501b1d;
  background:#adadad;
}
#click{
    margin-top: 1rem;
}
#features{
    text-align: center;
    line-height: 3;
    color:#adadad;
    display: flex;
    flex-direction: column;
    place-items: center;
    margin-top:-2rem;
    background:linear-gradient(360deg, #adadad, #501b1d);

}
#features h3{
    font-size: 2rem;
    background:linear-gradient(180deg, #64485c, #83677b);
    margin-top:0;
}
#features p{
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.content-text ul{
    list-style-position: inside;
    list-style-type: disc;
    text-align: center;
    margin-left:0;
    padding-left:0;
}
#video{
    width: 100%;
    height: 100%;
}
#about{
    background:linear-gradient(180deg, #64485cfa, #83677b);
    display: flex;
    flex-direction: column;
    place-items: center;
    text-align: center;
    color:#adadad;
    line-height:1.5;
}
.about-header{
    background:#83677b;
    color: #501b1d;
    display: flex;
    flex-direction: column;
    font-size:2rem;
    text-transform: capitalize;
    font-weight: 700;
}
#about p:first-letter{
font-size: 2rem;
}
#about p{
    padding:0 1rem;
}
#pricing{
    display: flex;
    flex-direction: column;
    width: 100%;
}
#pricing h3{
color:#64485c;
text-align: center;
font-size: 2rem;
font-weight: 700;

}
#pricing .pick{
    text-align:center;
    color: #adadad;

}
#grid img{
width:100%;
height: 50vh;
border:1px solid #64485c;
}
.product h4{
    text-align: center;
    font-size: 1.5rem;
    background: #83677b;
    padding: 1rem;
    margin:0;

}
.product
{
    background: #501b1d;
    color:#adadad;
    display: flex;
    flex-direction: column;
    
   
}
.center{
    padding:1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    place-items: center;
    line-height: 1.5rem;
}
#contact{
    display: flex;
    background:linear-gradient(180deg, #adadad, #83677b);
    flex-direction: column;
    place-items: center;
    text-align: center;
    color:#501b1d;
}
#contact h3{
font-size: 2rem;
background: linear-gradient(to top,#83677b, #501b1d);
padding:1rem; 
color:#adadad
}
footer{
    display: flex;
    flex-direction: column;
    text-align: center;
    background:linear-gradient(to right, #501b1d, #501b1d85);
    color: #adadad;
}
@media(min-width:700px){
    #grid{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }
    .product{
       max-width:400px;
       width: 100%;
        margin-bottom: 2rem;
    }
    .product h4{
        margin-top:0;
    }
    #video{
        width:700px;
    }
}


              
            
!

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