Skip to content

Commit d0a68c1

Browse files
committed
Proper project setup done.
Signed-off-by: Someshdiwan <Someshdiwan369@gmail.com>
1 parent 1dff4d0 commit d0a68c1

File tree

4 files changed

+38
-15
lines changed

4 files changed

+38
-15
lines changed

site/_layouts/default.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717

1818
<meta name="theme-color" content="#ffffff">
1919

20-
<!--
21-
<link rel="manifest" href="{{ '/assets/site.webmanifest' | relative_url }}" />
22-
<link rel="manifest" href="/Java-Mastery/assets/site.webmanifest">
23-
-->
24-
2520
<title>{{ page.title }}</title>
2621
<link rel="stylesheet" href="{{ "/assets/style.css" | relative_url }}">
2722
<script>
@@ -88,7 +83,7 @@
8883
const offsetSign = offset > 0 ? '-' : '+';
8984
const offsetString = `GMT${offsetSign}${offsetHours.toString().padStart(2, '0')}:${offsetMinutes.toString().padStart(2, '0')}`;
9085

91-
document.getElementById('live-time').textContent = `Time: ${timeString} ${offsetString}`;
86+
document.getElementById('live-time').textContent = `Time: ${timeString} ${offsetString}`;
9287
}
9388

9489
// Fetch and Display User Location using OpenStreetMap API

site/assets/style.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,33 @@ body {
158158
/* Optional: Add a dark-mode outline for visibility */
159159
.dark-mode .responsive-img {
160160
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
161-
}
161+
}
162+
163+
/* for the Location and Time Container */
164+
<style>
165+
#time-location-container {
166+
max-width: 300px;
167+
margin: 1rem auto;
168+
padding: 1rem;
169+
border-radius: 12px;
170+
background-color: #f0f0f0;
171+
color: #222;
172+
font-size: 1rem;
173+
font-weight: 500;
174+
text-align: center;
175+
box-shadow: 0 0 10px rgba(0,0,0,0.05);
176+
transition: background-color 0.3s, color 0.3s;
177+
}
178+
179+
body.dark-mode #time-location-container {
180+
background-color: #333;
181+
color: #eee;
182+
}
183+
184+
@media (max-width: 600px) {
185+
#time-location-container {
186+
font-size: 0.95rem;
187+
margin: 1rem 1rem;
188+
}
189+
}
190+
</style>

site/home.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@ title: Home
55

66
<!-- This is just a static copy of your README.md content -->
77

8-
# JavaEvolution: Learning, Growing, Mastering 🚀
9-
10-
Welcome to the ultimate guide for mastering Java — from basics to advanced!
11-
128
<!-- ... Rest of your README.md copied here ... -->

site/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ title: Home
55

66
# JavaEvolution: Learning, Growing, Mastering
77

8-
<div id="time-location-box" style="font-size: 1.3rem; font-weight: bold; margin-bottom: 1rem; text-align: center;">
9-
<div id="live-time">⏰ Loading time...</div>
10-
<div id="user-location">📍 Detecting location...</div>
8+
<!-- Time & Location Container -->
9+
<div id="time-location-container">
10+
<div id="live-time">Time: Loading...</div>
11+
<div id="user-location">Location: Detecting...</div>
1112
</div>
1213

1314
Welcome to JavaEvolution, your one-stop guide for mastering Java from basics to advanced concepts.
14-
This repository is structured for learners at every level, featuring categorized content, guides, examples, and best practices.
15+
This repository is structured for learners at every level, featuring categorized content, guides, examples, and best practices.
16+
17+
In this Index.md i added normal Main page README.md file Work is in progresses.

0 commit comments

Comments
 (0)