Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logo in html #265

Closed
Jimmy-glitch-10 opened this issue Aug 25, 2024 · 3 comments
Closed

Add logo in html #265

Jimmy-glitch-10 opened this issue Aug 25, 2024 · 3 comments
Assignees
Labels
component:other Issues unrelated to examples/quickstarts status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity type:help Support-related issues

Comments

@Jimmy-glitch-10
Copy link

Description of the bug:

i want add logo to code HTML

<title>Custom Pre-loader</title> <style> /* Pre-loader styles */ #preloader { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: #fff; /* Background color of the pre-loader */ display: flex; justify-content: center; align-items: center; z-index: 9999; /* Make sure it covers the content */ }
    #preloader img {
        width: 100px; /* Adjust the size of the logo */
        height: auto;
    }

    /* Main content styles */
    #main-content {
        display: none; /* Hide main content initially */
    }
</style>
Loading...
<!-- Main Content -->
<div id="main-content">
    <h1>Welcome to My Website</h1>
    <p>This is the main content of the page.</p>
</div>

<script>
    // JavaScript to hide pre-loader and show main content
    window.addEventListener('load', function() {
        const preloader = document.getElementById('preloader');
        const mainContent = document.getElementById('main-content');

        // Hide preloader and show main content
        preloader.style.display = 'none';
        mainContent.style.display = 'block';
    });
</script>

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

@gmKeshari gmKeshari self-assigned this Aug 26, 2024
@gmKeshari
Copy link

Hi @Jimmy-glitch-10,

The CSS for #preloader img is already in place. To add a logo to your HTML code for the pre-loader, you need to insert an img element inside the "div id="preloader" section.

Include the below section to your code :

image

=> Make sure to replace "path/to/your/logo.png" with the actual path to your logo image file.

Copy link

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

@github-actions github-actions bot added the status:stale Issue/PR is marked for closure due to inactivity label Sep 10, 2024
Copy link

This issue was closed because it has been inactive for 27 days. Please post a new issue if you need further assistance. Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:other Issues unrelated to examples/quickstarts status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity type:help Support-related issues
Projects
None yet
Development

No branches or pull requests

2 participants