caleb-github-clone / pull_request.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>Pull Request - 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;
}
</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>
<!-- Pull Request Content -->
<div class="container mx-auto px-4 py-6">
<!-- Pull Request Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<div>
<h1 class="text-2xl font-semibold">Pull requests</h1>
</div>
<div class="mt-4 md:mt-0">
<button class="bg-green-600 hover:bg-green-700 text-white font-medium py-1.5 px-4 rounded-md text-sm">
New pull request
</button>
</div>
</div>
<!-- Pull Request Filters -->
<div class="bg-white border border-gray-200 rounded-lg p-4 mb-6">
<div class="flex flex-col md:flex-row md:items-center justify-between">
<div class="flex space-x-2 mb-4 md:mb-0">
<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="filter" class="w-4 h-4 mr-1"></i>
<span>Filters</span>
</button>
<button class="flex items-center text-sm bg-white border border-gray-300 hover:bg-gray-50 text-gray-800 px-3 py-1 rounded-md">
<span>Labels</span>
<i data-feather="chevron-down" class="w-4 h-4 ml-1"></i>
</button>
<button class="flex items-center text-sm bg-white border border-gray-300 hover:bg-gray-50 text-gray-800 px-3 py-1 rounded-md">
<span>Milestones</span>
<i data-feather="chevron-down" class="w-4 h-4 ml-1"></i>
</button>
</div>
<div class="flex items-center">
<button class="text-gray-500 hover:text-gray-700 mr-2">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<div class="relative">
<input type="text" placeholder="Search all pull requests" class="bg-gray-50 border border-gray-300 rounded-md px-3 py-1 text-sm w-full md:w-64 focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
</div>
</div>
</div>
<!-- Pull Request List -->
<div class="bg-white border border-gray-200 rounded-lg overflow-hidden">
<!-- PR Header -->
<div class="px-4 py-3 border-b border-gray-200 bg-gray-50">
<div class="flex items-center">
<i data-feather="git-pull-request" class="w-5 h-5 text-gray-500 mr-2"></i>
<span class="text-sm font-medium">2 Open</span>
<span class="text-sm text-gray-500 ml-4">1 Closed</span>
</div>
</div>
<!-- PR 1 -->
<div class="p-4 border-b border-gray-200 hover:bg-gray-50">
<div class="flex items-start">
<div class="mr-3 mt-1">
<i data-feather="git-pull-request" class="w-5 h-5 text-green-600"></i>
</div>
<div class="flex-1">
<div class="flex items-center mb-1">
<a href="#" class="text-blue-600 font-medium hover:underline">Fix typo in documentation</a>
<div class="flex ml-2 space-x-1">
<span class="text-xs px-2 py-0.5 rounded-full bg-blue-100 text-blue-800">bug</span>
<span class="text-xs px-2 py-0.5 rounded-full bg-gray-100 text-gray-800">documentation</span>
</div>
</div>
<p class="text-sm text-gray-600 mb-2">#42 opened 2 days ago by <a href="#" class="text-blue-600 hover:underline">otheruser</a> • from <span class="font-mono text-xs">fix-typo</span> into <span class="font-mono text-xs">main</span></p>
<div class="flex items-center text-xs text-gray-500">
<i data-feather="message-square" class="w-3 h-3 mr-1"></i>
<span class="mr-4">3 comments</span>
<i data-feather="check-circle" class="w-3 h-3 mr-1"></i>
<span>2 checks passed</span>
</div>
</div>
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="chevron-down" class="w-4 h-4"></i>
</button>
</div>
</div>
<!-- PR 2 -->
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start">
<div class="mr-3 mt-1">
<i data-feather="git-pull-request" class="w-5 h-5 text-green-600"></i>
</div>
<div class="flex-1">
<div class="flex items-center mb-1">
<a href="#" class="text-blue-600 font-medium hover:underline">Add dark mode support</a>
<div class="flex ml-2 space-x-1">
<span class="text-xs px-2 py-0.5 rounded-full bg-purple-100 text-purple-800">enhancement</span>
</div>
</div>
<p class="text-sm text-gray-600 mb-2">#41 opened 1 week ago by <a href="#" class="text-blue-600 hover:underline">darkmoder</a> • from <span class="font-mono text-xs">dark-mode</span> into <span class="font-mono text-xs">main</span></p>
<div class="flex items-center text-xs text-gray-500">
<i data-feather="message-square" class="w-3 h-3 mr-1"></i>
<span class="mr-4">7 comments</span>
<i data-feather="check-circle" class="w-3 h-3 mr-1"></i>
<span>5 checks passed</span>
</div>
</div>
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="chevron-down" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
</div>
<script>
AOS.init();
feather.replace();
</script>
</body>
</html>
These HTML files create a responsive GitHub clone with the following pages:
1. index.html - User profile page with pinned repositories and activity feed
2. repository.html - Repository view with code, commits, and branches
3. issues.html - Issues list with filtering options
4. pull_request.html - Pull requests list with status indicators
The design uses TailwindCSS for responsive styling and Feather Icons for icons. The UI closely mimics GitHub's interface with appropriate navigation, repository headers, and content organization.
For a full-stack implementation, you would need to:
1. Set up a backend server (Node.js, Python, Ruby, etc.)
2. Create API endpoints for user authentication, repository management, issues, and pull requests
3. Implement database storage (PostgreSQL, MongoDB, etc.)
4. Add Git integration for repository management
5. Connect the frontend to the backend via fetch/AJAX calls
Would you like me to provide any additional pages or focus on specific aspects of the implementation?