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
100 changes: 61 additions & 39 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
<!DOCTYPE html>
<html lang="en">

<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">

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

<!-- Sentry Script -->
<script src="https://js.sentry-cdn.com/8994bf86fecf7733832520db1565ab1f.min.js" crossorigin="anonymous"></script>
<!-- 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">

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

<!-- Sentry Script -->
<script src="https://js.sentry-cdn.com/8994bf86fecf7733832520db1565ab1f.min.js" crossorigin="anonymous"></script>
</head>

<body>

<div id="navbar">
<!-- Header Component Start -->
<!-- Header Component -->
<header class="header">
<div class="container header__container">
<div class="header__logo">
Expand All @@ -38,36 +31,65 @@
<li><a href="#" class="nav__link">Profile</a></li>
</ul>
</nav>
<p id="theme-toggle">Toggle Theme</p>
<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>
<!-- Header Component End -->
</div>

<!-- Hero section -->
<div id="hero-section">
<div class="bars-container">
<div class="bar red"></div>
<div class="bar green"></div>
<div class="bar yellow"></div>
<div class="bar blue"></div>
</div>
<!-- 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>
<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>
</section>
</main>

<h1>Code-Clip</h1>
<h3>--- A tiny playground for your giant ideas</h3>
<!-- Theme Toggle -->
<div class="theme-toggle-container">
<button id="theme-toggle" class="theme-toggle-btn">Toggle Theme</button>
</div>

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

<!-- Scripts -->
<script src="scripts/app.js"></script>
<script src="./scripts/theme.js"></script>
<script src="scripts/theme.js"></script>
</body>

</html>
</html>
13 changes: 12 additions & 1 deletion scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log('app script loaded');
console.log('App script loaded');

// Hamburger menu functionality
const navToggle = document.getElementById('navToggle');
Expand All @@ -14,5 +14,16 @@ if (navToggle && navMenu) {
isOpen ? 'Close navigation menu' : 'Open navigation menu'
);
navToggle.setAttribute('aria-expanded', isOpen);

// Animate hamburger toEye icon
if (isOpen) {
navToggle.children[0].style.transform = 'rotate(45deg) translate(6px, 6px)';
navToggle.children[2].style.transform = 'rotate(-45deg) translate(6px, -6px)';
navToggle.children[1].style.opacity = '0';
} else {
navToggle.children[0].style.transform = 'rotate(0deg)';
navToggle.children[2].style.transform = 'rotate(0deg)';
navToggle.children[1].style.opacity = '1';
}
});
}
Loading