Skip to content

Commit

Permalink
static and media added
Browse files Browse the repository at this point in the history
  • Loading branch information
ingarbi committed Jul 5, 2024
1 parent 087d75a commit 3da992c
Show file tree
Hide file tree
Showing 241 changed files with 31,202 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ venv
.vs
db.sqlite3
__pycache__
media

.env

static/
.env
57 changes: 57 additions & 0 deletions backend/bigcorp/static/bigcorp/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
body {
display: flex;
justify-content: center;
align-items: center;

height: 100vh;
background-color: #000000;
transition: background-color 0.5s ease-in-out;
}
.welcome {
position: absolute;
color: #ffffff;
top: 150px;
left: 0;
right: 0;
text-align: center;
font-size: 24px;
font-weight: bold;
}

.box {
display: flex;
border-radius: 5px;
transition: transform 0.5s ease;
width: 150px;
height: 150px;
margin: 20px;
background-color: #ccc;
text-align: center;
justify-content: center;
align-items: center;
line-height: 100px;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
}
a {
text-decoration: none;
color: #000000;
}

.box:hover {
background-color: #f0f0f0;
}

.box.box1:hover {
background-color: #45EDAD;
}

.box.box2:hover {
background-color: #dcdcdc;
}

.box.box3:hover {
background-color: #5e81ac;
}

16 changes: 16 additions & 0 deletions backend/bigcorp/static/bigcorp/js/box-change.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const boxes = document.querySelectorAll(".box");

boxes.forEach((box) => {
box.addEventListener("mouseover", () => {
const boxColor = getComputedStyle(box).getPropertyValue("background-color");
document.body.style.backgroundColor = boxColor;
const welcome = document.getElementById("welcome");
welcome.innerText = `Welcome to ${box.innerHTML}`;
});

box.addEventListener("mouseout", () => {
document.body.style.backgroundColor = "#000000";
const welcome = document.getElementById("welcome");
welcome.innerText = "Welcome to BigCorp";
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 backend/media/images/default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 backend/media/products/products/default.jpg
31 changes: 31 additions & 0 deletions backend/payment/static/payment/css/payment-success-fail.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
._failed{ border-bottom: solid 4px red !important; }
._failed i{ color:red !important; }

._success {
box-shadow: 0 15px 25px #00000019;
padding: 45px;
width: 100%;
text-align: center;
margin: 40px auto;
border-bottom: solid 4px #28a745;
}

._success i {
font-size: 55px;
color: #28a745;
}

._success h2 {
margin-bottom: 12px;
font-size: 40px;
font-weight: 500;
line-height: 1.2;
margin-top: 10px;
}

._success p {
margin-bottom: 0px;
font-size: 18px;
color: #495057;
font-weight: 500;
}
60 changes: 60 additions & 0 deletions backend/payment/static/payment/css/pdf.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
body {
font-family:Helvetica, sans-serif;
color:#222;
line-height:1.5;
}

table {
width:100%;
border-spacing:0;
border-collapse: collapse;
margin:20px 0;
}

table th, table td {
text-align:left;
font-size:14px;
padding:10px;
margin:0;
}

tbody tr:nth-child(odd) {
background:#efefef;
}

thead th, tbody tr.total {
background:#5993bb;
color:#fff;
font-weight:bold;
}

h1 {
margin:0;
}


.secondary {
color:#bbb;
margin-bottom:20px;
}

.num {
text-align:right;
}

.paid, .pending {
color:#1bae37;
border:4px solid #1bae37;
text-transform:uppercase;
font-weight:bold;
font-size:22px;
padding:4px 12px 0px;
float:right;
transform: rotate(-15deg);
margin-right:40px;
}

.pending {
color:#a82d2d;
border:4px solid #a82d2d;
}
109 changes: 109 additions & 0 deletions backend/shop/static/shop/css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
body{
font-family: 'Montserrat', sans-serif;
}

.form-layout {
border-radius: 20px;
width: 500px;
}

.badge {
padding-left: 9px;
padding-right: 9px;
-webkit-border-radius: 9px;
-moz-border-radius: 9px;
border-radius: 9px;
}

.label-warning[href],
.badge-warning[href] {
background-color: #c67605;
}
#lblCartCount {
font-size: 12px;
background: #3c9700;
color: #fff;
padding: 0 5px;
vertical-align: top;
margin-left: -2px;
}

a {
font-size: 14px;
font-weight: 700;
}
.superNav {
font-size: 13px;
}
.form-control {
outline: none !important;
box-shadow: none !important;
}
.navbar-nav li:hover > ul.dropdown-menu {
display: block;
}
.dropdown-submenu {
position: relative;
}
.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
text-decoration: underline;
transform: rotate(-90deg);
}
@media screen and (max-width: 540px) {
.centerOnMobile {
text-align: center;
}
}

/* NavBar Search Button */
.search-button {
background-color: #45EDAD;
}


.alert-primary {
background-color: #007bff;
color: #fff;
}

.alert-secondary {
background-color: #6c757d;
color: #fff;
}

.alert-success {
background-color: #28a745;
color: #fff;
}

.alert-danger {
background-color: #dc3545;
color: #fff;
}

.alert-warning {
background-color: #ffc107;
color: #fff;
}

.alert-info {
background-color: #17a2b8;
color: #fff;
}

.alert-light {
background-color: #f8f9fa;
color: #212529;
}

.alert-dark {
background-color: #343a40;
color: #fff;
}
Binary file added backend/shop/static/shop/images/favicon.ico
Binary file not shown.
6 changes: 6 additions & 0 deletions backend/shop/static/shop/js/base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const date = new Date();
document.querySelector(".year").innerHTML = date.getFullYear();

setTimeout(function () {
$("#message").fadeOut("slow");
}, 3000);
Loading

0 comments on commit 3da992c

Please sign in to comment.