diff --git a/login_page.py b/login_page.py new file mode 100644 index 0000000..667eeec --- /dev/null +++ b/login_page.py @@ -0,0 +1,32 @@ +"""Login page""" +"""Importing modules""" +from tkinter import * +import tkinter.font as font +from PIL import ImageTk, Image + +root=Tk() +root.geometry("200x200+600+200") +root.title("Walk2Zero") +"""Bckground image""" +img = ImageTk.PhotoImage(Image.open("walk2zeo2.jpg")) +label_image=Label(root, image=img) +label_image.place(x=0,y=0,relwidth=1,relheight=1) + +"""Top Heading""" + +label1= Label(root, text="Hi! I'm E@rth, Happy Walking ", fg='black', font="Head_font",bg="#fcf5cc").place(x=600, y=20) +Head_font=font.Font(family="Helvetica", weight="bold", size="500") +""" Second heading-login""" +label11= Label(root, text="Already registered!!! Please login ", fg='#069000', bg="#fcf5cc",font="label11_font").place(x=620,y=200) +label11_font=font.Font(weight="bold", size="100") +""" Text entry boxes""" +label2= Entry(root,justify="center",bd='4px', font = ('Helvetica',10,'bold')).place(x=750, y=260) +label3= Entry(root, justify="center",show='*',bd='4px', font = ('Helvetica',10,'bold')).place(x=750, y=300) +"""Labels for entry boxes""" +label_1=Label(root,text="Enter Username",fg='#069000', bg="#fcf5cc").place(x=620, y=260) +label_2=Label(root,text="Enter Password",fg='#069000', bg="#fcf5cc").place(x=620, y=300) + +"""Submit button""" +label6=Button(root, text="Submit").place(x=730, y=350) + +root.mainloop() \ No newline at end of file diff --git a/login_page_transport.py b/login_page_transport.py new file mode 100644 index 0000000..6334edc --- /dev/null +++ b/login_page_transport.py @@ -0,0 +1,33 @@ +"""Transport page""" + +from tkinter import * +import tkinter.font as font +from PIL import ImageTk, Image + +root=Tk() +root.geometry("200x200+600+200") +root.title("Walk2Zero") +"""Bckground image""" +img = ImageTk.PhotoImage(Image.open("walk2zeo2.jpg")) +label_image=Label(root, image=img) +label_image.place(x=0,y=0,relwidth=1,relheight=1) +"""Heading label""" +label1= Label(root, text="Hi! I'm E@rth, Happy Walking ", font="Head_font", fg="#069000", bg="#fcf5cc").place(x=650, y=20) +Head_font=font.Font(family="Helvetica", weight="bold", size="500") +"""second heading label""" +label11= Label(root, text="Hi,there!! which one you prefer today ", fg='#069000', bg="#fcf5cc", font="label11_font",).place(x=620,y=100) + +"""Check buttins for transport""" +c1=Checkbutton(root, text="Walk",fg='#069000', bg="#fcf5cc").place(x=720,y=200) +c2=Checkbutton(root, text="Bicycle",fg='#069000', bg="#fcf5cc").place(x=720,y=250) +c3=Checkbutton(root, text="Scooter",fg='#069000', bg="#fcf5cc").place(x=720,y=300) +c4=Checkbutton(root, text="Car",fg='#069000', bg="#fcf5cc").place(x=720,y=350) + + +def onclick(): + label=Label(root,text="Wow!! will go ahead and calculate emissions ", fg="green", font=("Helvetica", "20")).place(x=540,y=450) + + +"""Submit button""" +label6=Button(root, text="Submit", command=onclick).place(x=720, y=400) +root.mainloop() \ No newline at end of file diff --git a/registration_page.py b/registration_page.py new file mode 100644 index 0000000..e3de2d0 --- /dev/null +++ b/registration_page.py @@ -0,0 +1,34 @@ +from tkinter import * +import tkinter.font as font +from PIL import ImageTk, Image + +root=Tk() +root.geometry("200x200+600+200") +"""Titles""" +root.title("Walk2Zero") +img = ImageTk.PhotoImage(Image.open("walk2zero1.jpg")) +label_image=Label(root, image=img) +label_image.place(x=0,y=0,relwidth=1,relheight=1) + +"""Text head""" +label1= Label(root, text="Hi! I'm E@rth, Happy Walking ", fg='black', font="Head_font",bg="#e28743").place(x=600, y=20) +Head_font=font.Font(family="Helvetica", weight="bold", size="500") +"""Second heading-registration""" +label11= Label(root, text="New User Registration ", fg='Black', font="label11_font", bg="#e28743").place(x=640,y=100) +label11_font=font.Font(weight="bold", size="100") +"""Text entry""" +label2= Entry(root,justify="center",bd='4px', font = ('Helvetica',10,'bold')).place(x=750, y=160) +label3= Entry(root, justify="center",bd='4px', font = ('Helvetica',10,'bold')).place(x=750, y=200) +label4= Entry(root,show='*', justify="center",bd='4px', font = ('Helvetica',10,'bold')).place(x=750, y=240) +label5= Entry(root, show='*', justify="center",bd='4px', font = ('Helvetica',10,'bold')).place(x=750, y=280) + +"""Submit button""" +label6=Button(root, text="Submit", bg="#eeeee4").place(x=750, y=320) + +"""label names""" + +label_1=Label(root,text="Enter Username",bg="#e28743",fg="black").place(x=620, y=160) +label_2=Label(root,text="Enter Email Address", bg="#e28743",fg="black").place(x=620, y=200) +label_3=Label(root,text="New Password",bg="#e28743",fg="black").place(x=620, y=240) +label_4=Label(root,text="Confirm password",bg="#e28743",fg="black").place(x=620, y=280) +root.mainloop() diff --git a/walk2zeo2.jpg b/walk2zeo2.jpg new file mode 100644 index 0000000..2fe62bb Binary files /dev/null and b/walk2zeo2.jpg differ diff --git a/walk2zero1.jpg b/walk2zero1.jpg new file mode 100644 index 0000000..4957bdb Binary files /dev/null and b/walk2zero1.jpg differ