Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Product page #649

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
aria-haspopup="true" aria-expanded="false">Donate<span class="caret"></span></a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ site.baseurl }}/donate">Donate</a>
<a class="dropdown-item" href="https://www.bonfire.com/store/sugar-labs-merch/">Store</a>
<a class="dropdown-item" href="{{ site.baseurl }}/product">Products</a>
</div>
</li>
</ul>
Expand Down Expand Up @@ -111,7 +111,7 @@
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ site.baseurl }}/donate">Donate</a>
<a class="dropdown-item" href="https://www.bonfire.com/store/sugar-labs-merch/">Store</a>
<a class="dropdown-item" href="{{ site.baseurl }}/product">Products</a>
</div>
</li>
</ul>
Expand Down
Binary file added assets/products/sugarlabs mech.jpg
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 assets/products/sugarlabs_USB_drive.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,76 @@ ul {
padding: revert;
list-style: inherit;
}

/* Container for Product Cards */
.product-container {
padding-left: 150px;
padding-right: 150px;
display: grid;
justify-content: center;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 150px;
}

/* Individual Product Card */
.product-card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}

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

/* product image Styling */
.product-image {
width: 100%;
height: auto;
object-fit: cover;
max-height: 250px;
}

/* Product Details */
.product-details {
padding: 15px;
}

.product-name {
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 10px;
}

.product-description {
font-size: 1rem;
color: #666;
margin-bottom: 15px;
}

.product-price {
font-size: 1.1rem;
font-weight: bold;
color: #333;
margin-bottom: 10px;
}

.product-footer {
display: flex;
justify-content: space-between;
align-items: center;
}

.explore-btn {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
font-size: 0.9rem;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}
47 changes: 47 additions & 0 deletions product.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: default
title: Products - Sugar Labs
permalink: /product/index.html
---

<!-- Title section -->
<div class="section-title1">
<span class="tag tag-regular">Our Products</span>
</div>

<!-- Products Section -->
<section id="intro">
<div class="container my-2">
<div class="border-bottom pb-3 mb-3">
<div class="product-container">
<!-- Product Card 1 -->
<div class="product-card">
<img src="assets\products\sugarlabs mech.jpg" alt="Merch" class="product-image" />
<div class="product-details">
<h3 class="product-name">Sugarlabs Merch</h3>
<p class="product-description">
Sweet merch that supports our unique cause.
</p>
<div class="product-footer">
<a href="https://www.bonfire.com/store/sugar-labs-merch/" class="explore-btn">Explore More</a>
</div>
</div>
</div>

<!-- Product Card 2 -->
<div class="product-card">
<img src="assets\products\sugarlabs_USB_drive.jpg" alt="SOAS" class="product-image" />
<div class="product-details">
<h3 class="product-name">Sugarlabs USB Flash Drive</h3>
<p class="product-description">
Easily install Fedora Sugar On A Stick (SOAS) to your device directly from this USB flash drive.
</p>
<div class="product-footer">
<a href="https://www.usbmemorydirect.com/store/novelty/sugarlabs/" class="explore-btn">Explore More</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>