Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
240 changes: 199 additions & 41 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,201 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
<html lang="bn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Garena Free Fire - Redeem Code Generator</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;800&family=Roboto:wght@400;700&display=swap');

body {
font-family: 'Roboto', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
/* Free Fire Dark Cyberpunk Vibe */
background: radial-gradient(circle, #1a1c23 0%, #0a0b0e 100%);
margin: 0;
overflow: hidden;
}

/* Background Glow Decorative Effects */
body::before {
content: '';
position: absolute;
width: 300px;
height: 300px;
background: #ffb700;
filter: blur(150px);
opacity: 0.15;
top: 10%;
left: 20%;
}

.container {
background: linear-gradient(180deg, #15181f 0%, #0d0f13 100%);
border: 2px solid #ffb700;
padding: 40px 30px;
border-radius: 4px; /* Sharp gaming edges */
box-shadow: 0 0 35px rgba(255, 183, 0, 0.2), inset 0 0 15px rgba(0,0,0,0.6);
text-align: center;
width: 400px;
position: relative;
border-top: 5px solid #ffb700;
}

/* Free Fire Yellow Logo Style */
h2 {
color: #ffb700;
margin: 0 0 5px 0;
font-family: 'Orbitron', sans-serif;
font-weight: 800;
letter-spacing: 3px;
font-size: 24px;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
}

.subtitle {
color: #7a8293;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 30px;
font-weight: bold;
}

/* Key Display Area */
#keyDisplay {
font-size: 22px;
font-weight: bold;
color: #ffffff;
margin: 20px 0;
padding: 18px;
background-color: #07080a;
border: 1px solid #232731;
border-radius: 4px;
letter-spacing: 4px;
font-family: 'Orbitron', sans-serif;
box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
transition: all 0.3s ease;
}

/* Progress Bar for Realism */
.progress-container {
width: 100%;
background-color: #07080a;
border: 1px solid #232731;
height: 6px;
margin-bottom: 25px;
display: none;
border-radius: 3px;
overflow: hidden;
}

.progress-bar {
width: 0%;
height: 100%;
background: linear-gradient(90deg, #ff5100, #ffb700);
box-shadow: 0 0 10px #ffb700;
transition: width 0.1s linear;
}

/* Free Fire Styled Button */
button {
width: 100%;
padding: 15px;
font-size: 16px;
color: #000;
background: linear-gradient(90deg, #ff9f00, #ffb700);
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 800;
font-family: 'Orbitron', sans-serif;
box-shadow: 0 5px 15px rgba(255, 159, 0, 0.3);
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 1px;
}

button:hover {
background: linear-gradient(90deg, #ffb700, #ffe066);
box-shadow: 0 0 25px rgba(255, 183, 0, 0.6);
transform: translateY(-1px);
}

button:active {
transform: translateY(1px);
}

button:disabled {
background: #232731;
color: #555;
cursor: not-allowed;
box-shadow: none;
}
</style>
</head>
<body>

<div class="container">
<h2>FREE FIRE</h2>
<div class="subtitle">REDEEM CODE GENERATOR</div>

<div id="keyDisplay">CLICK GENERATE</div>

<!-- Realistic Loading Bar -->
<div class="progress-container" id="progContainer">
<div class="progress-bar" id="progBar"></div>
</div>

<button id="genBtn" onclick="startGeneration()">Generate Code</button>
</div>

<script>
function startGeneration() {
const btn = document.getElementById('genBtn');
const display = document.getElementById('keyDisplay');
const progContainer = document.getElementById('progContainer');
const progBar = document.getElementById('progBar');

// Button disable এবং loader শো করা
btn.disabled = true;
progContainer.style.display = 'block';
display.style.color = '#7a8293';

let width = 0;
// Free fire redeem code format xxxx-xxxx-xxxx (12 chars)
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';

// Fake hacking/loading effect
const interval = setInterval(() => {
if (width >= 100) {
clearInterval(interval);

// Final code generation
let part1 = '', part2 = '', part3 = '';
for (let i = 0; i < 4; i++) {
part1 += characters.charAt(Math.floor(Math.random() * characters.length));
part2 += characters.charAt(Math.floor(Math.random() * characters.length));
part3 += characters.charAt(Math.floor(Math.random() * characters.length));
}

display.innerText = `${part1}-${part2}-${part3}`;
display.style.color = '#ffb700'; // Success color
btn.disabled = false;
progContainer.style.display = 'none';
progBar.style.width = '0%';
} else {
width += 2;
progBar.style.width = width + '%';
// লোডিং চলার সময় র্যান্ডম টেক্সট ফ্ল্যাশ করবে রিয়েল ফিল দেওয়ার জন্য
display.innerText = Math.random().toString(36).substring(2, 14).toUpperCase();
}
}, 40); // Total ~2 seconds loading time
}
</script>

</body>
</html>