Skip to content

Commit

Permalink
Merge branch 'gh-pages' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
priyashuu authored Oct 4, 2024
2 parents 6bd1b4e + c4f0ade commit 2928544
Show file tree
Hide file tree
Showing 9 changed files with 681 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5503
}
Binary file added Assets/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 140 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,170 @@
</head>

<body>
<header class="header">
<h1>OpenTekHub Blockchain Repository</h1>
</header>

<nav class="navbar">
<div class="navbar-container container">
<div class="hamburger-lines" onclick="toggleMenu()">
<span class="line line1"></span>
<span class="line line2"></span>
<span class="line line3"></span>
</div>
<ul class="menu-items">
<li><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#faq">FAQs</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
<div class="theme-switch" id="theme-switch"></div>
<h1 class="logo">OpenTekHub Blockchain Repository</h1>
</div>
</nav>

<div class="central">
<p class="tagline">Explore the Blockchain implementation and predict the latest cryptocurrency prices.</p>

<section id="crypto-price-predictor">
<h2>Crypto Price Predictor</h2>
<div id="crypto-form">
<label for="crypto">Enter Cryptocurrency Symbol (e.g., BITCOIN(BTC), ETHERUM(ETH)):</label>
<input type="text" id="crypto" name="crypto">
<button id="predict-btn">Predict Price</button>
<div id="crypto-suggestions"></div>
<button id="predict-btn">Predict Price</button>

</div>
<div id="price-result">
<h3>Predicted Price:</h3>
<p id="price"></p>
</div>
<div id="telegram-bot">
<p class="bot-text">Track prices with our Telegram bot</p>
<h3><a href="https://t.me/trackingcryptopricerbot" class="bot-link">@TrackCryptoPriceBot</a></h3>

<p class="bot-text"> Track prices with our Telegram bot</p>
<h3><a href="https://t.me/trackingcryptopricerbot" class="bot-link"><img src="public/Telegram.png" alt="Telegram logo" id="Telegram">@TrackCryptoPriceBot</a></h3>
</div>
</section>
</div>

<!-- About Section -->
<header class="header">
<h1>About Us</h1>
</header>

<section id="about" class="about section">

<video autoplay muted loop class="background-video">
<source src="public/about-bgvideo.mp4" type="video/mp4">
</video>
<div class="overlay"></div>

<p class="tagline">
Empowering Blockchain Innovations Through Technology
</p>
<div class="content">
<p>
At OpenTekHub, we are passionate about leveraging blockchain technology to create innovative
solutions that empower industries and individuals. Our Blockchain repository is part of the
Winter of Blockchain (WoB) initiative, designed to provide an open-source platform for
learning and collaboration within the blockchain community. With a focus on developing
cryptocurrency features like price prediction, we aim to create a comprehensive educational
resource for developers and blockchain enthusiasts alike. Join us on our journey to explore,
contribute, and innovate in the realm of blockchain technology.
</p>
</div>
</section>

<!-- Why Us Section -->
<section id="why-us" class="why-us section">
<div class="row">
<div class="card">
<span>01</span>
<h4>Cryptocurrency Price Prediction</h4>
<p>Utilize advanced algorithms to predict cryptocurrency prices, enabling informed investment decisions.</p>
</div>

<div class="card">
<span>02</span>
<h4>Telegram Bot Integration</h4>
<p>Engage users with a Telegram bot that provides real-time updates on cryptocurrency prices and project developments.</p>
</div>

<div class="card">
<span>03</span>
<h4>Open-source Collaboration</h4>
<p>Join our open-source platform to collaborate on blockchain projects, sharing knowledge and contributing to innovations.</p>
</div>

<div class="card">
<span>04</span>
<h4>Educational Resources</h4>
<p>Access comprehensive educational materials and tutorials to enhance your understanding of blockchain technology.</p>
</div>
</div>
</section>

<!-- FAQ Section-->

<section id="faq" class="faq section">
<header class="header">
<h1>Frequently Asked Questions</h1>
</header>

<p class="tagline">
Explore commonly asked questions about OpenTekHub and discover how we support technology innovations.
</p>

<div class='faq'>
<input id='faq-a' type='checkbox'>
<label for='faq-a'>
<p class="faq-heading">🤔 What is cryptocurrency?</p>
<div class='faq-arrow'></div>
<p class="faq-text">Cryptocurrency is a type of digital or virtual currency that uses cryptography for security. It operates on decentralized networks based on blockchain technology, making it secure and difficult to counterfeit.</p>
</label>

