Website restoration: Node.js backend, restored design, GitHub sync disabled
- Replaced broken .NET backend with Node.js/Express - Restored original website design with purple gradient hero - Updated homepage and shop pages with Bootstrap 5 responsive design - Disabled GitHub remote sync - all code now stored locally only - Created backup scripts and documentation - All changes saved on Ubuntu server at /var/www/SkyArtShop
This commit is contained in:
249
backend/views/public/home.ejs
Normal file
249
backend/views/public/home.ejs
Normal file
@@ -0,0 +1,249 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>SkyArtShop - Scrapbooking, Journaling & Crafting Supplies</title>
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.css"
|
||||
/>
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
<style>
|
||||
.hero-section {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 100px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.hero-section h1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.hero-section p {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.product-card {
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.product-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.product-card img {
|
||||
height: 250px;
|
||||
object-fit: cover;
|
||||
}
|
||||
.navbar-custom {
|
||||
background-color: #1a1a1a;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.footer-custom {
|
||||
background-color: #1a1a1a;
|
||||
color: #ffffff;
|
||||
padding: 40px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark navbar-custom sticky-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/">
|
||||
<i class="bi bi-palette-fill"></i> SkyArtShop
|
||||
</a>
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarNav"
|
||||
>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav ms-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="/">Home</a>
|
||||
</li>
|
||||
<li class="nav-item"><a class="nav-link" href="/shop">Shop</a></li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/portfolio">Portfolio</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/about">About</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/contact">Contact</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/admin/login"
|
||||
><i class="bi bi-lock"></i> Admin</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Hero Section -->
|
||||
<section class="hero-section">
|
||||
<div class="container">
|
||||
<h1>Welcome to SkyArtShop</h1>
|
||||
<p class="lead">Premium Scrapbooking, Journaling & Crafting Supplies</p>
|
||||
<a href="/shop" class="btn btn-light btn-lg px-5 py-3">
|
||||
<i class="bi bi-cart"></i> Shop Now
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Featured Products -->
|
||||
<section class="py-5">
|
||||
<div class="container">
|
||||
<div class="text-center mb-5">
|
||||
<h2 class="display-5 fw-bold">Featured Products</h2>
|
||||
<p class="text-muted">Discover our best-selling crafting supplies</p>
|
||||
</div>
|
||||
<div class="row g-4">
|
||||
<% products.slice(0, 8).forEach(p => { %>
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<div class="card product-card h-100">
|
||||
<% if (p.imagepath) { %>
|
||||
<img
|
||||
src="/uploads/images/<%= p.imagepath %>"
|
||||
class="card-img-top"
|
||||
alt="<%= p.name %>"
|
||||
/>
|
||||
<% } else { %>
|
||||
<div
|
||||
style="
|
||||
height: 250px;
|
||||
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
"
|
||||
>
|
||||
<i class="bi bi-image" style="font-size: 3rem; color: #999"></i>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><%= p.name %></h5>
|
||||
<% if (p.description) { %>
|
||||
<p class="card-text text-muted small">
|
||||
<%= p.description.substring(0, 60) %>...
|
||||
</p>
|
||||
<% } %>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="h5 mb-0 text-primary"
|
||||
>$<%= parseFloat(p.price).toFixed(2) %></span
|
||||
>
|
||||
<a href="/shop" class="btn btn-sm btn-outline-primary"
|
||||
>View</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% }) %>
|
||||
</div>
|
||||
<div class="text-center mt-5">
|
||||
<a href="/shop" class="btn btn-primary btn-lg">View All Products</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Features Section -->
|
||||
<section class="bg-light py-5">
|
||||
<div class="container">
|
||||
<div class="row text-center g-4">
|
||||
<div class="col-md-4">
|
||||
<div class="p-4">
|
||||
<i class="bi bi-truck display-4 text-primary mb-3"></i>
|
||||
<h4>Free Shipping</h4>
|
||||
<p class="text-muted">On orders over $50</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="p-4">
|
||||
<i class="bi bi-award display-4 text-primary mb-3"></i>
|
||||
<h4>Quality Products</h4>
|
||||
<p class="text-muted">Premium crafting supplies</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="p-4">
|
||||
<i class="bi bi-headset display-4 text-primary mb-3"></i>
|
||||
<h4>24/7 Support</h4>
|
||||
<p class="text-muted">Always here to help</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="footer-custom">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-4 mb-4">
|
||||
<h5><i class="bi bi-palette-fill"></i> SkyArtShop</h5>
|
||||
<p class="text-muted">
|
||||
Your one-stop shop for premium scrapbooking, journaling, and
|
||||
crafting supplies.
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<h5>Quick Links</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<a href="/" class="text-muted text-decoration-none">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/shop" class="text-muted text-decoration-none">Shop</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/about" class="text-muted text-decoration-none"
|
||||
>About</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/contact" class="text-muted text-decoration-none"
|
||||
>Contact</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<h5>Connect With Us</h5>
|
||||
<div class="d-flex gap-3">
|
||||
<a href="#" class="text-muted"
|
||||
><i class="bi bi-facebook fs-4"></i
|
||||
></a>
|
||||
<a href="#" class="text-muted"
|
||||
><i class="bi bi-instagram fs-4"></i
|
||||
></a>
|
||||
<a href="#" class="text-muted"
|
||||
><i class="bi bi-twitter fs-4"></i
|
||||
></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="bg-light" />
|
||||
<div class="text-center text-muted">
|
||||
<p>© 2025 SkyArtShop. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user