Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
203 changes: 102 additions & 101 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,115 +28,116 @@
></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>
<!-- header code ends -->

<!-- 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 class="body-wrapper">
<!-- 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>
<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>
<!-- header code ends -->

<!-- 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="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 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>
</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>
</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 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>
</div>
<div class="footer__bottom">
<p>&copy; 2024 CodeClip. All rights reserved.</p>
</div>
</div>
</footer>
<!-- footer code ends -->
</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>
</footer>
<!-- footer code ends -->
</div>


<!-- Scripts begin -->
Expand Down
57 changes: 56 additions & 1 deletion styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: flex;
flex-direction: row;
}

@media (max-width:1025px){
.hero__content{
flex-direction: column;
Expand Down Expand Up @@ -33,4 +34,58 @@
.hero__visual{
flex: 1;
padding: 0px 5%;
}
}
.footer .container{
background-color: rgb(24, 23, 23);
display: flex;
flex-direction: column;
gap: 1rem;
width: 90%;
border-radius: 20px 20px 0 0;
padding: 3% 3% 0 3%;
}
.footer{
box-sizing: border-box;
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
color: white;
}

.footer__content{
font-size: 1rem;
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 1rem;
flex: 1;
}
@media (max-width:478px){
.footer__content{
flex-direction: column;
align-items: center;
}
}
.footer__section{
flex:1;
}
.footer__bottom{
display: flex;
flex-direction: row;
justify-content: center;
background-color: transparent;
font-family: 'Oooh Baby';
flex: 1;
}
.footer .container .footer__content .footer__section ul li a{
text-decoration: none;
color: whitesmoke;
}
h4{
font-family: 'Oooh Baby';
font-size: 1.6rem;
}
.footer .container .footer__content .footer__section p{
color: whitesmoke;
}
8 changes: 7 additions & 1 deletion submit-challenge/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: linear-gradient(135deg, black 0%, #090938 100%);
min-height: 100vh;
padding: 20px;
height: 100%;
color: #333;
}
.page-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
height: 100%;
}

.container {
max-width: 900px;
Expand Down
Loading