<input id='faq-b' type='checkbox'>
<label for='faq-b'>
<p class="faq-heading">📜 What is blockchain technology?</p>
<div class='faq-arrow'></div>
<p class="faq-text">Blockchain is a distributed ledger technology that securely records transactions across many computers. This ensures that the recorded transactions cannot be altered retroactively, providing transparency and security.</p>
</label>

<input id='faq-c' type='checkbox'>
<label for='faq-c'>
<p class="faq-heading">📈 What is the cryptocurrency price predictor feature?</p>
<div class='faq-arrow'></div>
<p class="faq-text">The cryptocurrency price predictor feature uses historical data and machine learning algorithms to forecast future prices of various cryptocurrencies, helping users make informed investment decisions.</p>
</label>

<input id='faq-d' type='checkbox'>
<label for='faq-d'>
<p class="faq-heading">🤖 How does the Telegram bot work?</p>
<div class='faq-arrow'></div>
<p class="faq-text">The Telegram bot allows users to track cryptocurrency prices and receive updates directly in their Telegram app. Users can query prices, receive alerts on significant changes, and interact with the bot for the latest market information.</p>
</label>

<input id='faq-e' type='checkbox'>
<label for='faq-e'>
<p class="faq-heading">🛡️ Is participating in this project safe?</p>
<div class='faq-arrow'></div>
<p class="faq-text">Absolutely! Contributing to this open-source project is safe and secure. Your contributions and interactions within the community are protected, ensuring a collaborative environment.</p>
</label>

<input id='faq-f' type='checkbox'>
<label for='faq-f'>
<p class="faq-heading">🛠️ What do I need to contribute?</p>
<div class='faq-arrow'></div>
<p class="faq-text">To contribute, you don't need to provide access to your personal accounts or sensitive information. All you need is a GitHub account and some enthusiasm for blockchain and cryptocurrency!</p>
</label>
</div>
</section>

<section id="repo-info">

<h2>About the Repository</h2>
<p>This repository demonstrates blockchain prices using api and javascript.</p>
<a href="https://github.com/OpenTekHub/blockchain" target="_blank">Visit the Repo</a>
<a href="https://github.com/OpenTekHub/blockchain" target="_blank"><img src="public/github.png" alt="" id="git">BlockChain Repository</a>
</section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js" integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="script.js"></script>
</body>

</html>
</html>
Binary file added public/Telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/about-bgvideo.mp4
Binary file not shown.
Binary file added public/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
// Dark Mode Toggle Functionality
const themeSwitch = document.getElementById('theme-switch'); // Ensure this matches your HTML button's ID
const body = document.body;
const header = document.querySelector('header');
const footer = document.querySelector('footer');

// Function to enable dark mode
function enableDarkMode() {
body.classList.add('dark-mode');
header.classList.add('dark-mode');
themeSwitch.classList.add('dark-theme'); // Update the switch appearance
footer.classList.add('dark-mode');
}

// Function to disable dark mode
function disableDarkMode() {
body.classList.remove('dark-mode');
header.classList.remove('dark-mode');
themeSwitch.classList.remove('dark-theme'); // Update the switch appearance
footer.classList.remove('dark-mode');
}

// Event listener for dark mode toggle button
themeSwitch.addEventListener('click', () => {
if (body.classList.contains('dark-mode')) {
disableDarkMode(); // Switch to light mode
localStorage.removeItem('dark-mode'); // Remove from local storage
} else {
enableDarkMode(); // Switch to dark mode
localStorage.setItem('dark-mode', 'enabled'); // Save in local storage
}
});

// Optional: Check the initial mode on page load and apply the correct theme based on local storage
if (localStorage.getItem('dark-mode') === 'enabled') {
enableDarkMode();
} else {
disableDarkMode(); // Default to light mode on load if localStorage is empty
}

// navbar hamburger
function toggleMenu() {
const menu = document.querySelector('.menu-items');
const hamburger = document.querySelector('.hamburger-lines');
menu.classList.toggle('menu-active');
hamburger.classList.toggle('hamburger-active');
}

// A map of symbols to their corresponding API names
const cryptoMap = {
// Major cryptocurrencies
Expand Down Expand Up @@ -158,6 +206,7 @@ document.getElementById('predict-btn').addEventListener('click', function() {
document.getElementById("price").innerText = "Please enter a valid cryptocurrency symbol.";
}
});

// GSAP Animations
document.addEventListener('DOMContentLoaded', () => {
// Timeline for header and intro text animations
Expand Down Expand Up @@ -244,3 +293,6 @@ document.addEventListener('DOMContentLoaded', () => {
delay: 1.9
});
});
=======


Loading

0 comments on commit 2928544

Please sign in to comment.