File size: 2,064 Bytes
f71a293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to Abdan Hafidz Portal</title>
    <link rel="stylesheet" href="style/styles.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script src="scripts/scripts.js"></script>
</head>
<body>
    <!-- Loading Indicator -->
    <div class="loading" id="loadingIndicator" style="display: none;">
        <div class="loading-spinner"></div>
    </div>

    <!-- Header -->
    <header>
        <div class="container">
            <nav>
                <div class="logo">Abdan Hafidz Portal</div>
                <div class="nav-links" id="navLinks">
                    <!-- Links will be dynamically added based on auth state -->
                </div>
            </nav>
        </div>
    </header>

    <!-- Welcome Section -->
    <section class="auth-section">
        <div class="container">
            <div class="auth-container">
                <h2 class="auth-title">Welcome to Abdan Hafidz Portal</h2>
                <p style="text-align: center; margin-bottom: 2rem;">
                    Your personal dashboard for managing your profile and settings.
                </p>
                <div style="display: flex; justify-content: center; gap: 1rem;">
                    <a href="login.html" class="btn">Login</a>
                    <a href="register.html" class="btn btn-outline">Register</a>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer>
        <div class="container">
            <p>&copy; 2025 Abdan Hafidz Portal. All rights reserved.</p>
        </div>
    </footer>

    <script>

        $(document).ready(function() {

            // Check if user is already logged in

            if (isLoggedIn()) {

                window.location.href = 'profile.html';

            }

        });

    </script>
</body>
</html>