---
import Nav from '../components/Nav.astro';
import Particle from '../components/Particle.astro';
import Footer from '../components/Footer.astro';

const {title} = Astro.props;
---

<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>{title}</title>
        <!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg"> -->
        <link rel="stylesheet" href="/style/global.css"> 

        <style lang="scss">
            @import 'bulmaswatch/darkly/_variables.scss';
            @import 'bulma/bulma.sass';
            @import 'bulmaswatch/darkly/_overrides.scss';

            html{
                overflow: auto;
            }

            body{
                display: flex;
                flex-direction: column;
                height: 100vh;
                width: 100%;
            }

            .main{
                flex: 1 1 auto; 
            }
        </style>

        <!-- Sometimes some js is needed. Load font awesome -->
        <script src="/js/fa-all.min.js"/>
        
    </head>
    <body>
        <Particle/>
        <Nav/>
        <main class="main">
            <slot/>
        </main>
        <Footer/>
    </body>
</html>