Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
FaridMalekpour authored Nov 22, 2023
1 parent 3744cd5 commit 877be74
Show file tree
Hide file tree
Showing 56 changed files with 1,497 additions and 0 deletions.
Binary file added tmproj/db.sqlite3
Binary file not shown.
22 changes: 22 additions & 0 deletions tmproj/manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tmproj.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()
127 changes: 127 additions & 0 deletions tmproj/static/create_task.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
body {
position: relative;
height: 100vh;
background-image: url('home.jpg');
background-size: cover;
background-position: center;
color: #fff;
margin: 0;
}


body::before {
content: "";
position: absolute;
top: -25px;
right: 0;
bottom: 0;
left: 0;
background: rgba(113, 145, 119, 0.6);
z-index: -1;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

header {
text-align: center;
margin-bottom: 20px;
}

h2 {
color: #ccffd5;
font-size: 24px;
text-align: center;
margin-bottom: 0px;
font-family: cursive;
background-color: #123f11;
width: 75%;
padding: 5px;
border-radius: 5px;
box-shadow: 0 0 15px 4px #8cb7056e;
}

main {
margin: 0 auto;
}

form {
text-align: -webkit-center;
max-width: 600px;
margin: 0 auto;
}

p {
margin: 0px;
}

label {
display: block;
margin-bottom: 5px;
color: #f9ff00d6;
font-family: monospace;
font-size: 20px;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

input[type="text"],
textarea,
input[type="datetime-local"] {
width: 100%;
padding: 10px;
border: 1px solid #000;
border-radius: 4px;
margin-bottom: 10px;
font-size: 15px;
outline: none;
font-family: monospace;
box-shadow: 0 0 12px 2px;
text-align: center;
}

button[type="submit"] {
background-color: #062804;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 48%;
margin-left: 1%;
font-size: 20px;
box-shadow: 0 0 12px 2px #197b12b5;
}

button[type="submit"]:hover {
background-color: #359333;
}


.task-list-button {
background-color: #21501b;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
margin-top: 10px;
}

label[for="id_priority"] {
display: block;
margin-bottom: 5px;
}

select#id_priority {
width: 104%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 20px;
font-family: monospace;
text-align: center;
box-shadow: 0 0 12px 2px;
}

p select#id_priority {
margin-bottom: 20px;
}
77 changes: 77 additions & 0 deletions tmproj/static/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
body {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-image: url('home.jpg');
background-size: cover;
background-position: center;
color: #fff;
margin: 0;
}

body::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(113, 145, 119, 0.6);
z-index: -1;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

header, nav {
text-align: center;
margin-bottom: 20px;
}

h1, h2 {
font-family: cursive, 'Arial', sans-serif;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.links {
background-color: #0b6511;
color: #fff;
padding: 12px 24px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
margin-bottom: 10px;
transition: background-color 0.3s ease, color 0.3s ease;
box-shadow: 0 0 6px 5px #cbcd25;
}

.links:hover {
background-color: #094909;
color: #fff;
}


#logout {
background-color: #c0392b;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}

p.description {
display: block;
font-size: 20px;
font-family: cursive;
width: 70%;
text-align: center;
background-color: rgba(197, 213, 211, 0.93);
color: #000;
border-radius: 5px;
padding: 20px;
border: 2px solid #008000;
box-shadow: 0 0 13px 5px;
}
Binary file added tmproj/static/home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 143 additions & 0 deletions tmproj/static/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
body {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-image: url('home.jpg');
background-size: cover;
background-position: center;
color: #fff;
margin: 0;
}

body::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(113, 145, 119, 0.6);
z-index: -1;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.login-container {
max-width: 25%;
font-family: cursive;
padding: 20px;
background-color: #ffffffd1;
box-shadow: 0 0 12px 5px rgb(0 0 0);
}

h1 {
text-align: center;
margin-bottom: 20px;
color: #000;
}

form {
margin-bottom: 20px;
}

.form-group {
margin-bottom: 10px;
}

label {
display: block;
font-weight: bold;
font-size: 20px;
font-family: monospace;
margin-top: 25px;
color: #000;
}

input[type="text"],
input[type="password"] {
width: 90%;
padding: 10px;
margin: 5px;
border: none;
border-bottom: 2.5px solid;
outline: none;
background-color: #ffffff00;
font-size: 19px;
font-family: sans-serif;
}

button.login {
background-color: #269b76;
color: #fff;
padding: 8px 16px;
font-size: 22px;
font-family: monospace;
border: none;
border-radius: 4px;
cursor: pointer;
width: 50%;
display: block;
margin: 0 auto;
}

p.register-text {
text-align: center;
margin-top: 10px;
color: #000;
}

p.register-text button {
border: none;
color: #007500;
cursor: pointer;
font-size: 22px;
background-color: #fff;
padding: 10px 20px;
font-family: monospace;
border-radius: 5px;
}


ul.messages {
list-style: none;
padding: 0;
margin-bottom: 20px;
text-align: center;
max-width: 300px;
}

ul.messages li {
margin-bottom: 5px;
font-size: 18px;
}


ul.messages li.error {
color: red;
}


ul.messages li.success {
color: #007500;
}


ul.messages li.info {
color: #269b76;
}



button.login:hover {
background-color: #1e7e5e;
}


p.register-text button:hover {
background-color: #269b76;
color: #fff;
}


Loading

0 comments on commit 877be74

Please sign in to comment.