Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
3.9 kB
2
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Multi-Page Web App</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f0f0f0;
            color: #333;
        }

        #container {
            max-width: 800px;
            margin: 50px auto;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }

        #login-form, #options-form, #navbar {
            padding: 20px;
            border-bottom: 1px solid #ccc;
        }

        form {
            display: flex;
            flex-direction: column;
        }

        label {
            margin-bottom: 10px;
        }

        input, button {
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            background-color: #4caf50;
            color: white;
            cursor: pointer;
        }

        button:hover {
            background-color: #45a049;
        }

        #options-form, #navbar {
            display: none;
        }

        #navbar ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: space-around;
            background-color: #333;
        }

        #navbar a {
            text-decoration: none;
            color: white;
            padding: 10px;
        }

        #navbar a:hover {
            background-color: #555;
        }

        @media screen and (max-width: 600px) {
            #container {
                max-width: 100%;
                border-radius: 0;
                box-shadow: none;
            }
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="login-form">
            <form onsubmit="redirectToPage2(event)">
                <label for="username">Username:</label>
                <input type="text" id="username" name="username" required>
                <label for="password">Password:</label>
                <input type="password" id="password" name="password" required>
                <button type="submit">Login</button>
            </form>
        </div>

        <div id="options-form">
            <form onsubmit="connectToPage3(event)">
                <label for="schema">Enter your schema name:</label>
                <input type="text" id="schema" name="schema" required>
                <label for="tns">Enter TNS of the PC:</label>
                <input type="text" id="tns" name="tns" required>
                <button type="submit">Connect</button>
            </form>
        </div>

        <div id="navbar">
            <nav>
                <ul>
                    <li><a href="#">Start Online Handler</a></li>
                    <li><a href="#">View Stats</a></li>
                    <li><a href="#">ReSat Process</a></li>
                    <li><a href="#">Sup Process</a></li>
                    <li><a href="#">Sutsingis Process</a></li>
                    <li><a href="#">Saut Engines</a></li>
                    <li><a href="#">Sup Engines</a></li>
                </ul>
            </nav>
        </div>
    </div>

    <script>
        function redirectToPage2(event) {
            event.preventDefault();
            document.getElementById('login-form').style.display = 'none';
            document.getElementById('options-form').style.display = 'block';
        }

        function connectToPage3(event) {
            event.preventDefault();
            document.getElementById('options-form').style.display = 'none';
            document.getElementById('navbar').style.display = 'block';
        }
    </script>
</body>
</html>
Leave a Comment