Commit 19433c19 authored by Felizia Tiburcio's avatar Felizia Tiburcio

Create website skeleton for Store/Inventory management

parent 6a38e17e
...@@ -5,11 +5,6 @@ body { ...@@ -5,11 +5,6 @@ body {
height: 100%; height: 100%;
font-size: 11pt; font-size: 11pt;
color: #3d3838; color: #3d3838;
<<<<<<< HEAD
background-color: black;
=======
/* background-color: black; */
>>>>>>> 8f1f8c3028c012cf2653c3f58224f0a116945f2c
} }
.carousel-item img { .carousel-item img {
...@@ -19,66 +14,66 @@ body { ...@@ -19,66 +14,66 @@ body {
/* nav bar */ /* nav bar */
nav { nav {
background: black; background: black;
top: 0; top: 0;
width: 100%; width: 100%;
transition: all 0.5s; transition: all 0.5s;
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.fixed-nav nav { .fixed-nav nav {
position: fixed; position: fixed;
box-shadow 0 5px black; box-shadow 0 5px black;
} }
nav ul {
margin: 0;
padding:0;
list-style: none;
display: flex;
}
nav li {
flex: 1;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
li.logo {
max-width: 0;
overflow: hidden;
background: white;
transition: all .5s;
font-weight: 600;
font-size: 30px;
}
li.logo a {
color: black;
}
nav a {
text-decoration: none;
padding: 20px;
display: inline-block;
color: white;
transition: all 0.2s;
}
/* nav bar end */ nav ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
}
.footer-basic{ nav li {
background-color: black; flex: 1;
color: #f8edeb; text-align: center;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center;
}
li.logo {
max-width: 0;
overflow: hidden;
background: white;
transition: all .5s;
font-weight: 600;
font-size: 30px;
}
li.logo a {
color: black;
}
nav a {
text-decoration: none;
padding: 20px;
display: inline-block;
color: white;
transition: all 0.2s;
}
/* nav bar end */
.footer-basic {
background-color: black;
color: #f8edeb;
display: flex;
justify-content: center;
} }
.copyright { .copyright {
flex: 0 1 800px; flex: 0 1 800px;
padding: 8px 24px; padding: 8px 24px;
} }
...@@ -101,6 +96,7 @@ nav { ...@@ -101,6 +96,7 @@ nav {
text-align: right; text-align: right;
font-size: 20px; font-size: 20px;
} }
/* homepage happening now */ /* homepage happening now */
.title-container { .title-container {
...@@ -108,16 +104,19 @@ nav { ...@@ -108,16 +104,19 @@ nav {
padding: 8px 32px; padding: 8px 32px;
justify-content: center; justify-content: center;
} }
@media(max-width:480px){
.event-container{ @media(max-width:480px) {
display: flex; .event-container {
flex-direction: column; display: flex;
flex-direction: column;
} }
.event{ flex: 1 1 auto; } .event {
flex: 1 1 auto;
}
} }
.event-container{ .event-container {
margin: 50px; margin: 50px;
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -135,67 +134,194 @@ nav { ...@@ -135,67 +134,194 @@ nav {
.event img { .event img {
max-width: 100%; max-width: 100%;
object-fit:cover; object-fit: cover;
}
.event-text {
padding: 16px;
text-align: center;
} }
.event-text{ padding: 16px; text-align: center; } .slick-prev:before {
color: black !important;
}
.slick-next:before {
color: black !important;
}
/* cards */ /* cards */
.cards { .cards {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.cards img { .cards img {
float: left; float: left;
display: block; display: block;
margin: 10px 15px 10px 0; margin: 10px 15px 10px 0;
object-fit: cover; object-fit: cover;
width:80px; width: 80px;
height:80px; height: 80px;
border-radius: 100%; border-radius: 100%;
border: 2px dotted black; border: 2px dotted black;
shape-outside: circle(50%); shape-outside: circle(50%);
} }
.cards li {
background-color: #f0f0f0;
border: 1px dotted #c3a9ff;
margin: 0 10px 20px 10px;
padding: 8px 16px;
border-radius: 5px;
flex: 1 1 480px;
display:flex;
align-items: center;
}
.cards p { .cards li {
background-color: #f0f0f0;
border: 1px dotted #c3a9ff;
margin: 0 10px 20px 10px;
padding: 8px 16px;
border-radius: 5px;
flex: 1 1 480px;
display: flex;
align-items: center;
}
} .cards p {}
/* cards end */ /* cards end */
/* auction view */ /* auction view */
.product-info{ .product-info {
padding: 8px 16px; padding: 8px 16px;
} }
/* auction view end */
/* auction view end */
.slick-prev:before {
color: black !important;
/* inventory/store */
.store-container {
display: flex;
flex-direction: column;
}
.store-banner {
height: 180px;
position: relative;
text-align: center;
display: inline-block;
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
/* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(100%, rgba(0, 0, 0, 0)));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
/* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
/* IE10+ */
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
/* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=0);
/* IE6-9 */
}
.store-banner img {
width: 100%;
object-fit: cover;
max-height: 100%;
position: relative;
z-index: -1;
display: block;
}
.store-info {
position: absolute;
color: white;
border: 2px solid black;
bottom: 8px;
left: 4rem;
text-align: left !important;
min-width: 50%;
max-width: 100%;
z-index: +1;
}
.store-info img {
float: left;
display: block;
margin: 10px 15px 10px 0px;
object-fit: cover;
width: 100px;
height: 100px;
border-radius: 100%;
border: 2px dotted black;
}
.sort-by {
display: flex;
justify-content: flex-end;
padding: 2rem 4rem 0 4rem;
;
border: 1px solid black;
}
.store-item-container {
display: grid;
justify-content: center;
grid-gap: 1rem;
grid-template-columns: repeat(5, 1fr);
padding: 4rem;
}
@media(max-width:600px) {
.store-item-container {
grid-template-columns: repeat(2, 1fr);
} }
}
.slick-next:before { @media(max-width:480px) {
color: black !important; .store-item-container {
grid-template-columns: 1fr;
} }
}
.store-item {
background-color: skyblue;
border: 2px dotted black;
}
.store-item img {
max-width: 100%;
object-fit: cover;
}
.item-info {
padding: 1rem 1rem 0 1rem;
}
.item-btns {
display: flex;
justify-content: flex-end;
margin: 0 4px 4px 0;
}
.store-btns-container {
display: flex;
justify-content: center;
align-items: center;
}
/* item detail view / add, edit item */
.item-image-container,
.item-form-container {
border: 2px solid black;
padding: 1rem;
}
\ No newline at end of file
...@@ -9,6 +9,21 @@ ...@@ -9,6 +9,21 @@
{% block content %} {% block content %}
<div class="container">
<h1>Add/Edit Item</h1>
<div class="row">
<div class="col-lg-7 col-md-6">ITEM IMAGE CONTAINER
<div class="item-image-container"></div>
</div>
<div class=" col-lg-5 col-md-6">ITEM FORM CONTAINER
<div class="item-form-container"></div>
<button type="button">Add Item</button>
</div>
</div>
</div>
<!-- Form with fields: <!-- Form with fields:
[Item name] [Item name]
[Item Description] [Item Description]
...@@ -16,7 +31,6 @@ ...@@ -16,7 +31,6 @@
<!-- Image, if no image add image --> <!-- Image, if no image add image -->
<button type="button">Add Item</button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,13 +2,16 @@ ...@@ -2,13 +2,16 @@
{% load static %} {% load static %}
{% block title %}My Store{% endblock %} {% block title %}Schedule Auction{% endblock %}
{% block styles %} {% block styles %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="container"><button type="button">Save Auction</button>
</div>
<!-- Form fields: <!-- Form fields:
[Auction Title] [Auction Title]
Drop down: [Select time for Auction] Drop down: [Select time for Auction]
...@@ -19,7 +22,6 @@ End: ...@@ -19,7 +22,6 @@ End:
Drop down: [Month] [Day] [Year] Time: [Hour] : [Minute] Drop down: [Month] [Day] [Year] Time: [Hour] : [Minute]
--> -->
<button type="button">Save Auction</button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -9,10 +9,111 @@ ...@@ -9,10 +9,111 @@
{% block content %} {% block content %}
<button type="button"><a href="startauction">Start Auction</a></button> <div class="store-container">
<div class="store-banner"><img src="https://www.w3schools.com/howto/img_snow_wide.jpg">
<div class="store-info">
<img src="https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png">
<h1>STORE NAME HERE</h1>
<p>@username</p>
<button class="edit-shop-btn" type="button">Edit Shop Info</button>
</div>
</div>
<div class="sort-by">
<label for="items">Sort items by: </label>
<select id="items" name="items">
<option value="">A-Z</option>
<option value="">Oldest</option>
<option value="">Newest</option>
<option value="">Price (Low-High)</option>
<option value="">Price (High-Low) </option>
</select>
</div>
<div class="store-item-container">
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
<div class="store-item">
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info">
<h4>Itemname</h4>
<p>Itemdescription <span class="item-price">PHP 500</span></p>
</div>
<div class="item-btns"> <button>Auction</button> <button>Edit</button> <button>Delete</button>
</div>
</div>
</div>
</div>
<div class="store-btns-container">
<button type="button"><a href="startauction">Start Auction</a></button>
<button type="button"><a href="additem">Add Item</a></button>
</div>
]
</div>
<button type="button">Edit Shop</button>
<button type="button"><a href="additem">Add Item</a></button>
{% endblock %} {% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment