mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
- single time url with notification, where user can see the prices of other products and can check the trend of prices without logging in, each url is valid for 15 minutes only and has a unique value. - filter to get products that are lowest within x days. - add canadian tire store, Target Fixes: - change limit from 300 products to 60 every 5 minutes. - fix best buy crawling single product - fix best buy url is not viewable - error when getting variation for best buy - remove fnac from deployment, as they block after 2-3 tries everytime. Took 11 hours 35 minutes
292 lines
4.9 KiB
CSS
292 lines
4.9 KiB
CSS
#gray_layout{
|
|
position: fixed;
|
|
background: #99999969;
|
|
z-index: 200;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.show_flex{
|
|
display: flex !important;
|
|
}
|
|
|
|
.form_background{
|
|
background: white;
|
|
z-index: 300;
|
|
width: 40%;
|
|
height: 40%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
border-radius: 15px;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.form_field{
|
|
width: 50%;
|
|
height: fit-content;
|
|
max-height: 25%;
|
|
padding:20px 10px;
|
|
|
|
}
|
|
|
|
.form_field input {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.form_field input[type="checkbox"] {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 20px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: red;
|
|
outline: none;
|
|
border-radius: 2rem;
|
|
cursor: pointer;
|
|
box-shadow: inset 0 0 5px rgb(0 0 0 / 50%);
|
|
}
|
|
|
|
.form_field input[type="checkbox"]::before {
|
|
content: "";
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
transition: 0.5s;
|
|
}
|
|
|
|
.form_field input[type="checkbox"]:checked::before {
|
|
transform: translateX(100%);
|
|
background: #fff;
|
|
}
|
|
|
|
.form_field input[type="checkbox"]:checked {
|
|
background: #00ed64;
|
|
}
|
|
|
|
#discount_bandit_show {
|
|
cursor: pointer !important;
|
|
max-width: 50px;
|
|
}
|
|
|
|
#submit_discount_form{
|
|
width: 50%;
|
|
height: 40px;
|
|
background-color: rgb(239 68 68 / 1);
|
|
transition-duration: 75ms;
|
|
outline: 2px solid transparent;
|
|
outline-offset: 2px;
|
|
--tw-shadow-colored: 0 1px 2px 0 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
--tw-text-opacity: 1;
|
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
font-size: 0.875rem;
|
|
line-height: 1.25rem;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 0.5rem;
|
|
border: 0px;
|
|
gap: 0.375rem;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 2.5rem 0;
|
|
cursor: pointer;
|
|
-webkit-appearance: button;
|
|
}
|
|
|
|
#submit_discount_form:hover{
|
|
background-color: rgb(248 113 113 / 1 );
|
|
}
|
|
|
|
.sticky-top{
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 300;
|
|
}
|
|
|
|
.success-message{
|
|
color: #270;
|
|
background-color: #DFF2BF;
|
|
}
|
|
|
|
|
|
.danger-message{
|
|
color: #D8000C;
|
|
background-color: #FFBABA;
|
|
}
|
|
|
|
|
|
.notification_message{
|
|
position: absolute;
|
|
right: 0;
|
|
top: 100px;
|
|
border-radius: 8px;
|
|
padding: 20px 30px ;
|
|
text-align: left;
|
|
flex-direction: column;
|
|
z-index:1000;
|
|
}
|
|
|
|
|
|
#chart {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.lowest_price{
|
|
color: #60a220;
|
|
}
|
|
.max_price{
|
|
color: #dc3545;
|
|
}
|
|
|
|
.lowest_price , .max_price{
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
|
|
.stores{
|
|
display: flex;
|
|
justify-content: start;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
padding: 20px;
|
|
|
|
|
|
}
|
|
#all_stores_cards{
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap:10px;
|
|
margin: 20px;
|
|
flex-wrap: wrap;
|
|
a:hover, a:visited , a:focus , a:active, a {
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
}
|
|
.single_store{
|
|
border-radius: 20px;
|
|
width:23%;
|
|
min-width: 300px;
|
|
|
|
&:hover{
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.card-block{
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
div{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-direction: row;
|
|
gap: 10px;
|
|
}
|
|
}
|
|
|
|
.prices, .current{
|
|
width: 50%;
|
|
height: 30px;
|
|
float: left;
|
|
margin:0;
|
|
}
|
|
|
|
.name{
|
|
font-weight: bold;
|
|
}
|
|
|
|
.highest{
|
|
color: #dc3545;
|
|
}
|
|
.lowest{
|
|
color: #60a220;
|
|
}
|
|
.seller{
|
|
padding-top: 10px;
|
|
}
|
|
}
|
|
|
|
.card {
|
|
width: 100%;
|
|
border-radius: 5px;
|
|
-webkit-box-shadow: 0 1px 2.94px 0.06px rgba(4,26,55,0.16);
|
|
box-shadow: 0 1px 2.94px 0.06px rgba(4,26,55,0.16);
|
|
border: none;
|
|
-webkit-transition: all 0.3s ease-in-out;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.card .card-block {
|
|
padding: 25px;
|
|
}
|
|
|
|
.order-card i {
|
|
font-size: 26px;
|
|
}
|
|
|
|
.f-left {
|
|
float: left;
|
|
}
|
|
|
|
.f-right {
|
|
float: right;
|
|
}
|
|
.order-card {
|
|
color: #fff;
|
|
}
|
|
|
|
.bg-c-blue {
|
|
background: linear-gradient(45deg,#4099ff,#73b4ff);
|
|
}
|
|
|
|
.bg-c-green {
|
|
background: linear-gradient(45deg,#2ed8b6,#59e0c5);
|
|
}
|
|
|
|
.bg-c-yellow {
|
|
background: linear-gradient(45deg,#FFB64D,#ffcb80);
|
|
}
|
|
.bg-c-orange {
|
|
background: linear-gradient(45deg, rgba(255,143,22,1) 0%, rgba(255,209,0,1) 100%);
|
|
}
|
|
|
|
.bg-c-pink {
|
|
background: linear-gradient(45deg,#FF5370,#ff869a);
|
|
}
|
|
|
|
.bg-c-red {
|
|
background: linear-gradient(45deg,#FF5370,#ff869a);
|
|
}
|
|
|
|
a.discount_bandit_button{
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
width: 100%;
|
|
background: #dc3545;
|
|
text-align: center;
|
|
line-height: 28px;
|
|
margin: auto;
|
|
border-radius: 20px;
|
|
color: #fff;
|
|
padding:5px 0;
|
|
|
|
&:hover{
|
|
text-decoration: none;
|
|
opacity: 0.9;
|
|
}
|
|
}
|