Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Shafiyev authored Jul 15, 2023
1 parent 16a366b commit 747198a
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docusourus_meta/about.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<title>About - My Docusaurus Project</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>

<main>
<section>
<h1>About</h1>
<p>This is the about page of the Docusaurus project.</p>
</section>
</main>

<script src="./docusourus.js"></script>
</body>
</html>
29 changes: 29 additions & 0 deletions docusourus_meta/contact.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<title>Contact - My Docusaurus Project</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>

<main>
<section>
<h1>Contact</h1>
<p>Contact us for any inquiries or feedback.</p>
</section>
</main>

<script src="./docusourus.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions docusourus_meta/docusourus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Add some interactivity

// Example: Changing the page title dynamically
const currentPage = window.location.pathname.split("/").pop();
document.title = currentPage.charAt(0).toUpperCase() + currentPage.slice(1) + " - My Docusaurus Project";

// Example: Adding active class to the current page link in the navigation
const currentLink = document.querySelector(`nav ul li a[href="${currentPage}"]`);
if (currentLink) {
currentLink.classList.add("active");
}
28 changes: 28 additions & 0 deletions docusourus_meta/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>My Docusaurus Project</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>

<main>
<section>
<h1>Welcome to My Docusaurus Project</h1>
</section>
</main>

<script src="./docusourus.js"></script>
</body>
</html>
44 changes: 44 additions & 0 deletions docusourus_meta/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}

header {
background-color: #f2f2f2;
padding: 20px;
}

nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}

nav ul li {
margin-right: 20px;
}

nav ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
}

nav ul li a:hover {
color: #555;
}

main {
padding: 20px;
}

section {
margin-bottom: 20px;
}

h1 {
margin-top: 0;
}

0 comments on commit 747198a

Please sign in to comment.