A warm, cozy affiliate storefront built for apartment décor. Customers browse products and click through to Amazon (or other retailers) via your affiliate links.
/
├── index.html ← Homepage (Hero, Shop by Room, Featured, About, Newsletter)
├── room.html ← Dynamic room page (filters products by ?room= URL parameter)
├── blog.html ← Décor tips & inspiration
├── privacy.html ← Privacy policy (legally required)
├── disclosure.html ← FTC affiliate disclosure (legally required)
├── styles.css ← All styling — warm earthy theme
├── products.js ← YOUR PRODUCT DATA — edit this file to add/change products
└── main.js ← Site interactivity (nav, newsletter, rendering)
Open products.js and add an entry to the PRODUCTS array:
{
id: 13, // Unique number (increment from last)
name: "Your Product Name",
room: "living", // living | bedroom | kitchen | bathroom | desk | entryway
roomLabel: "Living Room", // Display label for the room
price: "$45",
description: "Short description of the product.",
badge: "New", // Optional: "New" | "Best Seller" | "Staff Pick" | null
image: "https://...", // Product image URL
affiliateUrl: "https://www.amazon.com/dp/PRODUCT_ID/?tag=YOUR-TAG"
}
affiliateUrlhttps://yourusername.github.io/repo-name/wwwyourusername.github.io185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
Search for “Nestled” in all files and replace with your brand name.
Edit the CSS variables at the top of styles.css:
:root {
--terracotta: #B5623E; /* Primary accent color */
--bark: #6B4C38; /* Secondary/dark accent */
--cream: #F7F3EE; /* Background warm tone */
--espresso: #2E1F14; /* Dark text */
}
In main.js, find the newsletter form handler and replace with your email service:
Add this snippet before </head> in each HTML file (replace GA_MEASUREMENT_ID):
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GA_MEASUREMENT_ID');
</script>
disclosure.html — FTC-compliant affiliate disclosureprivacy.html — Privacy policyhello@[yourdomain].comBeyond Amazon, add products from:
Just add products to products.js with their respective affiliate URLs.