Skip to content

webserver of category and maths #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
![StackUp Banner]([https://tinkerhub.frappe.cloud/files/stackup%20banner.jpeg])
# Project Name
Online Quiz platform
Long Description about project. This project do that. This project is awesome...
## Team members
1. Name [Embed personal github URL]
2. Name [Embed perosnal github URL]
1. C B Nandhana https://github.com/nandhana04cb
2. Rameesa K T https://github.com/Rameesa-kt
3. Keerthana S https://github.com/Keerthana20-04
4. Diya K Sajith https://github.com/Diyaksajith
## Team Id
Team id here
zephyr
## Link to product walkthrough
[link to video]
## How it Works ?
Expand Down
11 changes: 11 additions & 0 deletions ap1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def index():
return render_template('maths.html')


if __name__ == '__main__':
app.run(debug=True)
11 changes: 11 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def index():
return render_template('category.html')


if __name__ == '__main__':
app.run(debug=True)
67 changes: 67 additions & 0 deletions category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html>
<head>
<title>Category</title>
<style>
body {
background-image: url("https://thumbs.dreamstime.com/z/quiz-seamless-pattern-question-marks-doubt-faq-background-simple-endless-repeating-motif-poll-survey-interrogation-query-template-268165362.jpg");
background-size: cover;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}

h1 {
text-align: center;
text-transform: uppercase;
letter-spacing: 1px;
color: black;
font-weight: bold; /* Set the font to bold */
font-family: 'Courier New', monospace; /* Use a font style that appears "barredly" */
font-size: 70px;
margin-bottom: 10px; /
}

p {
text-align: center;
font-weight: bold;
color: black;
font-size: 35px;
font-family: 'Arial', sans-serif;
margin-top: 0;
}

ul {
list-style: none;
padding: 0;
}

li {
text-align: center;
margin-bottom: 40px;
background-color:lightgreen;
padding: 20px;
border-radius: 40px;
}

a {
text-decoration: none;
}
</style>
</head>
<body>
<h1>Category</h1>
<p>Select Any One Of These</p>
<ul>
<li><a href="sports.html">Sports</a></li>
<li><a href="science.html">Science</a></li>
<li><a href="history.html">History</a></li>
<li><a href="http://127.0.0.1:5000/">Maths</a></li>
</ul>
</body>
</html>

63 changes: 63 additions & 0 deletions docs/login.html.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html>
<head>
<title>User Authentication</title>
<style>
body {
font-family: Arial, sans-serif;
}
.login-container {
width: 300px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
background-color: #f4f4f4;
text-align: center;
margin-bottom: 20px;
}
.login-container h2 {
margin-top: 0;
}
.login-container input {
width: 100%;
padding: 10px;
margin: 10px 0;
}
.login-container button {
width: 100%;
padding: 10px;
background-color: #007BFF;
color: #fff;
border: none;
cursor: pointer;
}
.register-container {
width: 300px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
background-color: #f4f4f4;
text-align: center;
}
</style>
</head>
<body>
<div class="login-container">
<h2>Login</h2>
<form action="login.php" method="post">
<input type="text" name="username" placeholder="Username" required><br>
<input type="password" name="password" placeholder="Password" required><br>
<button type="submit">Login</button>
</form>
</div>

<div class="register-container">
<h2>Register</h2>
<form action="register.php" method="post">
<input type="text" name="newUsername" placeholder="New Username" required><br>
<input type="password" name="newPassword" placeholder="New Password" required><br>
<button type="submit">Register</button>
</form>
</div>
</body>
</html>
45 changes: 45 additions & 0 deletions docs/model.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<title>Sign Up</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="container">
<h1>Sign Up</h1>
<form action="signup_process.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>

<label for="email">Email:</label>
<input type="email" id="email" name="email" required>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required>

<label for="confirm_password">Confirm Password:</label>
<input type="password" id="confirm_password" name="confirm_password" required>

<button type="submit">Sign Up</button>
</form>
</div>
</body>
</html>



<?php
// Retrieve user data from the $users array (or from a database/file).
$users = [];

$username = $_POST["username"];
$password = $_POST["password"];

if (isset($users[$username]) && password_verify($password, $users[$username]["password"])) {
// Login successful
echo "Login successful! Welcome, $username.";
} else {
// Login failed
echo "Invalid credentials. Please try again.";
}
?>
55 changes: 55 additions & 0 deletions docs/reg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up</title>
<style>
body {
font-family: Arial, sans-serif;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
}
form {
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 3px;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<form action="signup.php" method="post">
<h2>Sign Up</h2>
<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">Sign Up</button>
</form>
</div>
</body>
</html>
106 changes: 106 additions & 0 deletions historyque.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>History Quiz</title>
</head>
<body background="C:\Users\ramee\OneDrive\New folder\map3.jpg">

<h2>History Quiz</h2>

<form action="submit_quiz.php" method="post">
<p>1. Who was the first President of the United States?</p>

<label>
<input type="radio" name="question1" value="a">a) George Washington
</label><br>

<label>
<input type="radio" name="question1" value="b">b) Thomas Jefferson
</label><br>

<label>
<input type="radio" name="question1" value="c">c) John Adams
</label><br>

<label>
<input type="radio" name="question1" value="d">d) Benjamin Franklin
</label><br>

<p>2. In which year did Christopher Columbus reach the Americas?</p>

<label>
<input type="radio" name="question2" value="a">a) 1492
</label><br>

<label>
<input type="radio" name="question2" value="b">b) 1500
</label><br>

<label>
<input type="radio" name="question2" value="c">c) 1607
</label><br>

<label>
<input type="radio" name="question2" value="d">d) 1776
</label><br>
<p>3. who is considered as the author of ancient indian epic,the Ramayana?</p>

<label>
<input type="radio" name="question3" value="a">a) Vyasa
</label><br>

<label>
<input type="radio" name="question3" value="b">b) Valmiki
</label><br>

<label>
<input type="radio" name="question3" value="c">c) Kavitrayam
</label><br>

<label>
<input type="radio" name="question3" value="d">d) Chithalai Chathanar
</label><br>
<p>4. In which year America joined second world war?</p>

<label>
<input type="radio" name="question3" value="a">a) 1939
</label><br>

<label>
<input type="radio" name="question3" value="b">b) 1940
</label><br>

<label>
<input type="radio" name="question3" value="c">c) 1941
</label><br>

<label>
<input type="radio" name="question3" value="d">d) 1942
</label><br>
<p>5. Which civilisation is oldest in the world?</p>

<label>
<input type="radio" name="question3" value="a">a) Egyptian civilisation
</label><br>

<label>
<input type="radio" name="question3" value="b">b) Mesopotomian civilisation
</label><br>

<label>
<input type="radio" name="question3" value="c">c) Chinese civilisation
</label><br>

<label>
<input type="radio" name="question3" value="d">d) Indus valley civilisation
</label><br>
<!-- Add more questions as needed -->

<br>
<input type="submit" value="Submit">
</form>

</body>
</html>
Loading