Skip to content
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

styling added to all templates components #10

Open
wants to merge 1 commit into
base: muqadim/project_unit_test
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
5 changes: 5 additions & 0 deletions UniManage/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,8 @@
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
AUTHENTICATION_BACKENDS = ['user.backends.EmailBackend']

STATICFILES_DIRS = [
os.path.join(BASE_DIR, "project/static"),
os.path.join(BASE_DIR, "user/static")
]
Binary file modified db.sqlite3
Binary file not shown.
66 changes: 66 additions & 0 deletions project/static/css/create_project.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f8;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 0;
color: #333;
}

h2 {
text-align: center;
margin-bottom: 30px;
color: #444;
}

form {
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
width: 80%;
max-width: 600px;
}

div {
margin-bottom: 20px;
}

label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}

input[type="text"],
input[type="date"],
textarea,
select {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
font-family: 'Arial', sans-serif;
}

textarea {
resize: vertical;
min-height: 100px;
}

button {
background-color: #2c3e50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
}

button:hover {
background-color: #34495e;
}
91 changes: 91 additions & 0 deletions project/static/css/projects_list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f8;
margin: 0;
padding: 0;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
}

h2 {
text-align: center;
margin-top: 50px;
margin-bottom: 50px;
font-size: 28px;
color: #444;
}

p a {
background-color: #2c3e50;
color: #fff;
padding: 8px 15px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
margin: 20px;
display: inline-block;
}

p a:hover {
background-color: #34495e;
text-decoration: none;
}

ul {
list-style-type: none;
padding: 0;
max-width: 800px;
width: 90%;
margin-top: 20px;
margin-bottom: 50px;
}

li {
background-color: #f7f7f9;
margin: 20px 0;
padding: 30px;
border-radius: 8px;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
border: 1px solid #d4d4d6;
}

h3 {
font-size: 24px;
margin: 0 0 15px 0;
color: #2c3e50;
border-bottom: 3px solid #2c3e50;
padding-bottom: 10px;
text-align: center;
width: 100%;
}

p {
margin: 8px 0;
line-height: 1.5;
color: #555;
text-align: center;
font-weight: 500;
width: 100%;
}

a {
text-decoration: none;
color: #2980b9;
padding: 8px 12px;
border: 1px solid #2980b9;
border-radius: 4px;
font-size: 14px;
align-self: center;
transition: background-color 0.2s, color 0.2s;
}

a:hover {
background-color: #2980b9;
color: #fff;
}
66 changes: 66 additions & 0 deletions project/static/css/supervisor_login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(45deg, #83a4d4, #b6fbff);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
}

h2 {
text-align: center;
margin-bottom: 30px;
color: #333;
}

form {
background-color: #ffffff;
padding: 40px;
border-radius: 8px;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
max-width: 500px;
width: 90%;
}

div {
margin-bottom: 20px;
}

label {
display: block;
margin-bottom: 5px;
color: #555;
font-weight: 500;
}

input[type="email"],
input[type="password"] {
width: 100%;
padding: 12px 15px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 14px;
}

button {
color: #ffffff; /* White text color */
background-color: #000000; /* Black background */
padding: 10px 20px;
border-radius: 20px;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
cursor: pointer;
border: none;
font-size: 16px;
transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
width: 100%;
text-align: center;
}

button:hover {
background-color: #333333; /* Slightly lighter black on hover */
box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
transform: translateY(-5px);
}
88 changes: 88 additions & 0 deletions project/static/css/view_comments.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f8;
padding: 40px;
color: #333;
line-height: 1.6;
}

h2 {
text-align: center;
margin-bottom: 30px;
color: #2c3e50;
}

form {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
margin-bottom: 40px;
}

div {
margin-bottom: 20px;
}

label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #34495e;
}

textarea {
width: 100%;
padding: 10px;
border: 1px solid #bdc3c7;
border-radius: 4px;
font-size: 14px;
font-family: 'Arial', sans-serif;
resize: vertical;
min-height: 100px;
}

button {
background-color: #2c3e50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
}

button:hover {
background-color: #34495e;
}

hr {
margin: 40px 0;
border-color: #bdc3c7;
border-style: solid;
border-width: 1px 0 0 0;
}

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

li {
background-color: #fff;
padding: 15px;
border-radius: 5px;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}

a {
color: #3498db;
text-decoration: none;
font-weight: bold;
}

a:hover {
text-decoration: underline;
}
2 changes: 2 additions & 0 deletions project/templates/project/create_project.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/create_project.css' %}">
<head>
<!-- Select2 CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
Expand Down
2 changes: 2 additions & 0 deletions project/templates/project/projects_list.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/projects_list.css' %}">
<h2>Your Projects</h2>
<p>
<a href="{% url 'create_project' %}">Create New Project</a>
Expand Down
4 changes: 3 additions & 1 deletion project/templates/project/supervisor_login.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@


{% block content %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/supervisor_login.css' %}">

<h2>Supervisor Login</h2>
<form method="post">
{% csrf_token %}
Expand Down
2 changes: 2 additions & 0 deletions project/templates/project/view_comments.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/view_comments.css' %}">
<h2>Add a Comment for Project: {{ project.name }}</h2>

<form method="post" >
Expand Down
Loading