Skip to content
Closed
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
129 changes: 24 additions & 105 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,124 +20,43 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="styles/main.css">
<!-- <link rel="stylesheet" href="styles/themes.css"> -->
<!-- <link rel="stylesheet" href="styles/challenges.css"> -->
<link rel="stylesheet" href="style.css" />
<script
src="https://js.sentry-cdn.com/8994bf86fecf7733832520db1565ab1f.min.js"
crossorigin="anonymous"
></script>
</head>
<body>
<!-- header code starts -->
<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="/" data-route="/" class="nav__link">Home</a></li>
<li><a href="pages/challenges.html" data-route="/challenges" class="nav__link active">Challenges</a></li>
<li><a href="pages/editor.html" data-route="/editor" class="nav__link">Editor</a></li>
<li><a href="pages/profile.html" data-route="/profile" class="nav__link">Profile</a></li>
<li><a href="/about" data-route="/about" class="nav__link">About</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>
<div class="logo">CodeClip</div>
<nav class="nav-links">
<a href="#">Home</a>
<a href="#">Challenges</a>
<a href="#">Editor</a>
<a href="#">Profile</a>
</nav>
<div class="hamburger" aria-label="Toggle Menu">&#9776;</div>
</header>
<!-- header code ends -->

<div class="mobile-menu">
<a href="#">Home</a>
<a href="#">Challenges</a>
<a href="#">Editor</a>
<a href="#">Profile</a>
</div>


<!-- main code starts -->
<main>
<div class="container">
<div class="hero__content">
<div class="hero__text">
<p class="hero__subtitle">πŸš€ An Interactive Coding Platform</p>
<h1 class="hero__title">
<span id="element"></span>
</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="pages/challenges.html" 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>

<div class="content">
<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>
<!-- (no changes here, keep existing main content) -->
<!-- ... copy from the existing "main" section ... -->
</main>
<!-- main code ends -->

<!-- footer code starts -->
<footer class="footer">
<div class="container">
<div class="footer__content">
<div class="footer__section">
<h4>CodeClip</h4>
<p>Master coding challenges in your browser</p>
</div>
<div class="footer__section">
<h4>Quick Links</h4>
<ul>
<li><a href="/" data-route="/">Home</a></li>
<li><a href="pages/challenges.html" data-route="/challenges">Challenges</a></li>
<li><a href="pages/editor.html" data-route="/editor">Editor</a></li>
</ul>
</div>
<div class="footer__section">
<h4>Community</h4>
<ul>
<li><a href="https://github.com/opensource-society/CodeClip">GitHub</a></li>
<li><a href="#">Discord</a></li>
<li><a href="#">Twitter</a></li>
</ul>
</div>
</div>
<div class="footer__bottom">
<p>&copy; 2024 CodeClip. All rights reserved.</p>
</div>
</div>
<!-- ... keep existing footer as is ... -->
</footer>
<!-- footer code ends -->



<!-- Scripts begin -->
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
Expand All @@ -151,7 +70,7 @@ <h4>Community</h4>
<script type="module" src="./scripts/data.js"></script>
<script type="module" src="./scripts/app.js"></script>
<script type="module" src="./scripts/theme.js"></script>
<script src="script.js"></script>
<!-- Scripts end -->

</body>
</html>
</html>
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const hamburger = document.querySelector('.hamburger');
const mobileMenu = document.querySelector('.mobile-menu');

hamburger.addEventListener('click', () => {
mobileMenu.classList.toggle('show');
});
93 changes: 93 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/* Base Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Header Styling */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: #1e1e2f;
color: white;
position: relative;
}

.logo {
font-size: 1.8rem;
font-weight: bold;
color: #00ffff;
}

/* Nav Links */
.nav-links {
display: flex;
gap: 2rem;
}

.nav-links a {
text-decoration: none;
color: white;
font-weight: 500;
position: relative;
}

.nav-links a:hover::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
background-color: #00ffff;
bottom: -4px;
left: 0;
transition: 0.3s;
}

/* Hamburger */
.hamburger {
display: none;
font-size: 2rem;
cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
display: none;
flex-direction: column;
background-color: #1e1e2f;
position: absolute;
top: 70px;
left: 0;
width: 100%;
padding: 1rem 2rem;
z-index: 10;
}

.mobile-menu a {
padding: 0.5rem 0;
text-decoration: none;
color: white;
border-bottom: 1px solid #333;
}

.mobile-menu a:last-child {
border-bottom: none;
}

.mobile-menu.show {
display: flex;
}

/* Responsive */
@media (max-width: 768px) {
.nav-links {
display: none;
}

.hamburger {
display: block;
}
}
Loading