Skip to content

Commit

Permalink
Merge pull request #26 from imanirak/test-deployment
Browse files Browse the repository at this point in the history
test deployment
  • Loading branch information
imanirak authored Apr 26, 2022
2 parents 94e9cff + 78e82af commit 4651b5b
Show file tree
Hide file tree
Showing 8 changed files with 977 additions and 64 deletions.
105 changes: 80 additions & 25 deletions main_app/static/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,19 @@ a {

.welcome {
list-style:none;
padding-top:1em;
}

.welcome li {
padding-top:0;

display:inline;
padding-right:1em;

}

.welcome a {
/* .welcome a {
padding-bottom:1em;
}
} */

ul {
list-style-type:none;
Expand All @@ -178,15 +180,13 @@ a {
background-color:white;
justify-content: center;
border-radius:10px;
width:60vw;
width:55vw;
height:60vh;
overflow:auto;
}





.box {
font-family:Open sans;
padding:40px;
Expand Down Expand Up @@ -295,6 +295,7 @@ td{

.employee-info h2 {
padding-left:1em;
font-family:Libre Baskerville;
}

.employee-info ul li{
Expand Down Expand Up @@ -330,10 +331,6 @@ td{
padding:5px;
}

.employee-info h2 {
font-size:2.5vh;
font-family:Libre Baskerville;
}

.employee-info span {
font-size:30px;
Expand Down Expand Up @@ -372,9 +369,32 @@ td{
}


.back-home {
margin-top:25px;
margin-bottom:25px;

text-transform:uppercase;
font-family:open sans;
color: var(--dark-purple);
font-weight: 700;
font-size: 14px;
letter-spacing: 1px;
background: rgba(136, 126, 126, 0.04);
padding: 10px 20px;
border: none;
border-radius: 20px;
outline: none;
box-sizing: border-box;
border: 2px solid rgba(0, 0, 0, 0.02);
max-width:100%;
}




.inventory-add {
margin-top:25px;
margin:5px;
margin-top:25px;
margin-bottom:25px;
margin-left:5em;
text-transform:uppercase;
Expand All @@ -396,7 +416,7 @@ td{


.employee-add {

margin:5px;
text-transform:uppercase;
font-family:open sans;
color: var(--dark-purple);
Expand All @@ -423,13 +443,15 @@ td{
padding-top:40px;
}



img {
padding-right:10em;
}

.search-bar {
padding-top:0.2em;
padding-left:10em;
padding-top:0.5em;
padding-right:6em;
}

.weclome-info il {
Expand Down Expand Up @@ -503,15 +525,25 @@ a {
color:var(--dark-purple);
}











@media only screen and (max-width: 1500px) {

.employee-search-bar, .employee-search-btn, .clear {
display:none;
}

.welcome {
/* .welcome {
font-size:2vh;
}
} */

}

Expand All @@ -535,10 +567,7 @@ a {
}
}




@import url(https://fonts.googleapis.com/css?family=Raleway);

h2 {
vertical-align: center;
text-align: center;
Expand Down Expand Up @@ -572,6 +601,7 @@ html, body {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}

.menu > li {
Expand All @@ -596,7 +626,7 @@ html, body {
.menu-button::before,
.menu-button::after {
display: block;
background-color: #fff;
background-color: var(--dark-purple);
position: absolute;
height: 4px;
width: 30px;
Expand All @@ -620,7 +650,7 @@ html, body {
}

#menu-toggle:checked + .menu-button-container .menu-button {
background: rgba(255, 255, 255, 0);
background:white;
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
Expand All @@ -632,6 +662,10 @@ html, body {
.menu-button-container {
display: flex;
}

/* .menu {
display:none;
} */

.menu {
position: absolute;
Expand All @@ -653,7 +687,7 @@ html, body {
}

#menu-toggle:checked ~ .menu li {
border: 1px solid #333;
border: 1px solid var(--light-purple);
height: 2.5em;
padding: 0.5em;
transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
Expand All @@ -666,8 +700,29 @@ html, body {
padding: 0.5em 0;
width: 100%;
color: white;
background-color: #222;
background-color: white;
}
.menu > li:not(:last-child) {
border-bottom: 1px solid #444;
border-bottom: 1px solid var(--pale-purple);
}
}


.signup-form {
margin: 0 auto;
width:auto;
text-align:left;
}

.signup input[type=submit] ,input[value=Submit]{
margin-left:12em;
margin-top:2em;

}

input{
text-align:center;
align-self: center;
}


16 changes: 14 additions & 2 deletions main_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@
</ul>
</div> -->
</div>
<!-- RESPONSIVE TOP NAV -->



<meta name="viewport" content="width=device-width, initial-scale=1">
<section class="top-nav">
<div class="logo">
Expand All @@ -57,14 +61,22 @@
width=50" height="50">
</a>

</div>
<div class="search-bar">
<form>
<input type="text" name="name" placeholder="name" class="employee-search-bar"/>
<input type="submit" value="Search" class="employee-search-btn"/>
<a class ="clear" href="{% url 'devices_index' %}">Clear Search</a>
</form>

</div>

<input id="menu-toggle" type="checkbox" />
<label class='menu-button-container' for="menu-toggle">
<div class='menu-button'></div>

</label>
<ul class="menu">

<li><a href="/employees">All Employees</a></li>
<li> <a href="/devices">All Devices</a> </li>
<li><a href="/inventory">Inventory</a></li>
Expand Down
76 changes: 69 additions & 7 deletions main_app/templates/signup.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,72 @@
{% extends 'login-style.html' %}

{% block body %}
<h2>Sign up</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Sign up</button>
</form>
{% endblock %}


<div class="employee-top">


<div class="employee-top">
<div class="box1"> <h1 class="employee-heading"></h1></div>



</div>

</div>


<div class="container">
<div class="create-title">
<ul>
<div class="column">
<div >
<ul >
<li><h1> Sign Up </h1></li>

</ul>
</div>
<div>
<div>


<div>





<div class="card-content">
<table>
<tr class="">
<th>Name</th>
<th>Serial Number</th>
</tr>
<tr>
<div class="borderlines">
<td class="inventory-spacing">
<form class='signup-form' action="" method="post">
{% csrf_token %}
{{form.as_p}}
<input class='signup' type="submit" value="Submit" />

</form>
</td>

</div>

</tr>
</table>




</a>


</div>

</div>

<a href="{% url 'home' %}"><button class="back-home">CANCEL</button></a>
{% endblock %}
2 changes: 1 addition & 1 deletion staticfiles/staticfiles.json

Large diffs are not rendered by default.

Loading

0 comments on commit 4651b5b

Please sign in to comment.