Skip to content
Merged
Show file tree
Hide file tree
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
297 changes: 105 additions & 192 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,223 +4,136 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CodeClip</title>
</head>
<body>
<style>
body {
font-family: sans-serif;
padding: 2rem;
background: #f9f9f9;
}
form {
background: #fff;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
max-width: 600px;
margin: auto;
}
input, textarea, select, button {
width: 100%;
margin-bottom: 1rem;
padding: 0.8rem;
font-size: 1rem;
border-radius: 5px;
border: 1px solid #ccc;
}
button {
background-color: #4CAF50;
color: white;
cursor: pointer;
border: none;
}
#preview {
white-space: pre-wrap;
background: #eee;
padding: 1rem;
border-radius: 5px;
margin-top: 1rem;
}
</style>
</head>
<body>
<form id="challengeForm">
<h2>Submit a Coding Challenge</h2>

<input type="text" id="title" placeholder="Title" required />

<textarea id="description" placeholder="Description (Markdown supported)" required></textarea>

<select id="difficulty" required>
<option value="">Select Difficulty</option>
<option value="Easy">Easy</option>
<option value="Medium">Medium</option>
<option value="Hard">Hard</option>
</select>

<textarea id="testCases" placeholder="Test Cases (JSON Format)" required></textarea>

<textarea id="solution" placeholder="Sample Solution (Code)" required></textarea>

<button type="submit">Submit</button>
</form>

<h3>Live Preview (Description)</h3>
<div id="preview"></div>

<script src="scripts/app.js"></script>
</body>
</html>
=======
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CodeClip</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bitcount:[email protected]&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Bitcount:[email protected]&family=Oooh+Baby&display=swap" rel="stylesheet">

<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<!-- Styles -->
<link rel="stylesheet" href="styles.css">

<!-- Sentry Script -->
<script src="https://js.sentry-cdn.com/8994bf86fecf7733832520db1565ab1f.min.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- Header Component -->
<header class="header">
<div class="container header__container">
<div class="header__logo">
<span class="logo-text">CodeClip</span>
</div>
<nav class="header__nav" id="navMenu">
<ul class="nav__list">
<li><a href="#" class="nav__link">Home</a></li>
<li><a href="#" class="nav__link">Challenges</a></li>
<li><a href="/editor.html" class="nav__link">Editor</a></li>
<li><a href="#" class="nav__link">Profile</a></li>
</ul>
</nav>
<button class="header__toggle" id="navToggle" aria-label="Open navigation menu">
<span class="hamburger"></span>
<span class="hamburger"></span>
<span class="hamburger"></span>
</button>
</div>
</header>

<!-- Main Content -->
<main>
<!-- Hero Section -->
<section class="hero">
<div class="floating-elements">
<div class="floating-element"></div>
<div class="floating-element"></div>
<div class="floating-element"></div>
</head>
<body>
<!-- Header Component -->
<header class="header">
<div class="container header__container">
<div class="header__logo">
<span class="logo-text">CodeClip</span>
</div>
<nav class="header__nav" id="navMenu">
<ul class="nav__list">
<li><a href="#" class="nav__link">Home</a></li>
<li><a href="./pages/challenges.html" class="nav__link">Challenges</a></li>
<li><a href="/editor.html" class="nav__link">Editor</a></li>
<li><a href="#" class="nav__link">Profile</a></li>
</ul>
</nav>
<button class="header__toggle" id="navToggle" aria-label="Open navigation menu">
<span class="hamburger"></span>
<span class="hamburger"></span>
<span class="hamburger"></span>
</button>
</div>
<div class="container">
<div class="hero__content">
<div class="hero__text">
<p class="hero__subtitle">🚀 An Interactive Coding Platform</p>
<h1 class="hero__title">
Code. <span class="highlight">Challenge.</span><br>
Conquer.
</h1>
<p class="hero__description">
Discover CodeClip, an exhilarating, lightweight web app that empowers developers to master coding challenges right in their browser! Whether you're tackling algorithms, debugging scripts, or showcasing your solutions to the open-source community, CodeClip offers a seamless, interactive experience with a sleek interface, real-time feedback, and effortless sharing via unique URLs or GitHub Gists.
</p>
<div class="hero__cta">
<a href="/coding" class="btn btn-primary">🎯 Start Coding</a>
<a href="/challenges" class="btn btn-secondary">📚 View Challenges</a>
</div>
</div>
<div class="hero__visual">
<div class="code-window">
<div class="code-window__header">
<span class="circle red"></span>
<span class="circle yellow"></span>
<span class="circle green"></span>
</header>

