The fashion industry in the United States is one of the most dynamic and diverse in the world. From streetwear in New York City to laid-back vibes in California, American fashion outfits reflect a beautiful fusion of personal expression, cultural diversity, and global trends. Whether you’re walking the city streets, attending a formal event, or enjoying a casual day out, fashion in the USA offers something for everyone.
1. Everyday Casual – The All-American Style π§’π
Casual wear is a staple in American wardrobes. Most Americans prioritize comfort with style, often choosing:
Jeans and T-shirts
Sneakers
Hoodies and sweatshirts
Baseball caps
Brands like Levi’s, Nike, and Gap dominate the casual scene. The denim culture, especially blue jeans, is deeply rooted in American fashion and is worn across all age groups.
2. Office & Business Wear – Smart and Sophisticated πΌπ
In the professional world, Americans tend to go for clean, structured, and polished outfits. Depending on the workplace, business attire can range from:
Suits and blazers
Blouses and pencil skirts
Chinos and button-down shirts
With the rise of hybrid work models, business casual is becoming increasingly popular, blending formal pieces with comfort-focused garments.
3. Streetwear – Urban Culture on Display π§’π
Street fashion in the USA has global influence. Inspired by hip-hop, skate culture, and youth movements, streetwear includes:
Oversized hoodies
Graphic T-shirts
Cargo pants
Chunky sneakers
Brands like Supreme, Off-White, and Fear of God dominate this scene, especially in cities like New York, Los Angeles, and Chicago.
4. Seasonal Fashion – Dressing for the Weather ❄️☀️π
The USA experiences all four seasons, and fashion adapts accordingly:
Winter: Layering with coats, scarves, boots, and thermal wear.
Spring: Lighter jackets, floral prints, and pastel tones.
Summer: Shorts, tank tops, sundresses, and sandals.
Fall: Cozy sweaters, denim jackets, and ankle boots.
Americans love to update their wardrobe each season, especially during back-to-school and holiday sales.
5. Cultural Influence – Diversity in Fashion π✨
The USA is a melting pot of cultures, and this is clearly visible in fashion. People from different ethnic backgrounds bring unique traditional elements into modern styles. Examples include:
Boho styles influenced by Native American patterns
African prints in streetwear
Asian-inspired silk garments
Latino color palettes and patterns
Fashion shows and cultural festivals often celebrate this diversity with pride.
6. Sustainable and Ethical Fashion – A Growing Trend π±♻️
American consumers are becoming more conscious of their fashion choices. There’s a growing shift toward:
Eco-friendly brands
Thrift shopping and vintage wear
Locally-made and fair trade clothing
Brands like Patagonia, Everlane, and Reformation lead the way in sustainable American fashion.
7. Celebrity and Influencer Impact π₯π
From Hollywood red carpets to TikTok trends, celebrities and influencers shape a lot of what people wear. Outfits worn by stars like BeyoncΓ©, Zendaya, and TimothΓ©e Chalamet quickly become viral and are often replicated in affordable versions across stores.
Conclusion
Fashion outfits in the USA are not just about clothing—they're a reflection of personality, identity, and lifestyle. The American fashion scene is constantly evolving, embracing new trends while celebrating individual freedom and cultural heritage. Whether you love minimalism, bold statements, or a mix of both, the USA’s fashion world welcomes your unique style.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Outfit Collections USA - Find Your Style</title>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <!-- For Hamburger Icon -->
<style>
:root {
--primary-color: #2c3e50; /* Dark Blue/Grey */
--secondary-color: #e74c3c; /* Bright Red/Orange */
--accent-color: #3498db; /* Bright Blue */
--light-bg: #f4f6f7; /* Slightly lighter bg */
--text-color: #333;
--white: #ffffff;
--card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
--button-hover-bg: #c0392b; /* Darker shade of secondary */
--header-height: 70px;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Montserrat', sans-serif;
line-height: 1.7;
color: var(--text-color);
background-color: var(--light-bg);
overflow-x: hidden;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
/* --- Header & Navigation --- */
header {
background: var(--white);
color: var(--primary-color);
padding: 0 1em;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
height: var(--header-height);
display: flex;
align-items: center;
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.logo {
font-family: 'Playfair Display', serif;
font-size: 1.8em;
color: var(--primary-color);
text-decoration: none;
}
.logo span {
color: var(--secondary-color);
}
.main-nav ul {
list-style: none;
display: flex;
}
.main-nav li {
margin-left: 25px;
}
.main-nav a {
text-decoration: none;
color: var(--primary-color);
font-weight: 600;
font-size: 0.95em;
padding: 5px 0;
position: relative;
transition: color 0.3s ease;
}
.main-nav a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background-color: var(--secondary-color);
transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.active {
color: var(--secondary-color);
}
.main-nav a:hover::after, .main-nav a.active::after {
width: 100%;
}
.hamburger-menu {
display: none; /* Hidden by default, shown on mobile */
font-size: 1.8em;
color: var(--primary-color);
cursor: pointer;
background: none;
border: none;
}
/* --- Hero Slider --- */
.hero-slider {
width: 100%;
height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
max-height: 650px; /* Max height for very tall screens */
position: relative;
overflow: hidden;
margin-top: var(--header-height); /* Offset for fixed header */
background-color: var(--primary-color); /* Fallback bg */
}
.slider-wrapper {
display: flex;
height: 100%;
transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth transition */
}
.slide {
min-width: 100%;
height: 100%;
position: relative;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.slide::before { /* Dark overlay for text readability */
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
}
.slide-content {
position: relative;
z-index: 2;
color: var(--white);
max-width: 700px;
padding: 20px;
}
.slide-content h2 {
font-family: 'Playfair Display', serif;
font-size: 3em;
margin-bottom: 0.3em;
line-height: 1.2;
animation: slideUp 0.8s 0.2s backwards;
}
.slide-content p {
font-size: 1.2em;
margin-bottom: 1.5em;
animation: slideUp 0.8s 0.4s backwards;
}
.slide-content .cta-button { /* Re-using cta-button style */
animation: slideUp 0.8s 0.6s backwards;
}
.slider-nav {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
display: flex;
}
.slider-nav button, .slider-arrow {
background: rgba(255,255,255,0.2);
border: none;
color: var(--white);
padding: 10px 15px;
margin: 0 5px;
cursor: pointer;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2em;
transition: background-color 0.3s ease;
}
.slider-nav button:hover, .slider-arrow:hover {
background: var(--secondary-color);
}
.slider-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 3;
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
z-index: 3;
}
.slider-dots .dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255,255,255,0.5);
margin: 0 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.slider-dots .dot.active {
background: var(--white);
}
/* --- Section Title --- */
.section-title {
text-align: center;
margin-bottom: 2.5em;
padding-top: 3em; /* Add padding for sections below fixed header/slider */
}
.section-title h2 {
font-family: 'Playfair Display', serif;
font-size: 2.5em;
color: var(--primary-color);
margin-bottom: 0.3em;
position: relative;
display: inline-block;
}
.section-title h2::after {
content: '';
display: block;
width: 60px;
height: 3px;
background: var(--secondary-color);
margin: 0.3em auto 0;
}
.section-title p {
font-size: 1.1em;
color: #555;
max-width: 600px;
margin: 0 auto;
}
/* --- Outfit Collections (minor adjustments) --- */
#outfit-collections-section { /* Renamed for clarity */
padding-bottom: 3em;
}
#outfit-collections {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2.5em; /* Increased gap */
}
.collection-card {
background: var(--white);
border-radius: 10px; /* Slightly less rounded */
box-shadow: var(--card-shadow);
overflow: hidden;
position: relative;
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
display: flex;
flex-direction: column;
}
.collection-card:hover {
transform: translateY(-12px) scale(1.02); /* Enhanced hover */
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.collection-card img {
width: 100%;
height: 380px; /* Increased height */
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.collection-card:hover img {
transform: scale(1.08); /* More zoom on image */
}
.card-content {
padding: 1.8em 1.5em; /* Adjusted padding */
text-align: center;
flex-grow: 1; /* Allows button to be at bottom if content varies */
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card-content h3 {
font-family: 'Playfair Display', serif;
font-size: 1.7em;
margin-top: 0;
margin-bottom: 0.7em;
color: var(--primary-color);
}
/* --- CTA Button (re-used for slider and cards) --- */
.cta-button {
display: inline-block;
background-color: var(--secondary-color);
color: var(--white) !important; /* Ensure white text */
padding: 0.9em 2em;
text-decoration: none;
border-radius: 50px;
font-weight: 600; /* Bolder */
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.8px; /* More spacing */
position: relative;
overflow: hidden;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
z-index: 1;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
align-self: center; /* Center button in flex container */
margin-top: 1em; /* Space above button */
}
.cta-button:hover {
background-color: var(--button-hover-bg);
transform: translateY(-3px) scale(1.03); /* Lift effect */
box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4); /* Colored shadow */
}
.cta-button .shine {
position: absolute;
top: -50%;
left: -150%;
width: 70%;
height: 200%;
background: rgba(255, 255, 255, 0.2);
transform: rotate(35deg);
transition: left 0.7s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother shine */
pointer-events: none;
}
.collection-card:hover .cta-button .shine, .slide:hover .cta-button .shine {
left: 150%;
}
/* --- Footer --- */
footer {
background: var(--primary-color);
color: var(--white);
text-align: center;
padding: 2.5em 0;
margin-top: 3em;
}
footer p {
margin: 0.4em 0;
opacity: 0.85;
font-size: 0.9em;
}
footer .logo { /* Footer logo style */
font-size: 1.5em;
color: var(--white);
margin-bottom: 0.5em;
display: inline-block;
}
footer .logo span {
color: var(--secondary-color);
}
/* --- Animations --- */
@keyframes slideUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
.hero-slider { height: calc(80vh - var(--header-height)); max-height: 550px;}
.slide-content h2 { font-size: 2.5em; }
.slide-content p { font-size: 1.1em; }
#outfit-collections { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
.header-container { padding: 0 15px; }
.main-nav {
position: absolute;
top: var(--header-height);
left: 0;
width: 100%;
background-color: var(--white);
flex-direction: column;
align-items: center;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
max-height: 0;
overflow: hidden;
transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
}
.main-nav.active {
max-height: 500px; /* Arbitrary large enough value */
padding-bottom: 1em;
}
.main-nav ul {
flex-direction: column;
width: 100%;
padding-top: 1em;
}
.main-nav li {
margin: 0;
width: 100%;
text-align: center;
}
.main-nav a {
display: block;
padding: 1em;
border-bottom: 1px solid var(--light-bg);
}
.main-nav a::after { display: none; } /* Remove underline for mobile nav items */
.main-nav li:last-child a { border-bottom: none; }
.hamburger-menu {
display: block;
}
.logo { font-size: 1.6em; }
.hero-slider { height: calc(70vh - var(--header-height)); max-height: 450px;}
.slide-content h2 { font-size: 2em; }
.slide-content p { font-size: 1em; }
.slider-arrow { padding: 8px 12px; font-size: 1em; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.section-title h2 { font-size: 2.2em; }
.collection-card img { height: 320px; }
.card-content h3 { font-size: 1.6em; }
.cta-button { padding: 0.8em 1.8em; font-size: 0.85em; }
}
@media (max-width: 480px) {
.logo { font-size: 1.4em; }
.hero-slider { height: calc(60vh - var(--header-height)); max-height: 400px; }
.slide-content h2 { font-size: 1.7em; }
.slide-content p { font-size: 0.9em; margin-bottom: 1em; }
.slide-content .cta-button { font-size: 0.8em; padding: 0.7em 1.5em; }
.slider-dots { bottom: 10px; }
.slider-dots .dot { width: 10px; height: 10px; }
.section-title h2 { font-size: 1.9em; }
.section-title p { font-size: 1em; }
#outfit-collections { grid-template-columns: 1fr; gap: 2em; }
.collection-card img { height: 300px; }
}
</style>
</head>
<body>
<header>
<div class="container header-container">
<a href="#" class="logo">Fashion<span>Forward</span></a>
<nav class="main-nav" id="mainNav">
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#outfit-collections-section">Collections</a></li>
<li><a href="https://www.youtube.com/@techpk1249">Men</a></li>
<li><a href="https://www.youtube.com/@techpk1249">Women</a></li>
<li><a href="https://www.youtube.com/@techpk1249">Kids</a></li>
<li><a href="https://www.youtube.com/@techpk1249">Sale</a></li>
</ul>
</nav>
<button class="hamburger-menu" id="hamburgerMenu" aria-label="Toggle menu" aria-expanded="false">
<i class="fas fa-bars"></i>
</button>
</div>
</header>
<main>
<section class="hero-slider" id="heroSlider">
<div class="slider-wrapper" id="sliderWrapper">
<!-- Slides will be injected by JavaScript -->
</div>
<button class="slider-arrow prev" id="slidePrev" aria-label="Previous slide"><i class="fas fa-chevron-left"></i></button>
<button class="slider-arrow next" id="slideNext" aria-label="Next slide"><i class="fas fa-chevron-right"></i></button>
<div class="slider-dots" id="sliderDots">
<!-- Dots will be injected by JavaScript -->
</div>
</section>
<section id="outfit-collections-section" class="container">
<div class="section-title">
<h2>Our Curated Collections</h2>
<p>Discover the most sought-after styles and outfit inspirations for every occasion. Handpicked for the fashion-savvy.</p>
</div>
<div id="outfit-collections">
<!-- Collection items will be dynamically inserted here by JS -->
</div>
</section>
</main>
<footer>
<div class="container">
<a href="#" class="logo">Fashion<span>Forward</span></a>
<p>© <span id="currentYear"></span> FashionForward USA. All Rights Reserved.</p>
<p>Your Ultimate Destination for Style Inspiration & Trends</p>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
// --- Hamburger Menu ---
const hamburgerMenu = document.getElementById('hamburgerMenu');
const mainNav = document.getElementById('mainNav');
if (hamburgerMenu && mainNav) {
hamburgerMenu.addEventListener('click', () => {
mainNav.classList.toggle('active');
const isExpanded = mainNav.classList.contains('active');
hamburgerMenu.setAttribute('aria-expanded', isExpanded);
hamburgerMenu.innerHTML = isExpanded ? '<i class="fas fa-times"></i>' : '<i class="fas fa-bars"></i>';
});
}
// --- Dynamic Year for Footer ---
const currentYearSpan = document.getElementById('currentYear');
if (currentYearSpan) {
currentYearSpan.textContent = new Date().getFullYear();
}
// --- Slider Data ---
const sliderData = [
{
title: "Urban Edge: Street Style",
description: "Explore the latest trends in street fashion. Bold, expressive, and undeniably cool.",
image: "https://images.pexels.com/photos/1183266/pexels-photo-1183266.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", // Replace
link: "https://www.youtube.com/@techpk1249",
buttonText: "Shop Streetwear"
},
{
title: "Effortless Summer Looks",
description: "Light, breezy, and perfect for sunny days. Discover dresses, shorts, and more.",
image: "https://images.pexels.com/photos/3775087/pexels-photo-3775087.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", // Replace
link: "https://www.youtube.com/@techpk1249",
buttonText: "Discover Summer"
},
{
title: "Power Dressing: Office Chic",
description: "Command attention with sophisticated blazers, tailored trousers, and elegant blouses.",
image: "https://images.pexels.com/photos/7139900/pexels-photo-7139900.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", // Replace
link: "https://example.com/office-chic",
buttonText: "View Workwear"
}
];
// --- Slider Functionality ---
const sliderWrapper = document.getElementById('sliderWrapper');
const slidePrev = document.getElementById('slidePrev');
const slideNext = document.getElementById('slideNext');
const sliderDotsContainer = document.getElementById('sliderDots');
let currentSlide = 0;
let autoSlideInterval;
function createSlide(item) {
const slide = document.createElement('div');
slide.classList.add('slide');
slide.style.backgroundImage = `url('${item.image}')`;
const content = document.createElement('div');
content.classList.add('slide-content');
const title = document.createElement('h2');
title.textContent = item.title;
const description = document.createElement('p');
description.textContent = item.description;
const button = document.createElement('a');
button.href = item.link;
button.target = "_blank";
button.classList.add('cta-button');
button.textContent = item.buttonText || "Explore Now";
const shineSpan = document.createElement('span');
shineSpan.classList.add('shine');
button.appendChild(shineSpan);
content.appendChild(title);
content.appendChild(description);
content.appendChild(button);
slide.appendChild(content);
return slide;
}
function updateSlider() {
if (!sliderWrapper || sliderData.length === 0) return;
sliderWrapper.style.transform = `translateX(-${currentSlide * 100}%)`;
// Update dots
const dots = sliderDotsContainer.querySelectorAll('.dot');
dots.forEach((dot, index) => {
dot.classList.toggle('active', index === currentSlide);
});
}
function nextSlide() {
currentSlide = (currentSlide + 1) % sliderData.length;
updateSlider();
}
function prevSlide() {
currentSlide = (currentSlide - 1 + sliderData.length) % sliderData.length;
updateSlider();
}
function goToSlide(index) {
currentSlide = index;
updateSlider();
resetAutoSlide();
}
function startAutoSlide() {
stopAutoSlide(); // Clear existing interval
autoSlideInterval = setInterval(nextSlide, 5000); // Change slide every 5 seconds
}
function stopAutoSlide() {
clearInterval(autoSlideInterval);
}
function resetAutoSlide() {
stopAutoSlide();
startAutoSlide();
}
if (sliderWrapper && sliderData.length > 0) {
sliderData.forEach((item, index) => {
sliderWrapper.appendChild(createSlide(item));
// Create dots
const dot = document.createElement('button');
dot.classList.add('dot');
dot.setAttribute('aria-label', `Go to slide ${index + 1}`);
dot.addEventListener('click', () => goToSlide(index));
sliderDotsContainer.appendChild(dot);
});
updateSlider(); // Initial setup for dots
startAutoSlide();
slideNext.addEventListener('click', () => {
nextSlide();
resetAutoSlide();
});
slidePrev.addEventListener('click', () => {
prevSlide();
resetAutoSlide();
});
// Pause on hover
const heroSliderElement = document.getElementById('heroSlider');
if (heroSliderElement) {
heroSliderElement.addEventListener('mouseenter', stopAutoSlide);
heroSliderElement.addEventListener('mouseleave', startAutoSlide);
}
} else if (sliderWrapper) { // Hide controls if no slides
if(slidePrev) slidePrev.style.display = 'none';
if(slideNext) slideNext.style.display = 'none';
if(sliderDotsContainer) sliderDotsContainer.style.display = 'none';
}
// --- Outfit Collections Data & Rendering (similar to before) ---
const collectionsContainer = document.getElementById('outfit-collections');
const outfitData = [
{
name: "Casual Everyday",
image: "https://images.pexels.com/photos/428338/pexels-photo-428338.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&dpr=1", // Replace
alt: "Woman in casual jeans and t-shirt",
link: "https://www.youtube.com/@techpk1249"
},
{
name: "Active Lifestyle",
image: "https://images.pexels.com/photos/4162491/pexels-photo-4162491.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&dpr=1", // Replace
alt: "Person in activewear",
link: "https://www.youtube.com/@techpk1249"
},
{
name: "Evening Glamour",
image: "https://images.pexels.com/photos/1375736/pexels-photo-1375736.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&dpr=1", // Replace
alt: "Woman in an elegant evening gown",
link: "https://www.youtube.com/@techpk1249"
},
{
name: "Men's Formal Wear",
image: "https://images.pexels.com/photos/842811/pexels-photo-842811.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&dpr=1", // Replace
alt: "Man in a sharp suit",
link: "https://www.youtube.com/@techpk1249"
},
{
name: "Kids' Playtime Fun",
image: "https://plus.unsplash.com/premium_photo-1697612943610-fc079bab10cf?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", // Replace
alt: "Children in colorful play clothes",
link: "https://www.youtube.com/@techpk1249"
},
{
name: "Vintage Revival",
image: "https://images.pexels.com/photos/291762/pexels-photo-291762.jpeg?auto=compress&cs=tinysrgb&w=600&h=750&dpr=1", // Replace
alt: "Person in a vintage-inspired outfit",
link: "https://www.youtube.com/@techpk1249"
}
];
function createCollectionCard(item) {
const card = document.createElement('div');
card.classList.add('collection-card');
const img = document.createElement('img');
img.src = item.image;
img.alt = item.alt;
img.loading = 'lazy'; // Lazy load images
const content = document.createElement('div');
content.classList.add('card-content');
const title = document.createElement('h3');
title.textContent = item.name;
const button = document.createElement('a');
button.href = item.link;
button.target = "_blank";
button.classList.add('cta-button');
button.textContent = "Find Complete Range";
const shineSpan = document.createElement('span');
shineSpan.classList.add('shine');
button.appendChild(shineSpan);
content.appendChild(title);
content.appendChild(button); // Button now directly in content
card.appendChild(img);
card.appendChild(content);
return card;
}
if (collectionsContainer) {
outfitData.forEach(item => {
const cardElement = createCollectionCard(item);
collectionsContainer.appendChild(cardElement);
});
}
// Smooth scroll for internal links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
if (targetElement) {
e.preventDefault();
// Close mobile nav if open
if (mainNav.classList.contains('active')) {
mainNav.classList.remove('active');
hamburgerMenu.setAttribute('aria-expanded', 'false');
hamburgerMenu.innerHTML = '<i class="fas fa-bars"></i>';
}
// Smooth scroll, accounting for fixed header
const headerOffset = document.querySelector('header').offsetHeight || 70;
const elementPosition = targetElement.getBoundingClientRect().top;
const offsetPosition = elementPosition + window.pageYOffset - headerOffset;
window.scrollTo({
top: offsetPosition,
behavior: 'smooth'
});
// Optionally update active nav link
document.querySelectorAll('.main-nav a').forEach(navLink => navLink.classList.remove('active'));
if (!this.closest('.slide-content')) { // Don't mark slider buttons as active nav
this.classList.add('active');
}
}
});
});
});
</script>
</body>
</html>
0 Comments
If you have any question you can ask me feelfree.