Skip to content

Commit

Permalink
Creating Exium base design
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammedKAldin committed Jul 24, 2022
1 parent 3ec83af commit ff0725d
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 4 deletions.
Binary file added Concept.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
277 changes: 277 additions & 0 deletions Login.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>448</width>
<height>708</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="styleSheet">
<string notr="true">QMainWindow {

background: rgb(46, 49, 146);
}</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonIconOnly</enum>
</property>
<property name="tabShape">
<enum>QTabWidget::Triangular</enum>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>591</width>
<height>721</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QFrame {
background: rgb(46, 49, 146);
}</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLabel" name="headline_2">
<property name="geometry">
<rect>
<x>71</x>
<y>103</y>
<width>121</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Sitka Text Semibold</family>
<pointsize>-1</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
id: headline_1;
font : 15px;
color: rgb(244, 178, 0);
background: transparent;
}</string>
</property>
<property name="text">
<string>Exium everyday</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="headline">
<property name="geometry">
<rect>
<x>71</x>
<y>25</y>
<width>286</width>
<height>81</height>
</rect>
</property>
<property name="font">
<font>
<family>Sitka Text Semibold</family>
<pointsize>-1</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
id: headline;
font : 90px;
color: whitesmoke;
}</string>
</property>
<property name="text">
<string>Exium</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="headline_3">
<property name="geometry">
<rect>
<x>197</x>
<y>103</y>
<width>171</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Sitka Text Semibold</family>
<pointsize>-1</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
id: headline_1;
font : 15px;
color: whitesmoke;
background: transparent;
}</string>
</property>
<property name="text">
<string>Grow Your Knowledge!</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>90</x>
<y>600</y>
<width>271</width>
<height>51</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
id:pushButton;
font: 20px;
font-weight:700;
color: rgb(43, 45, 135);
background:rgb(244, 178, 0) ;
}</string>
</property>
<property name="text">
<string>Get Started !</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>55</x>
<y>220</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
font: 16px;
font-weight:700;
color:whitesmoke;
}</string>
</property>
<property name="text">
<string>Type your name here to get started :</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>92</x>
<y>261</y>
<width>281</width>
<height>41</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QTextEdit {
font: 25px;
background:white;
border: 1px solid white;
border-radius: 5px;
}</string>
</property>
<property name="inputMethodHints">
<set>Qt::ImhMultiLine</set>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>57</x>
<y>261</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
id:label_2;
font: 16px;
font-weight:700;
color:black;
background:white;
border: 1px solid white;
border-radius: 10px 2px;
}</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>avatar.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<zorder>headline</zorder>
<zorder>headline_2</zorder>
<zorder>headline_3</zorder>
<zorder>pushButton</zorder>
<zorder>label</zorder>
<zorder>textEdit</zorder>
<zorder>label_2</zorder>
</widget>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>
Binary file added avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 22 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
import requests
import json
import os
import requests

response = requests.get("https://opentdb.com/api.php?amount=10")
response = requests.get("https://opentdb.com/api.php?amount=10&difficulty=hard")

def requestJson(obj):
# create a formatted string of the Python JSON object
text = json.dumps(obj, sort_keys=True, indent=4)
return text

# Parse JSON into an object with attributes corresponding to dict keys.
x = json.loads(requestJson(response.json()["results"]))
print(x[0]["category"])
data = json.loads(requestJson(response.json()["results"]))
#print(x[0]["category"])

#--------------------- Design ---------------------#
from ast import If
from PyQt5.QtWidgets import QMainWindow, QApplication
from PyQt5.uic import loadUi
import sys

class Main(QMainWindow):
def __init__(self):
super(Main, self).__init__()
loadUi('Login.ui', self)

if __name__ == '__main__':
app = QApplication(sys.argv)
ui = Main()
ui.show()
app.exec_()

0 comments on commit ff0725d

Please sign in to comment.