androidnews / index.html
Letcool's picture
Add 3 files
204fe62 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Android & AI News Feed</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.loader {
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.tab-active {
border-bottom: 3px solid #3b82f6;
font-weight: 600;
color: #3b82f6;
}
.post-divider {
border: none;
height: 1px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}
.reddit-post:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.video-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<header class="bg-white shadow-sm sticky top-0 z-10">
<div class="container mx-auto px-4 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fab fa-android text-3xl text-green-500"></i>
<i class="fas fa-robot text-3xl text-blue-500"></i>
<h1 class="text-2xl font-bold text-gray-800">Android & AI News</h1>
</div>
<div class="flex space-x-4">
<button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition">
<i class="fas fa-cog mr-1"></i> Settings
</button>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm font-medium transition">
<i class="fas fa-user-plus mr-1"></i> Sign In
</button>
</div>
</div>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<div class="flex flex-col md:flex-row gap-8">
<!-- Left sidebar with filters -->
<aside class="w-full md:w-64 flex-shrink-0">
<div class="bg-white rounded-lg shadow p-4 sticky top-24">
<h2 class="text-lg font-semibold mb-4 text-gray-800">Filters</h2>
<div class="mb-6">
<h3 class="text-sm font-medium text-gray-700 mb-2">Content Type</h3>
<div class="space-y-2">
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500" checked>
<span class="ml-2 text-gray-700">Videos</span>
</label>
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500" checked>
<span class="ml-2 text-gray-700">Articles</span>
</label>
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500">
<span class="ml-2 text-gray-700">Discussions</span>
</label>
</div>
</div>
<div class="mb-6">
<h3 class="text-sm font-medium text-gray-700 mb-2">Topics</h3>
<div class="space-y-2">
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500" checked>
<span class="ml-2 text-gray-700">Android OS</span>
</label>
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500" checked>
<span class="ml-2 text-gray-700">AI Research</span>
</label>
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500">
<span class="ml-2 text-gray-700">Hardware</span>
</label>
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500">
<span class="ml-2 text-gray-700">Apps</span>
</label>
<label class="flex items-center">
<input type="checkbox" class="rounded text-blue-500">
<span class="ml-2 text-gray-700">Ethics</span>
</label>
</div>
</div>
<div class="mb-6">
<h3 class="text-sm font-medium text-gray-700 mb-2">Time Range</h3>
<select class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 text-sm">
<option>Last 24 hours</option>
<option selected>Last week</option>
<option>Last month</option>
<option>Last year</option>
</select>
</div>
<button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-2 rounded-md text-sm font-medium transition">
Apply Filters
</button>
</div>
</aside>
<!-- Main content area -->
<div class="flex-1">
<!-- Tabs -->
<div class="bg-white rounded-lg shadow mb-6">
<div class="border-b border-gray-200">
<nav class="flex -mb-px">
<button id="all-tab" class="tab-active py-4 px-6 text-center border-transparent text-sm font-medium">
All Content
</button>
<button id="youtube-tab" class="py-4 px-6 text-center border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 text-sm font-medium">
<i class="fab fa-youtube mr-1 text-red-500"></i> Videos
</button>
<button id="reddit-tab" class="py-4 px-6 text-center border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 text-sm font-medium">
<i class="fab fa-reddit mr-1 text-orange-500"></i> Discussions
</button>
</nav>
</div>
</div>
<!-- Feed content -->
<div id="feed-content">
<!-- YouTube videos -->
<div id="youtube-feed" class="space-y-6">
<div class="video-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
<div class="video-container">
<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="p-4">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Android 14 Preview: All New AI Features</h3>
<p class="text-gray-600 text-sm mb-3">Google just announced Android 14 with groundbreaking AI integration. Here's everything you need to know about the new features.</p>
<div class="flex items-center text-sm text-gray-500">
<span class="flex items-center mr-4">
<i class="fas fa-eye mr-1"></i> 245K views
</span>
<span class="flex items-center">
<i class="far fa-clock mr-1"></i> 2 days ago
</span>
</div>
</div>
</div>
<div class="video-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
<div class="video-container">
<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="p-4">
<h3 class="text-lg font-semibold text-gray-800 mb-2">How ChatGPT is Changing Android Development</h3>
<p class="text-gray-600 text-sm mb-3">Developers are using AI tools like ChatGPT to accelerate Android app development. See real-world examples and learn how you can implement these techniques.</p>
<div class="flex items-center text-sm text-gray-500">
<span class="flex items-center mr-4">
<i class="fas fa-eye mr-1"></i> 189K views
</span>
<span class="flex items-center">
<i class="far fa-clock mr-1"></i> 1 week ago
</span>
</div>
</div>
</div>
<div class="video-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
<div class="video-container">
<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="p-4">
<h3 class="text-lg font-semibold text-gray-800 mb-2">The Future of AI on Mobile: Tensor Processing Units Explained</h3>
<p class="text-gray-600 text-sm mb-3">Google's custom Tensor chips are bringing desktop-level AI processing to mobile devices. We break down what this means for the future of smartphones.</p>
<div class="flex items-center text-sm text-gray-500">
<span class="flex items-center mr-4">
<i class="fas fa-eye mr-1"></i> 312K views
</span>
<span class="flex items-center">
<i class="far fa-clock mr-1"></i> 3 weeks ago
</span>
</div>
</div>
</div>
</div>
<!-- Reddit posts -->
<div id="reddit-feed" class="mt-8 space-y-4">
<div class="reddit-post bg-white rounded-lg shadow p-4 transition duration-300">
<div class="flex items-start">
<div class="flex flex-col items-center mr-3">
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-up"></i>
</button>
<span class="text-xs font-medium my-1">4.2k</span>
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-down"></i>
</button>
</div>
<div class="flex-1">
<div class="flex items-center text-xs text-gray-500 mb-1">
<span class="font-medium text-gray-700">r/Android</span>
<span class="mx-1"></span>
<span>Posted by u/tech_enthusiast</span>
<span class="mx-1"></span>
<span>2 days ago</span>
</div>
<h3 class="text-lg font-semibold text-gray-800 mb-2">Android 14 Beta 3 Released - Major AI Improvements</h3>
<p class="text-gray-700 text-sm mb-3">Google has just pushed Android 14 Beta 3 to Pixel devices with significant enhancements to on-device machine learning capabilities. The new update includes...</p>
<div class="flex space-x-4 text-xs text-gray-500">
<button class="flex items-center hover:text-gray-700">
<i class="far fa-comment mr-1"></i> 342 comments
</button>
<button class="flex items-center hover:text-gray-700">
<i class="fas fa-share mr-1"></i> Share
</button>
<button class="flex items-center hover:text-gray-700">
<i class="far fa-bookmark mr-1"></i> Save
</button>
</div>
</div>
</div>
</div>
<div class="reddit-post bg-white rounded-lg shadow p-4 transition duration-300">
<div class="flex items-start">
<div class="flex flex-col items-center mr-3">
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-up"></i>
</button>
<span class="text-xs font-medium my-1">8.7k</span>
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-down"></i>
</button>
</div>
<div class="flex-1">
<div class="flex items-center text-xs text-gray-500 mb-1">
<span class="font-medium text-orange-500">r/MachineLearning</span>
<span class="mx-1"></span>
<span>Posted by u/ai_researcher</span>
<span class="mx-1"></span>
<span>5 days ago</span>
</div>
<h3 class="text-lg font-semibold text-gray-800 mb-2">[P] Running LLMs on Android: A Comprehensive Guide</h3>
<p class="text-gray-700 text-sm mb-3">After months of experimentation, I've successfully optimized several large language models to run efficiently on Android devices. Here's everything I learned about quantization, pruning, and hardware acceleration...</p>
<div class="flex space-x-4 text-xs text-gray-500">
<button class="flex items-center hover:text-gray-700">
<i class="far fa-comment mr-1"></i> 587 comments
</button>
<button class="flex items-center hover:text-gray-700">
<i class="fas fa-share mr-1"></i> Share
</button>
<button class="flex items-center hover:text-gray-700">
<i class="far fa-bookmark mr-1"></i> Save
</button>
</div>
</div>
</div>
</div>
<div class="reddit-post bg-white rounded-lg shadow p-4 transition duration-300">
<div class="flex items-start">
<div class="flex flex-col items-center mr-3">
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-up"></i>
</button>
<span class="text-xs font-medium my-1">12.4k</span>
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-down"></i>
</button>
</div>
<div class="flex-1">
<div class="flex items-center text-xs text-gray-500 mb-1">
<span class="font-medium text-gray-700">r/AndroidDev</span>
<span class="mx-1"></span>
<span>Posted by u/senior_dev</span>
<span class="mx-1"></span>
<span>1 week ago</span>
</div>
<h3 class="text-lg font-semibold text-gray-800 mb-2">Google announces ML Kit updates with new on-device text-to-image generation</h3>
<p class="text-gray-700 text-sm mb-3">At I/O yesterday, Google unveiled major updates to ML Kit including stable diffusion models that can run entirely on-device. This opens up incredible possibilities for Android apps that need generative AI capabilities without cloud dependencies...</p>
<div class="flex space-x-4 text-xs text-gray-500">
<button class="flex items-center hover:text-gray-700">
<i class="far fa-comment mr-1"></i> 892 comments
</button>
<button class="flex items-center hover:text-gray-700">
<i class="fas fa-share mr-1"></i> Share
</button>
<button class="flex items-center hover:text-gray-700">
<i class="far fa-bookmark mr-1"></i> Save
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Loading indicator -->
<div id="loading-indicator" class="py-8 hidden">
<div class="loader"></div>
</div>
</div>
</div>
</div>
</main>
<footer class="bg-gray-100 border-t border-gray-200 py-8 mt-12">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center space-x-2">
<i class="fab fa-android text-2xl text-green-500"></i>
<i class="fas fa-robot text-2xl text-blue-500"></i>
<span class="text-lg font-semibold text-gray-800">Android & AI News</span>
</div>
<p class="text-gray-600 text-sm mt-2">Your source for the latest in Android and Artificial Intelligence</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fab fa-github"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fab fa-linkedin"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fab fa-youtube"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fab fa-reddit"></i>
</a>
</div>
</div>
<div class="border-t border-gray-200 mt-8 pt-8 text-center text-sm text-gray-500">
<p>© 2023 Android & AI News. All rights reserved. Content aggregated from YouTube and Reddit.</p>
</div>
</div>
</footer>
<script>
// Tab switching functionality
const allTab = document.getElementById('all-tab');
const youtubeTab = document.getElementById('youtube-tab');
const redditTab = document.getElementById('reddit-tab');
const youtubeFeed = document.getElementById('youtube-feed');
const redditFeed = document.getElementById('reddit-feed');
function resetTabs() {
allTab.classList.remove('tab-active');
youtubeTab.classList.remove('tab-active');
redditTab.classList.remove('tab-active');
allTab.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
youtubeTab.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
redditTab.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
}
allTab.addEventListener('click', () => {
resetTabs();
allTab.classList.add('tab-active');
allTab.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
youtubeFeed.style.display = 'block';
redditFeed.style.display = 'block';
});
youtubeTab.addEventListener('click', () => {
resetTabs();
youtubeTab.classList.add('tab-active');
youtubeTab.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
youtubeFeed.style.display = 'block';
redditFeed.style.display = 'none';
});
redditTab.addEventListener('click', () => {
resetTabs();
redditTab.classList.add('tab-active');
redditTab.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
youtubeFeed.style.display = 'none';
redditFeed.style.display = 'block';
});
// Infinite scroll functionality
const loadingIndicator = document.getElementById('loading-indicator');
let isLoading = false;
window.addEventListener('scroll', () => {
const { scrollTop, scrollHeight, clientHeight } = document.documentElement;
if (scrollTop + clientHeight >= scrollHeight - 100 && !isLoading) {
loadMoreContent();
}
});
function loadMoreContent() {
isLoading = true;
loadingIndicator.classList.remove('hidden');
// Simulate API call delay
setTimeout(() => {
// Add more YouTube videos
const youtubeFeed = document.getElementById('youtube-feed');
const newVideo = document.createElement('div');
newVideo.className = 'video-card bg-white rounded-lg shadow overflow-hidden transition duration-300 mt-6';
newVideo.innerHTML = `
<div class="video-container">
<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="p-4">
<h3 class="text-lg font-semibold text-gray-800 mb-2">New AI Features Coming to Android 15</h3>
<p class="text-gray-600 text-sm mb-3">Leaked documents reveal Google is working on even more advanced AI capabilities for the next Android version, including real-time translation and predictive text that learns your writing style.</p>
<div class="flex items-center text-sm text-gray-500">
<span class="flex items-center mr-4">
<i class="fas fa-eye mr-1"></i> 178K views
</span>
<span class="flex items-center">
<i class="far fa-clock mr-1"></i> 3 days ago
</span>
</div>
</div>
`;
youtubeFeed.appendChild(newVideo);
// Add more Reddit posts
const redditFeed = document.getElementById('reddit-feed');
const newPost = document.createElement('div');
newPost.className = 'reddit-post bg-white rounded-lg shadow p-4 transition duration-300 mt-4';
newPost.innerHTML = `
<div class="flex items-start">
<div class="flex flex-col items-center mr-3">
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-up"></i>
</button>
<span class="text-xs font-medium my-1">6.3k</span>
<button class="text-gray-400 hover:text-blue-500">
<i class="fas fa-arrow-down"></i>
</button>
</div>
<div class="flex-1">
<div class="flex items-center text-xs text-gray-500 mb-1">
<span class="font-medium text-gray-700">r/Android</span>
<span class="mx-1"></span>
<span>Posted by u/tech_analyst</span>
<span class="mx-1"></span>
<span>4 days ago</span>
</div>
<h3 class="text-lg font-semibold text-gray-800 mb-2">Samsung announces partnership with OpenAI to bring ChatGPT-like features to Galaxy devices</h3>
<p class="text-gray-700 text-sm mb-3">Samsung has revealed a strategic partnership with OpenAI that will bring advanced AI capabilities to future Galaxy devices. The collaboration focuses on optimizing large language models for mobile processors...</p>
<div class="flex space-x-4 text-xs text-gray-500">
<button class="flex items-center hover:text-gray-700">
<i class="far fa-comment mr-1"></i> 421 comments
</button>
<button class="flex items-center hover:text-gray-700">
<i class="fas fa-share mr-1"></i> Share
</button>
<button class="flex items-center hover:text-gray-700">
<i class="far fa-bookmark mr-1"></i> Save
</button>
</div>
</div>
</div>
`;
redditFeed.appendChild(newPost);
loadingIndicator.classList.add('hidden');
isLoading = false;
}, 1500);
}
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Letcool/androidnews" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>