Skip to content

Instantly share code, notes, and snippets.

@wey-gu
Created November 5, 2024 11:07
Show Gist options
  • Save wey-gu/26b117b957e49034764829aff4bfab34 to your computer and use it in GitHub Desktop.
Save wey-gu/26b117b957e49034764829aff4bfab34 to your computer and use it in GitHub Desktop.
Slidev Tips

Global Background Image

Just tweak with your global-bottom.vue:

<template>
    <footer class="absolute bottom-2 left-6 right-6 p-2 flex items-center justify-between">
        <!-- The background -->
        <img src="/images/my_background.png" alt="My Background" class="w-full h-full fixed top-0 left-0 object-contain">
        
        <!-- Some Textual Marks? see below -->
        <!-- <span class="text-sm text-gray-500 dark:text-white">KG-LLM Workshop</span> -->
        <!-- <span class="text-sm text-gray-500 dark:text-white">2024 Aug.</span> -->

        <div class="flex items-center">
        
        <!-- Add logo? see below -->
        <!-- <img
            src="/images/ng-logo-white.png"
            alt="NebulaGraph Logo"
            class="h-10 w-auto dark:block hidden"
        />
        <img
            src="/images/ng-logo.png"
            alt="NebulaGraph Logo"
            class="h-10 w-auto dark:hidden"
        />
        -->

        </div>
    </footer>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment