<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Headlink Capital</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        /* Style for Search Bar Icon */
        .search-icon {
            cursor: pointer;
            font-size: 20px; /* Size of Icon */
            color: #073866; /* Color of Icon */
            border: none;
            background-color: transparent;
            border-radius: 100%; 
            display: inline-block;
            position: absolute; /* Position of Icon */
            top: 50px; /* Set Position of Top for Icon */
            right: 50px; /* Align to the Right Side */
            margin-right: 20px; /* Adjust Space from the Right  */
        }
        /* Hidden Search Bar */
        .search-bar {
            display: none; /* Keeps the search bar hidden until activated */
            position: absolute; /* Positions the search bar absolutely within its relative container */
            top: 100%; /* Positions the search bar just below the navbar */
            left: 50%; /* Starts at half the width of the parent, which is centered horizontally */
            transform: translateX(-50%); /* This offsets the search bar to the left by half its width, effectively centering it */
            width: 45%; /* Adjust the width to your preference */
            background: #fff;
            padding: 10px;
            /* Additional styles for content centering inside the search bar */
            justify-content: center; /* Horizontally centers the flex items */
            align-items: center; /* Vertically centers the flex items */
        }
        /* Input field within the search bar */
        .search-bar input {
            width: 80%; /* Adjust the width as necessary */
            padding: 13px;
            padding-left: 30px; /* Make room for the icon */
            font-size: 16px; /* Adjust as needed */
            font-family: 'Cambria', serif;
            background: #f0f0f0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27a6.51 6.51 0 10-.7.7l.27.28v.79l5 4.99 1.49-1.49-5-4.99zm-6 0A4.5 4.5 0 1114 9.5 4.5 4.5 0 019.5 14z" fill="%23073866"/></svg>') no-repeat 10px center;
            border: 2px solid #fff; /* Border color */
            border-bottom: 2px solid #073866;
            margin-right: 10px; /* Spacing between input and button */
        }
        /* Button within the search bar */
        .search-bar button {
            padding: 13px;
            background-color: #073866; /* Adjust to match your brand color */
            color: white;
            border: none;
            width: 25%;
            font-size: 16px; /* Adjust as needed */
            font-family: 'Aptos ExtraBold', sans-serif;
            font-weight: bold;
            cursor: pointer;
            margin-left: 12px;
            transition: color 0.3s, text-decoration 0.3s; /* Smooth transition for color and text decoration */
        }
        /* Change color and underline on hover */
        .search-bar button:hover {
            color: #fff; /* Change text color on hover */
            text-decoration: underline; /* Underline text on hover */
            background-color: #132638; /* Change background color of the search box */
        }
        /* Active Search Bar */
        .search-bar.active {
            display: flex; /* Align input and button in a row */
        }
        .navbar {
            display: flex;
            justify-content: start;
            align-items: center;
            padding: 20px;
            background-color: white;
            color: #073866;
            position: relative; /* For absolute positioning of the search bar */
        }
        /* Style for 'Headlink Capital' Title */
        .navbar h1 {
            font-family: 'Cambria', sans-serif;
            margin-right: 100px;
            font-size: 30px;
            color: #073866;
            margin-left: 180px;
            margin-top: 10px; /* Set Position of Top for Header */
        }
        /* Add Bar Above 'Headlink Capital' Title */
        .navbar h1::before {
            content: '';
            display: block;
            position: absolute;
            left: 30;
            top: 0;
            width: 12%; /* Length of Bar */
            height: 8px; /* Thickness of Bar */
            background-color: #073866; 
        }
        /* Style for Navigation Links */
        .navbar a {
            font-family: 'Roboto', sans-serif;
            color: #073866;
            text-decoration: none;
            margin-right: 60px;
            font-size: 14px;
            margin-top: -10px !important; /* Adjust the value as needed */
            position: relative; /* Ensure the ::after pseudo-element is positioned relative to the anchor */
        }
        /* Hover Effect for Links */
        .navbar a:hover {
            color: #2c7fce; /* Change text color on hover */
        }
        /* Line Under the Link */
        .navbar a::after {
            content: '';
            display: block;
            position: absolute;
            bottom: -2px; /* Position the line below the text */
            left: 0;
            width: 0; /* Initially, the line has no width */
            height: 2px; /* Thickness of the line */
            background-color: #073866; /* Color of the line */
        }
        /* Expand the line to full width on hover */
        .navbar a:hover::after {
            width: calc(100%); /* Expand the line to full width on hover, considering the arrow width */
        }
    </style>
</head>
<body>
    <div class="navbar">
        <h1>Headlink Capital</h1>
        <a href="#">Insights <i class='fas fa-angle-down' style='font-size:12px'></i></a>
        <a href="#">Academy <i class='fas fa-angle-down' style='font-size:12px'></i></a>
        <a href="#">Performance <i class='fas fa-angle-down' style='font-size:12px'></i></a>
        <a href="#">About Us <i class='fas fa-angle-down' style='font-size:12px'></i></a>
        <i class="fa-solid fa-magnifying-glass search-icon" onclick="toggleSearch()"></i>
        <div class="search-bar" id="searchBar">
            <input type="text" placeholder="Search Headlink Capital" id="searchInput">
            <button type="submit" id="searchButton">SEARCH</button>
        </div>
    </div>
    <script>
        document.addEventListener("DOMContentLoaded", function() {
            // Select all links in the navbar
            var links = document.querySelectorAll('.navbar a');
        
            links.forEach(function(link) {
                // Add mouseover event listener to each link
                link.addEventListener('mouseover', function() {
                    // Change the icon to 'fa-angle-up' when hovered
                    this.querySelector('i').classList.remove('fa-angle-down');
                    this.querySelector('i').classList.add('fa-angle-up');
                });
        
                // Add mouseout event listener to revert back to 'fa-angle-down' when not hovered
                link.addEventListener('mouseout', function() {
                    this.querySelector('i').classList.add('fa-angle-down');
                    this.querySelector('i').classList.remove('fa-angle-up');
                });
            });
        });
        </script>
        
</body>
</html>

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!


Comments

One response to “Hello world!”

  1. Hi, this is a comment.
    To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
    Commenter avatars come from Gravatar.

Leave a Reply

Your email address will not be published. Required fields are marked *