<!-- Main Content -->
<main>
<!-- Hero Section -->
<section class="hero">
<div class="floating-elements">
<div class="floating-element"></div>
<div class="floating-element"></div>
<div class="floating-element"></div>
</div>
<div class="container">
<div class="hero__content">
<div class="hero__text">
<p class="hero__subtitle">🚀 An Interactive Coding Platform</p>
<h1 class="hero__title">
Code. <span class="highlight">Challenge.</span><br />
Conquer.
</h1>
<p class="hero__description">
Discover CodeClip, an exhilarating, lightweight web app that empowers developers to master coding challenges right in their browser! Whether you're tackling algorithms, debugging scripts, or showcasing your solutions to the open-source community, CodeClip offers a seamless, interactive experience with a sleek interface, real-time feedback, and effortless sharing via unique URLs or GitHub Gists.
</p>
<div class="hero__cta">
<a href="/coding" class="btn btn-primary">🎯 Start Coding</a>
<a href="/challenges" class="btn btn-secondary">📚 View Challenges</a>
</div>
<div class="code-content">
<div class="code-line"><span class="comment">// Welcome to CodeClip</span></div>
<div class="code-line"><span class="keyword">function</span> <span class="string">solveProblem</span>() {</div>
<div class="code-line"> <span class="keyword">return</span> <span class="string">'Success!'</span>;</div>
<div class="code-line">}</div>
</div>
<div class="hero__visual">
<div class="code-window">
<div class="code-window__header">
<span class="circle red"></span>
<span class="circle yellow"></span>
<span class="circle green"></span>
</div>
<div class="code-content">
<div class="code-line"><span class="comment">// Welcome to CodeClip</span></div>
<div class="code-line"><span class="keyword">function</span> <span class="string">solveProblem</span>() {</div>
<div class="code-line"> <span class="keyword">return</span> <span class="string">'Success!'</span>;</div>
<div class="code-line">}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</section>

<!-- Feature Cards -->
<div class="content">
<!-- card -->

<div class="card">
<a href="#" target="_blank">
<div class="icon" ><i class="material-icons md-36" alt="Challenge vault icon">security</i></div>
<p class="title">Challenge Vault</p>
<p class="text">All your challenges in one place — track, review, repeat.</p>
</a>
</div>


<!-- end card -->
<!-- card -->
<div class="card">
<a href="#" target="_blank">
<div class="icon" ><i class="material-icons md-36" alt="Code editor icon">code</i></div>
<p class="title">Code Editor</p>
<p class="text">Write, test, and edit code seamlessly in your personal editor.</p>
</a>
</div>


<!-- end card -->
<!-- card -->

<div class="card">
<a href="#" target="_blank">
<div class="icon" ><i class="material-icons md-36" alt="Solution sharing icon">share</i></div>
<p class="title">Solution Sharing </p>
<p class="text">Show your approach. Discover new ones.</p>
</a>
</div>


<!-- end card -->
<!-- card -->

<div class="card">
<a href="#" target="_blank">
<div class="icon" ><i class="material-icons md-36" alt="AI recommendation icon">smart_toy</i></div>
<p class="title">AI Recommendation </p>
<p class="text">Let AI guide your next steps with personalized recommendations.</p>
</a>
</div>


<!-- end card -->
<div class="card">
<a href="#" target="_blank">
<div class="icon"><i class="material-icons md-36" alt="Challenge vault icon">security</i></div>
<p class="title">Challenge Vault</p>
<p class="text">All your challenges in one place — track, review, repeat.</p>
</a>
</div>

<div class="card">
<a href="#" target="_blank">
<div class="icon"><i class="material-icons md-36" alt="Code editor icon">code</i></div>
<p class="title">Code Editor</p>
<p class="text">Write, test, and edit code seamlessly in your personal editor.</p>
</a>
</div>

<div class="card">
<a href="#" target="_blank">
<div class="icon"><i class="material-icons md-36" alt="Solution sharing icon">share</i></div>
<p class="title">Solution Sharing </p>
<p class="text">Show your approach. Discover new ones.</p>
</a>
</div>

<div class="card">
<a href="#" target="_blank">
<div class="icon"><i class="material-icons md-36" alt="AI recommendation icon">smart_toy</i></div>
<p class="title">AI Recommendation </p>
<p class="text">Let AI guide your next steps with personalized recommendations.</p>
</a>
</div>
</div>
</main>
</main>

<!-- Theme Toggle -->
<div class="theme-toggle-container">
<button id="theme-toggle" class="theme-toggle-btn">Toggle Theme</button>
</div>
<!-- Theme Toggle -->
<div class="theme-toggle-container">
<button id="theme-toggle" class="theme-toggle-btn">Toggle Theme</button>
</div>

<!-- Footer -->
<div id="footer"></div>
<!-- Footer -->
<div id="footer"></div>

<!-- Scripts -->
<script type="module" src="scripts/data.js"></script>
<script type="module" src="scripts/app.js"></script>
<script type="module" src="./scripts/theme.js"></script>
</body>
<!-- Scripts -->
<script type="module" src="scripts/data.js"></script>
<script type="module" src="scripts/app.js"></script>
<script type="module" src="./scripts/theme.js"></script>
</body>
</html>
45 changes: 45 additions & 0 deletions pages/challenges.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Coding Challenges</title>
<link rel="stylesheet" href="../styles/challenges.css" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>

<div class="container">
<header class="page-header">
<h1>Challenges</h1>
<p>Sharpen your skills with our collection of coding challenges.</p>
</header>

<div class="controls">
<input type="text" id="searchInput" placeholder="Search challenges..." />
<select id="categoryFilter">
<option value="all">All Categories</option>
<option value="frontend">Frontend</option>
<option value="backend">Backend</option>
<option value="fullstack">Fullstack</option>
<option value="algorithms">Algorithms</option>
</select>
</div>

<div class="challenge-grid" id="challengeGrid">
</div>

<div id="no-results" class="no-results-message" style="display: none;">
<h2>🤔 No challenges found...</h2>
<p>Try adjusting your search or filter criteria.</p>
</div>

</div>

<button id="theme-toggle" title="Toggle theme">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
</button>

<script src="../scripts/challenges.js"></script>
</body>
</html>
Loading