Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc130c4fd7 |
134
assets/css/custom.css
Normal file
134
assets/css/custom.css
Normal file
@ -0,0 +1,134 @@
|
||||
/* DaurixSkills Custom Styles */
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
background-color: #F3F4F6; /* Light Gray Background */
|
||||
color: #374151; /* Slate Text */
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Poppins', sans-serif;
|
||||
color: #111827; /* Charcoal Headings */
|
||||
}
|
||||
|
||||
.navbar {
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,.05);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
width: 280px;
|
||||
z-index: 1000;
|
||||
padding-top: 56px; /* Navbar height */
|
||||
background-color: #fff;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.sidebar {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
.sidebar.active {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar .nav-link {
|
||||
color: #374151;
|
||||
padding: .75rem 1.5rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.sidebar .nav-link.active,
|
||||
.sidebar .nav-link:hover {
|
||||
color: #2563EB; /* Royal Blue */
|
||||
background-color: #eff6ff;
|
||||
}
|
||||
|
||||
.sidebar .nav-link .bi {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.sidebar-heading {
|
||||
padding: .75rem 1.5rem;
|
||||
font-size: .9rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .05em;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
|
||||
.content-wrapper {
|
||||
margin-left: 280px;
|
||||
padding-top: 56px; /* Navbar height */
|
||||
transition: margin-left 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.content-wrapper {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #2563EB;
|
||||
border-color: #2563EB;
|
||||
border-radius: 0.5rem;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #1d4ed8;
|
||||
border-color: #1d4ed8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: #10B981;
|
||||
border-color: #10B981;
|
||||
color: #fff;
|
||||
border-radius: 0.5rem;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #059669;
|
||||
border-color: #059669;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
.progress {
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background-color: #10B981; /* Emerald Green */
|
||||
}
|
||||
|
||||
.code-block {
|
||||
background-color: #111827; /* Charcoal */
|
||||
color: #e5e7eb;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
font-family: 'Fira Code', monospace;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.quiz-btn {
|
||||
background-color: #F59E0B; /* Amber/Yellow */
|
||||
border-color: #F59E0B;
|
||||
color: #111827;
|
||||
border-radius: 0.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.quiz-btn:hover {
|
||||
background-color: #d97706;
|
||||
border-color: #d97706;
|
||||
color: #000;
|
||||
}
|
||||
13
assets/js/main.js
Normal file
13
assets/js/main.js
Normal file
@ -0,0 +1,13 @@
|
||||
// DaurixSkills Custom JS
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const sidebarToggler = document.getElementById('sidebarToggler');
|
||||
const sidebar = document.getElementById('sidebar');
|
||||
|
||||
if (sidebarToggler) {
|
||||
sidebarToggler.addEventListener('click', function () {
|
||||
if (sidebar) {
|
||||
sidebar.classList.toggle('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
281
index.php
281
index.php
@ -1,150 +1,145 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@error_reporting(E_ALL);
|
||||
@date_default_timezone_set('UTC');
|
||||
|
||||
$phpVersion = PHP_VERSION;
|
||||
$now = date('Y-m-d H:i:s');
|
||||
?>
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Style</title>
|
||||
<?php
|
||||
// Read project preview data from environment
|
||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||
?>
|
||||
<?php if ($projectDescription): ?>
|
||||
<!-- Meta description -->
|
||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||
<!-- Open Graph meta tags -->
|
||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<!-- Twitter meta tags -->
|
||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($projectImageUrl): ?>
|
||||
<!-- Open Graph image -->
|
||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<!-- Twitter image -->
|
||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<?php endif; ?>
|
||||
<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=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
@keyframes bg-pan {
|
||||
0% { background-position: 0% 0%; }
|
||||
100% { background-position: 100% 100%; }
|
||||
}
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.loader {
|
||||
margin: 1.25rem auto 1.25rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.hint {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; border: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
code {
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Daurix Skills</title>
|
||||
<meta name="description" content="Built with Flatlogic Generator">
|
||||
<meta name="keywords" content="PHP, MySQL, course display system, W3Schools style, GeeksforGeeks style, online learning, code compiler, student progress, DaurixSkills, web development tutorials, Built with Flatlogic Generator">
|
||||
|
||||
<!-- Social Media Meta Tags -->
|
||||
<meta property="og:title" content="Daurix Skills">
|
||||
<meta property="og:description" content="Built with Flatlogic Generator">
|
||||
<meta property="og:image" content="">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:image" content="">
|
||||
|
||||
<!-- Frameworks & Fonts -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
<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=Poppins:wght@400;600;700&family=Roboto:wght@400;500&family=Fira+Code&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="assets/css/custom.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your website…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
</div>
|
||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||
|
||||
<!-- Top Navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-white fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand fw-bold text-primary" href="#">DaurixSkills</a>
|
||||
<button class="navbar-toggler" type="button" id="sidebarToggler" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Courses</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="bi bi-person-circle"></i> Guest
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
||||
<li><a class="dropdown-item" href="#">Login</a></li>
|
||||
<li><a class="dropdown-item" href="#">Register</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar" id="sidebar">
|
||||
<nav class="nav flex-column pt-4">
|
||||
<h6 class="sidebar-heading px-3 mt-4 mb-1">HTML Basics</h6>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-text"></i> HTML Introduction</a>
|
||||
<a class="nav-link active" href="#"><i class="bi bi-file-earmark-text"></i> HTML Elements</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-text"></i> HTML Attributes</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-text"></i> HTML Headings</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-text"></i> HTML Paragraphs</a>
|
||||
|
||||
<h6 class="sidebar-heading px-3 mt-4 mb-1">CSS Basics</h6>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-css"></i> CSS Introduction</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-css"></i> CSS Syntax</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-css"></i> CSS Selectors</a>
|
||||
|
||||
<h6 class="sidebar-heading px-3 mt-4 mb-1">JavaScript Basics</h6>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-code"></i> JS Introduction</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-code"></i> JS Output</a>
|
||||
<a class="nav-link" href="#"><i class="bi bi-file-earmark-code"></i> JS Statements</a>
|
||||
</nav>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||
</footer>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main class="content-wrapper p-4">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<h5 class="fw-bold">Your Progress</h5>
|
||||
<div class="progress" style="height: 20px;">
|
||||
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<article>
|
||||
<h1 class="fw-bold">HTML Elements</h1>
|
||||
<p class="lead">An HTML element is defined by a start tag, some content, and an end tag.</p>
|
||||
|
||||
<hr class="my-4">
|
||||
|
||||
<p>The HTML <strong>element</strong> is everything from the start tag to the end tag:</p>
|
||||
<p class="text-center fst-italic"><code><tagname>Content goes here...</tagname></code></p>
|
||||
<p>Examples of some HTML elements:</p>
|
||||
<ul>
|
||||
<li><code><h1>My First Heading</h1></code></li>
|
||||
<li><code><p>My first paragraph.</p></code></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="mt-5">Code Example</h2>
|
||||
<p>The following example shows a simple HTML document structure with a heading and a paragraph.</p>
|
||||
|
||||
<div class="code-block my-4">
|
||||
<pre><code><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Page Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>This is a Heading</h1>
|
||||
<p>This is a paragraph.</p>
|
||||
|
||||
</body>
|
||||
</html></code></pre>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-center my-4">
|
||||
<a href="#" class="btn btn-lg quiz-btn"><i class="bi bi-question-circle-fill"></i> Take the Quiz!</a>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
<!-- Navigation Buttons -->
|
||||
<div class="d-flex justify-content-between mt-5">
|
||||
<a href="#" class="btn btn-lg btn-primary"><i class="bi bi-arrow-left-circle"></i> Previous</a>
|
||||
<a href="#" class="btn btn-lg btn-secondary">Next <i class="bi bi-arrow-right-circle"></i></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- Custom JS -->
|
||||
<script src="assets/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user