Menu.svelte 1.14 KB
<script>
	import Menuitems from './Menuitems.svelte'

    // 메뉴 바 항목들
    const navItems = [
        { label: "TFT 소개", href: "#article1" },
        { label: "행사 탐색", href: "#article2" },
        { label: "행사 정보", href: "#article3" },
        { label: "기술 스택", href: "#article4" }
    ];
</script>

<style>
	nav {
		background-color: #edeff2;
		font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
		height: 70px;
		/* width: 50vw; */
		top: 0;
	}

	.inner {
		max-width: 700px;
		padding-left: 10px;
		padding-right: 10px;
		margin: auto;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}

	.logo img{
		display: flex;
		width: 120px;
		left: 20px;
		top: 15px;
		margin-right: 400px;
	}

	.navbar-list {
		display: flex;
		padding: 0;	
		width: 100%;
		justify-content: space-between;
		margin: 0;
	}
</style>

<nav id="nav">
	<div class="inner">
		<div class="logo"><img alt="Logo" src="./public/TFTlogo.png"></div>
		<ul class='navbar-list'>
        {#each navItems as item}
            <Menuitems {item}/>
        {/each}
        </ul>
    </div>
</nav>