Blogger কোড কপি করুন

📋 Blogger Login System - কোড কপি করুন

✅ কিভাবে ব্যবহার করবেন:

  1. "কোড কপি করুন" বাটনে ক্লিক করুন
  2. Blogger Dashboard → PagesNew Page এ যান
  3. পেজের নাম দিন (যেমন: "Private Area" বা "Crypto Invest")
  4. HTML View তে ক্লিক করুন (pencil icon এর পাশে <> চিহ্ন)
  5. কপি করা কোড Paste করুন
  6. Publish করুন
<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>লগইন সিস্টেম</title>
    <style>
        body {
            font-family: 'SolaimanLipi', 'Noto Sans Bengali', 'Kalpurush', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 10px;
        }
        
        .container {
            background: white;
            padding: 25px 15px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            max-width: 900px;
            width: 100%;
            margin: 10px;
        }
        
        h2 {
            text-align: center;
            color: #333;
            margin-bottom: 25px;
            font-size: 24px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-weight: 500;
        }
        
        input {
            width: 100%;
            padding: 14px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            transition: border 0.3s;
            box-sizing: border-box;
            -webkit-appearance: none;
            appearance: none;
        }
        
        input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        button {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        
        button:hover {
            transform: translateY(-2px);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        .error {
            color: #e74c3c;
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
        }
        
        .success {
            color: #27ae60;
            text-align: center;
            margin-top: 15px;
        }
        
        #login-form {
            display: block;
        }
        
        #protected-content {
            display: none;
            font-size: 18px;
        }
        
        #protected-content h2 {
            font-size: 28px;
        }
        
        #protected-content p {
            font-size: 18px;
            line-height: 1.6;
        }
        
        .content-box {
            background: #ffffff;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            font-size: 16px;
            line-height: 2;
            min-height: 500px;
            max-height: none;
            overflow-y: visible;
            word-wrap: break-word;
            overflow-wrap: break-word;
            border: 1px solid #e0e0e0;
        }
        
        .content-box h3 {
            font-size: 20px;
            margin-bottom: 20px;
            margin-top: 0;
            color: #333;
            font-weight: 600;
        }
        
        .content-box h4 {
            font-size: 18px;
            margin-top: 25px;
            margin-bottom: 15px;
            color: #444;
            font-weight: 600;
        }
        
        .content-box p {
            font-size: 16px;
            margin-bottom: 20px;
            color: #333;
            line-height: 2;
        }
        
        .content-box ul {
            font-size: 16px;
            padding-left: 20px;
            margin-bottom: 20px;
        }
        
        .content-box li {
            margin-bottom: 12px;
            line-height: 1.8;
        }
        
        .content-box strong {
            font-weight: 600;
            color: #000;
        }
        
        .highlight {
            background-color: #fff9e6;
            padding: 15px;
            border-left: 4px solid #ffc107;
            margin: 15px 0;
            border-radius: 5px;
        }
        
        .divider {
            border-top: 2px solid #e0e0e0;
            margin: 25px 0;
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            body {
                padding: 5px;
            }
            
            .container {
                padding: 20px 12px;
                width: 100%;
                margin: 5px;
                border-radius: 10px;
            }
            
            h2 {
                font-size: 20px;
                margin-bottom: 20px;
            }
            
            .form-group {
                margin-bottom: 15px;
            }
            
            label {
                font-size: 15px;
            }
            
            input {
                padding: 12px;
                font-size: 16px;
            }
            
            button {
                padding: 14px;
                font-size: 17px;
            }
            
            .content-box {
                padding: 15px;
                font-size: 15px;
                min-height: auto;
                margin-top: 15px;
            }
            
            .content-box h3 {
                font-size: 18px;
            }
            
            .content-box h4 {
                font-size: 16px;
            }
            
            .content-box p {
                font-size: 15px;
            }
            
            .content-box ul {
                font-size: 15px;
                padding-left: 18px;
            }
            
            .logout-btn {
                margin-top: 15px;
            }
        }
        
        /* Small Mobile */
        @media (max-width: 480px) {
            .container {
                padding: 15px 10px;
            }
            
            h2 {
                font-size: 18px;
            }
            
            .content-box {
                padding: 12px;
            }
        }
        
        .logout-btn {
            background: #e74c3c;
            margin-top: 20px;
        }
        
        .logout-btn:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }
        
        .logout-btn:active {
            transform: translateY(0);
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- লগইন ফর্ম -->
        <div id="login-form">
            <h2>🔐 লগইন করুন</h2>
            <div class="form-group">
                <label for="username">ইউজারনেম:</label>
                <input type="text" id="username" placeholder="আপনার ইউজারনেম দিন">
            </div>
            <div class="form-group">
                <label for="password">পাসওয়ার্ড:</label>
                <input type="password" id="password" placeholder="আপনার পাসওয়ার্ড দিন">
            </div>
            <button onclick="login()">লগইন</button>
            <p class="error" id="error-msg"></p>
        </div>

        <!-- প্রাইভেট কন্টেন্ট -->
        <div id="protected-content">
            <h2>✅ স্বাগতম!</h2>
            <p>আপনি সফলভাবে লগইন করেছেন।</p>
            
            <div class="content-box">
                <h3>এখান থেকে আপনার কন্টেন্ট লিখুন।</p>
                
                <p><strong>শুভকামনা! 🚀</strong></p>
            </div>
            
            <button class="logout-btn" onclick="logout()">লগআউট</button>
        </div>
    </div>

    <script>
        // এখানে আপনার ইউজারনেম এবং পাসওয়ার্ড সেট করুন
        const correctUsername = 'hasib';  // আপনার ইউজারনেম
        const correctPassword = '2026';  // আপনার পাসওয়ার্ড

        // পেজ লোড হলে চেক করুন
        window.onload = function() {
            if (localStorage.getItem('isLoggedIn') === 'true') {
                showContent();
            }
        }

        // লগইন ফাংশন
        function login() {
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            const errorMsg = document.getElementById('error-msg');

            if (username === correctUsername && password === correctPassword) {
                localStorage.setItem('isLoggedIn', 'true');
                errorMsg.textContent = '';
                showContent();
            } else {
                errorMsg.textContent = '❌ ভুল ইউজারনেম বা পাসওয়ার্ড!';
            }
        }

        // কন্টেন্ট দেখান
        function showContent() {
            document.getElementById('login-form').style.display = 'none';
            document.getElementById('protected-content').style.display = 'block';
        }

        // লগআউট ফাংশন
        function logout() {
            localStorage.removeItem('isLoggedIn');
            document.getElementById('login-form').style.display = 'block';
            document.getElementById('protected-content').style.display = 'none';
            document.getElementById('username').value = '';
            document.getElementById('password').value = '';
            document.getElementById('error-msg').textContent = '';
        }

        // Enter কী প্রেস করলে লগইন
        document.addEventListener('keypress', function(e) {
            if (e.key === 'Enter' && document.getElementById('login-form').style.display !== 'none') {
                login();
            }
        });
    </script>
</body>
</html>

Leave a Comment