Home প্রিমিয়াম পোস্ট APPS STORE NEW WEBSITE TO APP কোর্স

প্রম্পট এবং কোড দেখুন

AI Test Lab

Test your prompts directly on official platforms.

E-Commerce ওয়েবসাইট রেডি কোড।

popular

 



✦ CODE SNIPPET
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gdata/blx' xmlns:data='http://www.google.com/2005/gdata/widgets' xmlns:expr='http://www.google.com/2005/gdata/express'>
<head>
<meta charset='UTF-8'/>
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/>
<title><data:blog.pageTitle/></title>

<b:skin><![CDATA[
:root {
  --primary: #f97316; /* Daraz Orange Theme Accent */
  --primary-dark: #ea580c;
  --text: #1f2937;
  --bg: #f3f4f6;
  --white: #ffffff;
  --gray: #9ca3af;
  --border: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }

/* Header & Nav */
header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 15px; align-items: center; }
.action-btn { background: none; border: none; font-size: 18px; cursor: pointer; position: relative; color: var(--text); }
.badge-count { position: absolute; top: -8px; right: -10px; background: var(--primary); color: var(--white); font-size: 11px; padding: 2px 6px; border-radius: 50%; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #f97316 0%, #fb923c 100%); color: var(--white); padding: 60px 20px; text-align: center; }
.hero h1 { font-size: 40px; margin-bottom: 15px; font-weight: 800; }
.hero p { font-size: 18px; margin-bottom: 25px; opacity: 0.95; }
.btn { background: var(--white); color: var(--primary); padding: 12px 25px; border-radius: 6px; text-decoration: none; font-weight: 600; display: inline-block; transition: transform 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn:hover { transform: translateY(-2px); }

/* Main Container & Grid */
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; border-left: 4px solid var(--primary); padding-left: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Product Card - Price Free / Affiliate Design */
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.product-thumb { width: 100%; height: 220px; object-fit: cover; background: #eee; display: block; }
.product-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title:hover { color: var(--primary); }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-btn { flex: 1; padding: 10px; text-align: center; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; }
.btn-details { background: #ffedd5; color: #c2410c; }
.btn-details:hover { background: #fed7aa; }
.btn-buy { background: var(--primary); color: var(--white); }
.btn-buy:hover { background: var(--primary-dark); }

/* Individual Post / Product Page Styling */
.post-container { background: var(--white); padding: 30px; border-radius: 12px; border: 1px solid var(--border); margin-top: 20px; }
.post-title-main { font-size: 28px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.post-body { font-size: 16px; color: #4b5563; line-height: 1.8; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }

/* Layout Widgets Area Style */
.sidebar-widgets { margin-top: 40px; background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border); }

/* Footer */
footer { background: #111827; color: #9ca3af; padding: 40px 20px; text-align: center; margin-top: 50px; }
footer p { font-size: 14px; }

@media(max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 28px; }
}
]]></b:skin>
</head>

<body>

  <!-- Header Area -->
  <header>
    <div class='nav-container'>
      <a class='logo' expr:href='data:blog.homepageUrl'><data:blog.title/></a>
      <ul class='nav-links'>
        <li><a expr:href='data:blog.homepageUrl'>Home</a></li>
        <li><a expr:href='data:blog.homepageUrl'>Shop</a></li>
      </ul>
      <div class='header-actions'>
        <button class='action-btn' title='Wishlist'>♡<span class='badge-count' id='wishlist-count'>0</span></button>
        <button class='action-btn' title='Cart'>🛒<span class='badge-count' id='cart-count'>0</span></button>
      </div>
    </div>
  </header>

  <!-- Hero Banner -->
  <div class='hero'>
    <div class='container'>
      <h1>Best Daraz Deals &amp; Offers</h1>
      <p>Discover top-rated products handpicked for you. Shop directly through verified links.</p>
      <a class='btn' href='#shop-section'>Explore Products</a>
    </div>
  </div>

  <!-- Main Content & Blogger Post Loop -->
  <div class='container' id='shop-section'>
    
    <b:section id='main-content' class='main-content' showaddelement='yes'>
      <b:widget id='Blog1' locked='false' title='Blog Posts' type='Blog' version='2'>
        <b:includable id='main'>
          
          <!-- HOME / INDEX PAGE VIEW -->
          <b:if cond='data:blog.pageType == "index" or data:blog.pageType == "archive"'>
            <h2 class='section-title'>Latest Products</h2>
            <div class='product-grid'>
              <b:loop values='data:posts' var='post'>
                <div class='product-card'>
                  <b:if cond='data:post.featuredImage'>
                    <img class='product-thumb' expr:alt='data:post.title' expr:src='data:post.featuredImage'/>
                  <b:else/>
                    <img class='product-thumb' alt='Product Image' src='https://via.placeholder.com/300x220?text=Daraz+Product'/>
                  </b:if>
                  
                  <div class='product-info'>
                    <a class='product-title' expr:href='data:post.url'><data:post.title/></a>
                    <div class='card-actions'>
                      <a class='card-btn btn-details' expr:href='data:post.url'>Details</a>
                      <a class='card-btn btn-buy' expr:href='data:post.url'>View Deal</a>
                    </div>
                  </div>
                </div>
              </b:loop>
            </div>
          
          <!-- INDIVIDUAL POST / PRODUCT DETAILS PAGE VIEW -->
          <b:else/>
            <b:loop values='data:posts' var='post'>
              <div class='post-container'>
                <h1 class='post-title-main'><data:post.title/></h1>
                <div class='post-body'>
                  <data:post.body/>
                </div>
              </div>
            </b:loop>
          </b:if>

        </b:includable>
      </b:widget>
    </b:section>

    <!-- Extra Widget Area for Layout -->
    <div class='sidebar-widgets'>
      <b:section id='sidebar-section' class='sidebar' name='Sidebar Widgets' showaddelement='yes'>
        <!-- লেআউট থেকে উইজেট অ্যাড করা যাবে -->
      </b:section>
    </div>
  </div>

  <!-- Footer -->
  <footer>
    <div class='container'>
      <p>&#169; 2026 <data:blog.title/>. Powered by Blogger &amp; Affiliate Marketing.</p>
    </div>
  </footer>

</body>
</html>
বিজ্ঞাপন
পোস্ট করেছেন

Tanbin Farazi