File size: 4,862 Bytes
b275c14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FDCT Registration</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
    <style>
        .role-card {
            transition: all 0.3s;
            cursor: pointer;
        }
        .role-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .selected {
            border: 3px solid #0d6efd;
        }
    </style>
</head>
<body class="bg-light">
    <div class="container py-5">
        <div class="text-center mb-5">
            <img src="http://static.photos/sport/320x240/42" alt="Cricket Logo" class="rounded-circle mb-3" width="120">
            <h1>FDCT XX Registration</h1>
            <p class="lead">Choose your role for the tournament</p>
        </div>

        <form id="registrationForm">
            <div class="mb-4">
                <label for="username" class="form-label">Username</label>
                <input type="text" class="form-control" id="username" required>
            </div>

            <div class="mb-4">
                <label for="email" class="form-label">Email</label>
                <input type="email" class="form-control" id="email" required>
            </div>

            <div class="row g-4 mb-4">
                <div class="col-md-4" onclick="selectRole('super-owner')">
                    <div class="card role-card h-100" id="super-owner-card">
                        <div class="card-body text-center">
                            <div class="mb-3">
                                <img src="http://static.photos/finance/200x200/1" alt="Super Owner" class="rounded-circle" width="80">
                            </div>
                            <h5>Super Owner</h5>
                            <p class="text-muted">Own and manage one or more teams</p>
                            <input type="radio" name="role" value="super-owner" hidden>
                        </div>
                    </div>
                </div>

                <div class="col-md-4" onclick="selectRole('captain')">
                    <div class="card role-card h-100" id="captain-card">
                        <div class="card-body text-center">
                            <div class="mb-3">
                                <img src="http://static.photos/people/200x200/2" alt="Captain" class="rounded-circle" width="80">
                            </div>
                            <h5>Captain</h5>
                            <p class="text-muted">Lead your team to victory</p>
                            <input type="radio" name="role" value="captain" hidden>
                        </div>
                    </div>
                </div>

                <div class="col-md-4" onclick="selectRole('player')">
                    <div class="card role-card h-100" id="player-card">
                        <div class="card-body text-center">
                            <div class="mb-3">
                                <img src="http://static.photos/sport/200x200/3" alt="Player" class="rounded-circle" width="80">
                            </div>
                            <h5>Player</h5>
                            <p class="text-muted">Play matches as team member</p>
                            <input type="radio" name="role" value="player" hidden>
                        </div>
                    </div>
                </div>
            </div>

            <div class="mb-4">
                <label for="password" class="form-label">Password</label>
                <input type="password" class="form-control" id="password" required>
            </div>

            <div class="mb-4">
                <label for="confirmPassword" class="form-label">Confirm Password</label>
                <input type="password" class="form-control" id="confirmPassword" required>
            </div>

            <div class="d-grid">
                <button type="submit" class="btn btn-primary btn-lg">Register</button>
            </div>
        </form>
    </div>

    <script>
        function selectRole(role) {
            document.querySelectorAll('.role-card').forEach(card => {
                card.classList.remove('selected');
            });
            document.getElementById(`${role}-card`).classList.add('selected');
            document.querySelector(`input[value="${role}"]`).checked = true;
        }

        document.getElementById('registrationForm').addEventListener('submit', function(e) {
            e.preventDefault();
            alert('Registration successful! Welcome to FDCT XX');
            // In a real app, you would handle the form submission here
        });
    </script>
</body>
</html>