Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Home Page #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Binary file added DevDocsHub/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added DevDocsHub/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file added DevDocsHub/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file added DevDocsHub/__pycache__/wsgi.cpython-312.pyc
Binary file not shown.
Binary file added Docs/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added Docs/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file added Docs/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file added Docs/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file added Docs/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file added Docs/__pycache__/views.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file added Docs/migrations/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
55 changes: 43 additions & 12 deletions Docs/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
background-color: #f9f9f9;
background-color: #afeeee;
color: #333;
transition: background-color 0.3s ease, color 0.3s ease;
}
nav {
background-color: #007bff;
padding: 10px;
background-color: #fffacd;
padding: 5px 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: fixed ;
width: 100%;
}
nav ul {
list-style-type: none;
Expand All @@ -33,13 +35,13 @@
margin: 0 15px;
}
nav ul li a {
color: #fff;
color: #191970;
text-decoration: none;
padding: 10px 20px;
transition: background-color 0.3s ease;
}
nav ul li a:hover {
background-color: #0056b3;
background-color: #ffff00;
border-radius: 5px;
}
header {
Expand All @@ -52,17 +54,19 @@
header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
color: #191970;
}
header p {
font-size: 1.2rem;
color: #191970;
}
.container {
max-width: 1200px;
margin: 50px auto;
padding: 20px;
}
.card {
background-color: #fff;
background-color: #fffacd;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
Expand All @@ -77,6 +81,10 @@
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.highlight {
background-color: #0000ff;
transition: background-color 1s ease;
}
.card h2 {
font-size: 1.8rem;
margin-bottom: 15px;
Expand Down Expand Up @@ -118,6 +126,7 @@
font-size: 1rem;
border-radius: 5px;
border: 1px solid #ccc;

}

/* Dark Mode Styles */
Expand All @@ -134,6 +143,12 @@
.dark-mode nav ul li a {
color: #ddd;
}
.dark-mode header h1 {
color: #ddd;
}
.dark-mode header p{
color: #ddd;
}
.dark-mode .card {
background-color: #444;
}
Expand Down Expand Up @@ -167,16 +182,16 @@

.dark-mode-toggle {
position: fixed;
bottom: 20px; /* Distance from the bottom of the viewport */
right: 20px; /* Distance from the right of the viewport */
bottom: 20px;
right: 20px;
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
z-index: 1000; /* Ensure the button is above other content */
z-index: 1000;
}

.dark-mode-toggle:hover {
Expand All @@ -189,7 +204,7 @@
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Languages</a></li>
<li><a href="#" id="languagesLink">Languages</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
Expand All @@ -205,7 +220,7 @@ <h1>Welcome to DevDocsHub</h1>
<input type="text" placeholder="Search documentation...">
</div>

<section class="grid">
<section class="grid" id="languagesSection">
<div class="card">
<h2>Programming Languages</h2>
<p>Explore comprehensive documentation for a wide range of programming languages such as Python, JavaScript, Java, C++, and more.</p>
Expand All @@ -232,10 +247,26 @@ <h2>Tutorials & Guides</h2>
<button class="dark-mode-toggle" onclick="toggleDarkMode()">Dark Mode</button>

<script>
// Toggle dark mode function

function toggleDarkMode() {
document.body.classList.toggle('dark-mode');
}


document.getElementById('languagesLink').addEventListener('click', function (event) {
event.preventDefault();


document.getElementById('languagesSection').scrollIntoView({ behavior: 'smooth' });


const section = document.getElementById('languagesSection');
section.classList.add('highlight');

setTimeout(() => {
section.classList.remove('highlight');
}, 2000);
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion venv/pyvenv.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ home = C:\Users\PRASHANT ANDORIYA\AppData\Local\Programs\Python\Python311
include-system-site-packages = false
version = 3.11.0
executable = C:\Users\PRASHANT ANDORIYA\AppData\Local\Programs\Python\Python311\python.exe
command = C:\Users\PRASHANT ANDORIYA\AppData\Local\Programs\Python\Python311\python.exe -m venv D:\DevDocsHub\venv
command = C:\Users\PRASHANT ANDORIYA\AppData\Local\Programs\Python\Python311\python.exe -m venv D:\DevDocsHub\venv