File size: 1,891 Bytes
97e3689
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<script setup></script>

<template>
    <div class="site-container">
        <!-- Navbar -->
        <nav>
            <RouterLink :to="{ name: 'Home' }" class="nav__header">
                Exercise Correction
            </RouterLink>
        </nav>

        <!-- Main Content -->
        <main>
            <!-- Page View -->
            <RouterView />
        </main>

        <!-- Footer -->
        <footer>
            <a
                href="https://twitter.com/ngohquocbao1010"
                target="_blank"
                class="twitter"
            >
                @NgoQuocBao
            </a>

            <a
                href="https://github.com/NgoQuocBao1010/Exercise-Correction"
                target="_blank"
                class="github"
            >
                <i class="fa-brands fa-github"></i>
            </a>
        </footer>
    </div>
</template>

<style lang="scss">
body {
    .site-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    nav {
        margin: 3rem 0;
        text-align: center;

        .nav__header {
            font-size: 2rem;
            font-family: var(--font-family);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--primary-color);
        }
    }

    main {
        margin-inline: auto;
        width: 90vw;
    }

    footer {
        margin-top: auto;
        margin-inline: auto;
        width: 90vw;
        border-top: 1px solid var(--primary-color);
        padding: 0.3rem 0;
        text-align: center;

        a {
            font-family: var(--font-family);
            color: var(--primary-color);
        }

        .twitter {
            font-weight: 700;
        }

        .github {
            font-size: 1.2rem;
            margin-left: 1rem;
        }
    }
}
</style>