Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
paulemacedo committed Nov 9, 2024
0 parents commit 1fafb3f
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 0 deletions.
265 changes: 265 additions & 0 deletions Styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
/* Base styles */
body {
background-color: #2D1B3E;
color: white;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Menu Container */
.menu-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #2D1B3E;
z-index: 1000;
animation: slideIn 0.3s ease-out;
display: none; /* Initially hidden */
}

.menu-container.active {
display: block; /* Show when active */
}

/* Menu Header */
.menu-header {
padding: 20px;
display: flex;
justify-content: flex-end;
}
.close-button {
background: none;
border: none;
color: white;
font-size: 1.5rem;
padding: 8px;
cursor: pointer;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
}
/* Menu Navigation */
.menu-nav {
padding: 20px;
display: flex;
flex-direction: column;
gap: 15px;
}
.menu-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
color: white;
text-decoration: none;
font-size: 1.25rem;
border-radius: 12px;
transition: background-color 0.2s;
background-color: rgba(255, 255, 255, 0.05);
}
.menu-item:hover {
background-color: rgba(255, 255, 255, 0.1);
color: white;
}
.menu-item i {
font-size: 1rem;
opacity: 0.7;
}
/* Animations */
@keyframes slideIn {
from {
transform: translateX(-100%);
}
to {
transform: translateX(0);
}
}
/* Media Queries */
@media (min-width: 768px) {
.menu-container {
max-width: 400px;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}
.menu-nav {
padding: 30px;
}
}

/* Typography */
.navbar-brand {
font-family: 'Courier New', monospace;
font-weight: bold;
}

/* Navigation */
.nav-pills .nav-link {
padding: 8px 16px;
margin-right: 8px;
border-radius: 20px;
}

.nav-pills .nav-link.active {
background-color: #9B6B9D;
}

/* Product Cards */
.product-card {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 12px;
margin-bottom: 15px;
}

.product-content {
display: flex;
align-items: flex-start;
gap: 15px;
}

.product-image-container {
flex-shrink: 0;
}

.product-image {
width: 80px;
height: 80px;
background-color: #f8f9fa;
border-radius: 8px;
}

.product-info {
flex-grow: 1;
min-width: 0; /* Prevents flex item from overflowing */
}

.product-info h5 {
margin-bottom: 4px;
font-size: 1rem;
}

.product-description {
color: #888;
font-size: 0.85rem;
margin-bottom: 8px;
}

.price-action {
display: flex;
justify-content: space-between;
align-items: center;
}

.price {
font-size: 1rem;
font-weight: bold;
margin: 0;
}

/* Buttons */
.add-to-cart-btn {
background-color: #9B6B9D;
border: none;
border-radius: 20px;
color: white;
padding: 6px 16px;
font-size: 0.9rem;
transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
background-color: #8A5C8C;
}



/* Order Button */
.order-button {
position: fixed;
bottom: 5px; /* Adjusted to give some space from the bottom */
left: 50%;
transform: translateX(-50%);
background-color: #9B6B9D;
border: none;
border-radius: 25px;
padding: 12px 30px;
font-size: 1.1rem;
width: 100%;
max-width: 400px;
margin: 0 auto;
display: block;
z-index: 1000; /* Ensure it stays on top of other elements */
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
animation: float 2s infinite; /* Add animation */
}

/* Keyframes for float animation */
@keyframes float {
0%, 100% {
transform: translate(-50%, 0);
}
50% {
transform: translate(-50%, -10px); /* Adjust the value to control the float height */
}
}

/* Media Queries */
@media (min-width: 768px) {
.product-image {
width: 100px;
height: 100px;
}

.product-info h5 {
font-size: 1.1rem;
}

.product-description {
font-size: 0.9rem;
}

.add-to-cart-btn {
padding: 8px 20px;
font-size: 1rem;
}
}

@media (min-width: 992px) {
.container {
max-width: 960px;
}

.product-card {
transition: transform 0.3s;
}

.product-card:hover {
transform: translateY(-2px);
}
}

/* Utility Classes */
.text-purple {
color: #9B6B9D;
}

/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.product-card {
animation: fadeIn 0.3s ease-out;
}
Loading

0 comments on commit 1fafb3f

Please sign in to comment.