diff --git a/app.py b/app.py new file mode 100644 index 0000000..a93264f --- /dev/null +++ b/app.py @@ -0,0 +1,92 @@ +from flask import Flask +from markupsafe import escape +from flask import url_for +from flask import render_template +from flask_navigation import Navigation +#from flask import request +#from flask import redirect +#from flask import abort +#from flask import make_response +#import sqlite3 + +app = Flask(__name__) + +#Databse Implementation +#@app.route("/create") +#def create(): + #con = sqlite3.connect('mydatabase.db') + #con.execute('CREATE TABLE IF NOT EXISTS Students (name TEXT, id INT PRIMARY KEY)') + #con.execute ('CREATE TABLE IF NOT EXISTS COURSES(Coursename TEXT, COURSEID VARCHAR)') + #con.execute ('CREATE TABLE IF NOT EXISTS TEACHERCOURSE(TeacherID INT PRIMARY KEY, COURSEID INT FORIEGN KEY)') + #con.execute ('CREATE TABLE IF NOT EXIST TEACHER(First name CHAR, Surname CHAR, Contact INT)') + #con.execute ('CREATE TABLE IF NOT EXIST LOGIN'(id INT FORIEGN KEY, Password VARCHAR )') + #con.execute ('CREATE TABLE IF NOT EXIST EXAMS(Exams code INT, Exam name CHAR') + #con.execute ('CREATE TABLE IF NOT EXIST ADMINISTRATION( Administration Contact INT, Administration location VARCHAR') + #con.execute ('CREATE TABLE IF NOT EXIST CLASS SESSION( Class code INT') + #con.close() + #return "

Table created successfully

" + +#@app.route("/add") +#def add_strudent(): + #con = sqlite3.connect('mydatabase.db') + #cur = con.cursor() + #cname='Faye' + #cid=10000 + #cur.execute("INSERT INTO students (name,id) VALUES (?,?)",(cname,cid) ) + #con.commit() + #con.close() + #return "

added students

" + +#@app.route("/") +#def top(): + #con = sqlite3.connect("mydatabase.db") + #con.row_factory = sqlite3.Row + #cur = con.cursor() + #cur.execute("SELECT * from students") + #rows = cur.fetchall(); + #return render_template("students.html",rows = rows) + + +@app.route('/home', methods=['GET']) +def dropdown(): + subjects = ['Home', 'Chemistry', 'ICT', 'Maths'] + return render_template('home.html', subjects=subjects) + + + +@app.route('/billing') +def creditFunc(): + return render_template('billing.html') + +@app.route('/verify') +def verifyFunc(): + return render_template('verify.html') + +@app.route('/newbilling') +def successfulBillingFunc(): + return render_template('newbilling.html') + +@app.route('/login') +def loginFunc(): + return render_template('login.html') + + +@app.route('/chemistry') +def chemistryFunc(): + return render_template('chemistry.html') + +@app.route('/ict') +def ictFunc(): + return render_template('ict.html') + +@app.route('/maths') +def mathsFunc(): + return render_template('maths.html') + +@app.route('/form') +def formFunc(): + return render_template('form.html') + +@app.route('/teacher') +def homeFunc(): + return render_template('teacher.html') diff --git a/billing.html b/billing.html new file mode 100644 index 0000000..8029075 --- /dev/null +++ b/billing.html @@ -0,0 +1,23 @@ + + + + Billing Details + + +

+ +

Billing

+ +

Click here to save changes

+ +

Edit Credit Card Details:

+
+
+
+
+ +

+ To change your payment details, Enter the appropriate number in the text box.

+ {# a comment #} + + + + + + +

Chemistry

+

Go back to Home Page

+

Why is chemistry important?

+

+ Chemistry is the scientific study of the properties and behavior of matter. It is a natural science that covers the elements that make up matter to the compounds composed of atoms, molecules and ions: their composition, structure, properties, behavior and the changes they undergo during a reaction with other substances. + The periodic table is organized like a big grid. Each element is placed in a specific location because of its atomic structure. As with any grid, the periodic table has rows (left to right) and columns (up and down). Each row and column has specific characteristics. For example, magnesium (Mg) and calcium (Mg) are found in column two and share certain similarities while potassium (K) and calcium (Ca) from row four share different characteristics. Magnesium and sodium (Na) also share qualities because the are in the same period (similar electron configurations). + {# a comment #} +

+ +
+ + + + + + + +

Home

+

Navigation

+ +

Chemistry Page

+

ICT Page

+

Maths Page

+

Change Billing Details

+ + + + +

+ BlobMaths is a digital learning platform for early learners. It allows students to study a wide range of STEM subjects such as: Maths, Chemistry and IT and more. BlobMaths provide full support to both learners and educators, which mainly involves providing adequate infrastructure that enables e-learning to be methodically implemented using dedicated digital systems specifically designed to satisfy student and teacher needs. + + {# a comment #} +

+ + + + + + + +

ICT

+

Go back to Home Page

+

Using a Computer?

+

+ Using computers and the internet to store, access and organise information carries some risk. You need to take responsibility to make sure files are not lost, corrupted or viewed by the wrong person. + To ensure your work is easy to find, use relevant file and folder names and a sensible folder structure. It’s important to use an approach that will be understood by everyone, especially if you’re working on a group project, so other members of the group will be able to find what they’re looking for.Files have two parts to their names – a name and an extension. The purpose of a file extension is to tell the computer what type of file it is. The file extension is typically three or four letters long and is always at the end of a file name. There are hundreds of different file extensions. Passwords can be set to expire, at which point you will be forced to choose a new one. This is a security feature. Always choose a password that’s difficult for someone else to guess. + {# a comment #} +

+ +
+ + + + + Login + + +

BLOBMATHS LOGIN PAGE

+

After entering your details, click here to log in

+ +

Please enter your Student ID and Password:

+
+
+
+
+

+ +
+ + \ No newline at end of file diff --git a/maths.css b/maths.css new file mode 100644 index 0000000..5b3d9f0 --- /dev/null +++ b/maths.css @@ -0,0 +1,15 @@ +body { + background-color:rgb(127, 229, 255); + text-align: center; +} +H2 { + text-decoration-line: underline; +} +P1 { + font-size: large; + font-family: cursive; +} +P2 { + font-size: large; + font-family: cursive; +} \ No newline at end of file diff --git a/maths.html b/maths.html new file mode 100644 index 0000000..93f196f --- /dev/null +++ b/maths.html @@ -0,0 +1,18 @@ + + + + + +

Maths

+

Go back to Home Page

+

Multiplying two digit numbers

+

+ Can you multiply by two-digit numbers like 14 or 37?. It looks a bit difficult, doesn't it? It can be easier if you partition the number into two parts. Instead of multiplying by 29 you can multiply by 20 and then multiply by 9 separately and then add the answers together. Instead of multiplying by 34 you can multiply by 30 and then multiply by 4 separately and then add the answers together. + Another strategy is to multiply by a near number that is easier to work with and then add or take away the difference. Was that easier? Why not try these strategies again next time you have to multiply by two-digit numbers. + {# a comment #} +

+ +
+ + + + + + +

Thank You

+

Home Page

+ +
+

+

+ + + + + + +

Verify that you are human

+ +
+

Verification

+ +

Please enter the text shown above:

+
+
+
+
+ +

Click here to submit

+ +

+

+ +