Create Responsive Fiverr Landing Page by using HTML and CSS

fiverr banner

Creating a landing page like Fiverr using HTML and CSS is a substantial project that requires a good understanding of web development. Fiverr's landing page is a complex design with various elements, so I'll provide a simplified step-by-step guide to get you started. Please note that replicating the entire Fiverr website is a substantial project and may require additional technologies such as JavaScript for advanced functionality.

Here are the basic steps to create a simplified Fiverr-like landing page:

1. Set Up Your Development Environment:

  • Install a code editor like Visual Studio Code (https://code.visualstudio.com/).
  • Create a project folder and set up the necessary files (index.html and styles.css).

2. Design Your Page Structure (HTML):

  • Create the basic HTML structure for your landing page. Here's a simplified example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Create Responsive Fiverr Landing Page by using HTML and CSS | Assignment Hippo</title>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <header class="header">
      <nav class="navbar max-width">
        <a href="#" class="logo">Fiverr.</a>
        <ul class="links">
          <li><a href="#">Fiverr BusIness</a></li>
          <li><a href="#">Explore</a></li>
          <li class="language">
            <span class="material-symbols-outlined">language</span>
            <a href="#">English</a>
          </li>
          <li><a href="#">Become a seller</a></li>
          <li class="btn signin"><a href="#">Sign In</a></li>
          <li class="btn join"><a href="#">Join</a></li>
        </ul>
      </nav>
    </header>
    
    <section class="hippo">
       <div class="content max-width">
        <h2>Find the right freelance service, right away</h2>
        <div class="search-box">
          <input type="text" placeholder="Search for any service...">
          <span class="material-symbols-outlined search-btn">search</span>
        </div>
        <div class="tags">
          Popular:
          <ul class="link">
            <li><a href="#">Web Design</a></li>
            <li><a href="#">WordPress</a></li>
            <li><a href="#">Logo Design</a></li>
            <li><a href="#">AI Design</a></li>
          </ul>
        </div>
       </div>
    </section>
  </body>
</html>
    

3. Create Styles (CSS):

  • Style your landing page using CSS. Here's a simplified example to get you started:

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Sans', sans-serif;
}

body {
    background: #000;
}

.max-width {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    padding: 20px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.navbar .links li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    transition: 0.2s ease;
}
.logo{
    color:#19a463;
    font-size: 2.5rem;
    font-weight: 600;
    text-decoration: none;
    
}
.navbar .links li:hover :where(a, span) {
    color: #19a463;
}

.navbar .links .language {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.navbar .links span {
    font-size: 1.2rem;
    color: #fff;
}

.navbar .links .join a {
    border: 1px solid #fff;
    padding: 6px 12px;
    border-radius: 4px;
}

.navbar .links .join a:hover {
    color: #fff;
    background: #19a463;
    border-color: transparent;
}

.hippo {
    height: 100vh;
    background-image: url("/fiverr.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
}

.hippo .content {
    position: absolute;
    top: 30%;
}

.content h2 {
    color: #fff;
    font-size: 3rem;
    width: 600px;
    line-height: 65px;
}

.content .search-box {
    display: flex;
    align-items: center;
    height: 48px;
    width: 600px;
    position: relative;
    margin-top: 30px;
}

.search-box input {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 1rem;
    border-radius: 4px;
}

.search-box .search-btn {
    position: absolute;
    right: 0;
    height: 100%;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #1dbf73;
    color: #fff;
    border-radius: 0 4px 4px 0;
    transition: background 0.2s ease;
}

.search-box .search-btn:hover {
    background: #19a463;
}

.content .tags {
    display: flex;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 25px;
}

.content .tags .link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    list-style: none;
}

.tags .link li a {
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 4px 12px;
    border-radius: 50px;
    transition: 0.2s ease;
}

.tags .link li a:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 900px) {
    .hippo {
        background: none;
    }

    .hippo .content {
        max-width: 470px;
        text-align: center;
    }

    .hippo .content h2 {
        font-size: 2.5rem;
        width: 100%;
    }

    .hippo .search-box {
        display: block;
        width: 100%;
    }

    .search-box .search-btn {
        position: relative;
        margin-top: 10px;
        width: 100%;
        border-radius: 4px;

    }

    :is(.hippo .content .tags, .navbar .links li:not(.btn)) {
        display: none;
    }
}
         

4. Add Content:

  • Replace placeholder content in your HTML with real content, such as text, images, and links.

5. Fine-tune and Add Additional Features:

  • Customize the design further to match your vision.
  • Implement any additional features, such as interactive elements or forms.

6. Test Responsiveness:

  • Ensure that your landing page is responsive and works well on various screen sizes (desktop, tablet, mobile).