Skip to content

goldipl/SPARK_PROMOTIONS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

311 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark Promotions Website

A dynamic e-commerce website for Spark Promotions, built with PHP, SCSS, Vanilla JavaScript, and HTML5. Features product catalog, shopping cart, user authentication, client panel, and email confirmations.

Language: Polish 🇵🇱 | Platform: Web | Framework: None (Vanilla PHP)

Table of Contents

Features

🛒 E-commerce Functionality

  • Product Catalog: Browse products by categories with filtering options
  • Shopping Cart: Multi-step checkout process (3 steps)
  • User Authentication: Login and registration system
  • Client Panel: Manage addresses, favorites, orders, and personal data

📄 Pages

  • Home Page: Hero swiper, popular categories, banners, client testimonials, about us, team, contact form
  • Product Pages: Individual product cards with branding options
  • Category Pages: Product listings with filters and pagination
  • Cart Flow: Step 1 (cart review), Step 2 (login/register), Step 3 (checkout), Thank you page
  • Client Panel: Addresses, favorites, order history, order details, personal data
  • Contact Page: Contact form and information
  • Article Pages: Blog/article content

🎨 UI/UX

  • Responsive Design: Mobile-first approach with dedicated mobile views
  • Interactive Elements: Swiper carousels, accordions, tabs, modals
  • Image Galleries: Product images with lightbox functionality
  • File Upload: For custom branding requests

📧 Email System

  • Order Confirmations: HTML email templates for order placement
  • Request Confirmations: Templates for sending requests

Technologies

Core Technologies

  • Backend: PHP 7+ (Vanilla, no framework)
  • Frontend: HTML5, SCSS, Vanilla JavaScript
  • Database: MySQL (assumed, based on typical XAMPP setup)

Libraries & Tools

  • Swiper.js: For image carousels and sliders
  • Lightbox.js: For image galleries
  • SCSS: For styling with variables, mixins, and modular structure

Development Tools

  • XAMPP: Local development server (Apache, MySQL, PHP)
  • VS Code: Recommended editor
  • Git: Version control

Installation

Prerequisites

  • XAMPP (or similar Apache/MySQL/PHP stack)
  • Web Browser (Chrome, Firefox, Safari, Edge)
  • Git (optional, for cloning)

Setup Steps

  1. Clone or Download the Repository

    git clone <repository-url>
    cd SPARK_PROMOTIONS

    Or download and extract the ZIP file.

  2. Move to XAMPP htdocs

    • Copy the project folder to C:\xampp\htdocs\
    • Ensure the folder is named SPARK_PROMOTIONS
  3. Start XAMPP Services

    • Open XAMPP Control Panel
    • Start Apache and MySQL services
  4. Database Setup (if applicable)

  5. Access the Website

    • Open your browser and navigate to: http://localhost/SPARK_PROMOTIONS
    • The home page should load at index.php

Configuration

  • Check components/ for any configuration files
  • Update database connection settings if needed (look for PHP files with database connections)
  • Ensure file permissions allow PHP to read/write necessary directories

Project Structure

SPARK_PROMOTIONS/
├── assets/                 # Static assets (icons, images)
│   ├── icons/             # SVG icons and favicons
│   └── img/               # Image assets (banners, products, etc.)
├── components/            # Reusable PHP components
│   ├── article/           # Article page components
│   ├── cart/              # Cart step components
│   ├── category/          # Category page components
│   ├── clients_panel/     # Client panel components
│   ├── common/            # Shared components (aside, pagination)
│   ├── contact/           # Contact page components
│   ├── login/             # Login components
│   ├── main_page/         # Home page sections
│   ├── products_card/     # Product card components
│   ├── register/          # Registration components
│   └── send_request/      # Request form components
├── css/                   # Compiled CSS files
├── email_confirmations/   # HTML email templates
├── gif/                   # Presentation GIFs
├── js/                    # JavaScript files
│   ├── cart/              # Cart-specific scripts
│   ├── category/          # Category page scripts
│   └── products_page/     # Product page scripts
├── scss/                  # SCSS source files
│   ├── mixins/            # SCSS mixins
│   └── [component]/       # Component-specific styles
├── screenshots/           # Website screenshots
└── *.php                  # Main PHP pages

Usage

For Users

  1. Browse Products: Visit the home page or category pages
  2. Add to Cart: Click "Add to Cart" on product pages
  3. Checkout: Follow the 3-step cart process
  4. Register/Login: Create an account to access the client panel
  5. Manage Account: View orders, update addresses, manage favorites

For Developers

  • Development: Edit SCSS files in scss/ and compile to css/
  • Adding Pages: Create new PHP files and corresponding components
  • Styling: Use the modular SCSS structure with variables and mixins
  • JavaScript: Add vanilla JS files in js/ directory

Screenshots

E-commerce Website Screenshots

Home Page Product Catalog Product Details Shopping Cart Checkout Step 1 Checkout Step 2 Checkout Step 3 Client Panel Order History Personal Data Contact Page About Us Our Team Mobile View Mobile Menu

E-mail Confirmations Screenshots

Order Confirmation Email Request Confirmation Email

GIF Presentations

Desktop Website Presentation

Wait until the GIF file loads (42.6MB)

Desktop GIF

Mobile Website Presentation

Wait until the GIF file loads (47.7MB)

Mobile GIF

License

This work is licensed under a Creative Commons Non-Commercial (CC BY-NC) License - not for commercial use.

CC BY-NC License

See LICENSE.md for full license details.


Spark Promotions - Professional promotional products website.

This work is licensed under a Creative Commons Non-Commercial (CC BY-NC) License (not for commercial use)

About

Spark Promotions website ➡️ E-commerce dynamic website written using PHP, SCSS, Vanilla JavaScript, HTML5 with Swiper.js. Website contains products page, cart page, login, register, offerts & account profiles/settings pages.

Topics

Resources

License

Stars

20 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors