caleb-github-clone / repository.html
calebwodi's picture
Generate a GitHub clone - Initial Deployment
60da978 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Repository - GitHub Clone</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.repo-language-color {
position: relative;
top: 1px;
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
}
.diff-add {
background-color: rgba(46, 160, 67, 0.15);
}
.diff-remove {
background-color: rgba(248, 81, 73, 0.15);
}
.diff-line {
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
}
.code-line {
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Navigation -->
<nav class="bg-gray-900 text-white px-4 py-3 flex items-center justify-between sticky top-0 z-50">
<div class="flex items-center space-x-4">
<i data-feather="github" class="w-8 h-8"></i>
<div class="relative hidden md:block">
<input type="text" placeholder="Search or jump to..." class="bg-gray-800 text-sm rounded-md px-3 py-1.5 w-64 focus:outline-none focus:ring-2 focus:ring-blue-500">
<div class="absolute right-2 top-1.5 text-xs bg-gray-700 px-1 rounded">/</div>
</div>
<div class="hidden md:flex space-x-4 text-sm font-medium">
<a href="#" class="hover:text-gray-300">Pull requests</a>
<a href="#" class="hover:text-gray-300">Issues</a>
<a href="#" class="hover:text-gray-300">Marketplace</a>
<a href="#" class="hover:text-gray-300">Explore</a>
</div>
</div>
<div class="flex items-center space-x-3">
<button class="md:hidden">
<i data-feather="menu"></i>
</button>
<button class="hidden md:block">
<i data-feather="bell"></i>
</button>
<button class="hidden md:flex items-center space-x-1">
<i data-feather="plus" class="w-4 h-4"></i>
<i data-feather="chevron-down" class="w-4 h-4"></i>
</button>
<div class="flex items-center space-x-1">
<div class="w-6 h-6 rounded-full bg-blue-500"></div>
<i data-feather="chevron-down" class="w-4 h-4 hidden md:block"></i>
</div>
</div>
</nav>
<!-- Repository Header -->
<div class="bg-white border-b border-gray-200 py-4">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row md:items-center justify-between">
<div class="flex items-center mb-4 md:mb-0">
<i data-feather="book" class="w-5 h-5 text-gray-600 mr-2"></i>
<div class="flex items-center text-sm">
<a href="#" class="text-blue-600 hover:underline">octocat</a>
<span class="mx-1">/</span>
<a href="#" class="text-blue-600 font-semibold hover:underline">Hello-World</a>
</div>
</div>
<div class="flex space-x-2">
<button class="flex items-center text-sm bg-gray-100 hover:bg-gray-200 text-gray-800 px-3 py-1 rounded-md">
<i data-feather="eye" class="w-4 h-4 mr-1"></i>
<span>Watch</span>
<span class="ml-1 text-gray-500">1.2k</span>
</button>
<button class="flex items-center text-sm bg-gray-100 hover:bg-gray-200 text-gray-800 px-3 py-1 rounded-md">
<i data-feather="git-branch" class="w-4 h-4 mr-1"></i>
<span>Fork</span>
<span class="ml-1 text-gray-500">42</span>
</button>
<button class="flex items-center text-sm bg-gray-100 hover:bg-gray-200 text-gray-800 px-3 py-1 rounded-md">
<i data-feather="star" class="w-4 h-4 mr-1"></i>
<span>Star</span>
<span class="ml-1 text-gray-500">5.6k</span>
</button>
</div>
</div>
</div>
</div>
<!-- Repository Content -->
<div class="container mx-auto px-4 py-6">
<!-- Repository Tabs -->
<div class="border-b border-gray-200 mb-6">
<nav class="flex -mb-px overflow-x-auto">
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-orange-500 font-medium text-sm text-gray-900 whitespace-nowrap">Code</a>
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">Issues</a>
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">Pull requests</a>
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">Actions</a>
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">Projects</a>
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">Security</a>
<a href="#" class="mr-8 py-4 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">Insights</a>
</nav>
</div>
<!-- Branch Selector and Actions -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<div class="flex items-center mb-4 md:mb-0">
<div class="relative">
<button class="flex items-center text-sm bg-white border border-gray-300 rounded-md px-3 py-1.5 hover:bg-gray-50">
<i data-feather="git-branch" class="w-4 h-4 mr-2"></i>
<span class="font-medium">main</span>
<i data-feather="chevron-down" class="w-4 h-4 ml-2"></i>
</button>
</div>
<span class="text-sm text-gray-500 ml-4">1 branch</span>
<span class="text-sm text-gray-500 ml-4">0 tags</span>
</div>
<div class="flex space-x-2">
<button class="flex items-center text-sm bg-gray-100 hover:bg-gray-200 text-gray-800 px-3 py-1.5 rounded-md">
<i data-feather="download" class="w-4 h-4 mr-1"></i>
<span>Code</span>
<i data-feather="chevron-down" class="w-4 h-4 ml-1"></i>
</button>
</div>
</div>
<!-- File Explorer -->
<div class="bg-white border border-gray-200 rounded-lg overflow-hidden mb-6">
<!-- File Header -->
<div class="flex items-center justify-between bg-gray-50 px-4 py-2 border-b border-gray-200">
<div class="flex items-center">
<i data-feather="file-text" class="w-4 h-4 text-gray-500 mr-2"></i>
<span class="text-sm font-medium">README.md</span>
</div>
<div class="flex space-x-2">
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<!-- File Content -->
<div class="p-4">
<div class="prose max-w-none">
<h1>Hello World</h1>
<p>This is my first repository on GitHub!</p>
<h2>Getting Started</h2>
<p>To get started with this project:</p>
<pre><code>git clone https://github.com/octocat/Hello-World.git
cd Hello-World
npm install
npm start</code></pre>
<h2>Contributing</h2>
<p>Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.</p>
</div>
</div>
</div>
<!-- Recent Commits -->
<div class="bg-white border border-gray-200 rounded-lg overflow-hidden">
<div class="px-4 py-3 border-b border-gray-200 bg-gray-50">
<h3 class="text-sm font-medium">Recent commits</h3>
</div>
<div class="divide-y divide-gray-200">
<!-- Commit 1 -->
<div class="p-4">
<div class="flex items-start">
<img src="http://static.photos/people/40x40/1" alt="User" class="w-10 h-10 rounded-full mr-3">
<div class="flex-1">
<div class="flex items-center mb-1">
<span class="text-sm font-medium mr-2">octocat</span>
<span class="text-xs text-gray-500">committed 2 hours ago</span>
</div>
<div class="text-sm mb-2">
<a href="#" class="text-blue-600 hover:underline">Update README.md</a>
</div>
<div class="flex items-center text-xs text-gray-500">
<i data-feather="git-commit" class="w-3 h-3 mr-1"></i>
<span class="font-mono mr-4">a1b2c3d</span>
<i data-feather="git-branch" class="w-3 h-3 mr-1"></i>
<span>main</span>
</div>
</div>
</div>
</div>
<!-- Commit 2 -->
<div class="p-4">
<div class="flex items-start">
<img src="http://static.photos/people/40x40/2" alt="User" class="w-10 h-10 rounded-full mr-3">
<div class="flex-1">
<div class="flex items-center mb-1">
<span class="text-sm font-medium mr-2">otheruser</span>
<span class="text-xs text-gray-500">committed 1 day ago</span>
</div>
<div class="text-sm mb-2">
<a href="#" class="text-blue-600 hover:underline">Fix typo in documentation</a>
</div>
<div class="flex items-center text-xs text-gray-500">
<i data-feather="git-commit" class="w-3 h-3 mr-1"></i>
<span class="font-mono mr-4">e4f5g6h</span>
<i data-feather="git-branch" class="w-3 h-3 mr-1"></i>
<span>main</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
AOS.init();
feather.replace();
</script>
</body>
</html>