<template>
    <section id="Footer">
        <div class="Contact">
            <div class="TextContainer">
                <h2 id="h2">Questions or remarks? Or do you want to work together? Let us know! </h2>
                <p id="p">Lorem ipsum dolor sit amet. Cum dolorem blanditiis sit enim officia et voluptates aliquam. Eum maxime eligendi et perferendis vitae non vitae consequatur.</p>
                
                <form action="" class="Form">
                    <input type="email" name="email" id="Email" placeholder="Email address" required>
                    <button type="submit" class="submit">Send</button>
                </form>
        </div>
        </div>
        <div class="Info">
            <div class="ImgContainer">
                <a href="/">
                    <img src="/icon/logo.svg" alt="Logo">
                </a>
            </div>
            <div class="PracticalInformation">
                <h3>Practical information</h3>
                <ul>
                    <li><img src="/img/Home-Adress - Wit.svg">
                        <a href="https://maps.app.goo.gl/fVGWXgu6jy2Mra3R7">Pakhuisstraat 3A, 1621GL Hoorn</a>
                    </li>
                    <li><img src="/img/Phone - Wit.svg">
                        <a href="tel:+31229729024">+31 (0) 229 729 024</a>
                    </li>
                    <li><img src="/img/Mail - wit.svg">
                        <a href="mailto:info@pack.house">info@pack.house</a>
                    </li>
                </ul>
            </div>
       
            <div class="links">
                <h3>Follow our Socials!</h3>
                <div class="ImgContainer">
                    <a href="https://www.example.com"><img src="/img/1161953_instagram_icon.svg" alt="insta"></a>
                    <a href="https://www.example.com"><img src="/img/211904_social_github_icon (1).svg" alt="insta"></a>
                    <a href="https://www.example.com"><img src="/img/circle_user_icon.svg" alt="insta"></a>
                    <a href="https://www.example.com"><img src="/img/Home-Adress - Wit.svg" alt="insta"></a>
                    <a href="https://www.example.com"><img src="/img/Mail - wit.svg" alt="insta"></a>
                </div>
            </div>
        </div>
    </section>
</template>

<script>
export default {
    name: "Footer",
    mounted() {
        const form = document.querySelector('.Form');
        const emailInput = document.getElementById('Email');

        form.addEventListener('submit', (event) => {
            event.preventDefault(); 

            const email = emailInput.value;
            console.log("Email submitted:", email);

           
        });
    }
};
</script>


<style scoped>
#Footer {
    height: 60vw;
    margin-bottom: 0;
    margin-top: 50px

}

.Contact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding-left: 10%; */
    width: 100%;
    height: 60%;
    background-color: #bdb0bc;
}

.Contact .TextContainer {
   padding-left: 50px;
    width: 30%;
}

.Contact .TextContainer h2 {
    letter-spacing: 5px;
    line-height: 3vw;
    font-size: 2vw;
}

#p {
    font-size: 1vw;
    line-height: 1.5vw;
}

.Form {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    gap: 20px;
    /* position: absolute; */
    left: 10%;
    bottom: 20%;
    width: 40%;
    height: 50px;
}

#Email {
    background-color: transparent;
    border-color: #171924;
    border-radius: 5px;
    color: var(--vp-c-text);
    height: 3vw;
    width: 20vw;
    font-size: 1.5vw;
}




#Email::placeholder {
    color: var(--vp-c-text);
    padding-left: 10%;
}

.submit {
    font-weight: 400;
    font-size: 1.5vw;
    height: 3.5vw;
    width: 6vw;
    background-color: transparent;
}

.Info {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding:5% 5% 0% 5%;

    /* width: 100%; */
    height: 35%;
    background-color: #171924;
    color: white;
}

.Info h3 {
    color: white;
    font-weight: 400
}

.Info ul {
    padding: 0 !important;
    width: 15vw;
}


.Info li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}


.Info li img {
    max-width: 20%;
}


.Info li a {
    color: azure;
}

.Info .ImgContainer {
width: 10vw;
}
.Info .ImgContainer img {
    width: 100%;
}

.links {
    width: 25%;
}

.links .ImgContainer {
    display: flex;
    flex-direction: row;
    
    width: 100%;
}

.links .ImgContainer img {
    height: 50%;
    width: 50%;
}

.links .ImgContainer a {
    height: 50%;
    width: 50%;
}

.PracticalInformation a {
    font-size: 1vw;
}
</style>