Skip to content

Commit 99fda8d

Browse files
committed
'update'
1 parent c0acd47 commit 99fda8d

2 files changed

Lines changed: 59 additions & 34 deletions

File tree

script.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ async function loadContent(path) {
1616

1717
// Static welcome content
1818
const defaultStaticHTML = `
19-
<div class="welcome-block">
20-
<img src="Java.svg" alt="Java Logo" class="java-logo" />
19+
<div class="welcome-block animate-fade-in-up">
20+
<img src="Java.svg" alt="Java Logo" class="java-logo animate-logo-pop" />
2121
<h2>Let's Get Started with Java</h2>
2222
<p>Explore the structured Java path starting from Core to Senior level topics:</p>
2323
<br/>
@@ -30,6 +30,7 @@ const defaultStaticHTML = `
3030
</div>
3131
`;
3232

33+
3334
// Handle dropdown toggle
3435
document.querySelectorAll('.dropdown-btn').forEach(btn => {
3536
btn.addEventListener('click', () => {

styles.css

Lines changed: 56 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ body {
4646
font-size: var(--font-size);
4747
flex-direction: column;
4848
}
49-
/* Welcome Section */
49+
/* Welcome Section - Vertical Rotation */
5050
.welcome {
51-
top:25px;
52-
right:79px;
51+
top: 300px; /* Adjusted for better visibility */
52+
right: -160px; /* Adjusted so it's at the edge */
5353
text-align: center;
54-
position:fixed;
54+
position: fixed;
5555
font-family: 'Segoe UI', sans-serif;
56-
color: var(--fg);
5756
font-size: 1.5rem;
58-
width:38%;
59-
z-index: 400;
6057
font-weight: 600;
61-
padding: 2px 2px;
58+
width: max-content;
59+
z-index: 400;
60+
padding: 10px;
6261
background: linear-gradient(135deg, #db25b1, #fcc6259d);
6362
color: #fff;
6463
border-radius: 10px;
6564
box-shadow: 9px 8px 1px rgba(209, 49, 132, 0.468);
66-
animation: slideDown 2s ease-out;
65+
transform: rotate(-90deg);
6766
}
67+
6868
@keyframes slideDown {
6969
0% {
7070
opacity: 0;
@@ -85,26 +85,6 @@ body {
8585
display: none;
8686
}
8787

88-
.welcome {
89-
font-size: 1.5em;
90-
top:20px;
91-
right:80px;
92-
text-align: center;
93-
position:fixed;
94-
font-family: 'Segoe UI', sans-serif;
95-
color: var(--fg);
96-
font-size: 1.5rem;
97-
width:38%;
98-
font-weight: 600;
99-
padding:2px;
100-
background: linear-gradient(135deg, #dbb725, #c09e19);
101-
color: #fff;
102-
border-radius: 10px;
103-
box-shadow: 5px 12px 2px rgba(0, 0, 0, 0.714);
104-
animation: fadeIn 1s ease-out;
105-
106-
}
107-
10888
}
10989

11090

@@ -280,13 +260,23 @@ body {
280260
text-align: center;
281261
margin-bottom: 40px;
282262
}
263+
.welcome-block {
264+
background: rgba(255, 255, 255, 0.05);
265+
padding: 1.5rem;
266+
border-radius: 12px;
267+
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
268+
backdrop-filter: blur(8px);
269+
max-width: 600px;
270+
margin: auto;
271+
}
283272

284273
.java-logo {
285-
width: 60px;
286274
height: 60px;
287-
margin-bottom: 15px;
275+
display: block;
276+
margin: 0 auto 1rem;
288277
}
289278

279+
290280
.logo h2 {
291281
font-size: 24px;
292282
font-weight: 600;
@@ -890,4 +880,38 @@ caption {
890880
margin-top: 30px;
891881
padding: 10px 0;
892882
border-bottom: 2px solid #4CAF50;
893-
}
883+
}
884+
/* Fade + slide in */
885+
@keyframes fadeInUp {
886+
0% {
887+
opacity: 0;
888+
transform: translateY(30px);
889+
}
890+
100% {
891+
opacity: 1;
892+
transform: translateY(0);
893+
}
894+
}
895+
896+
.animate-fade-in-up {
897+
animation: fadeInUp 1.2s ease-out;
898+
}
899+
900+
/* Logo pop effect */
901+
@keyframes popIn {
902+
0% {
903+
opacity: 0;
904+
transform: scale(0.5) rotate(-10deg);
905+
}
906+
80% {
907+
transform: scale(1.05) rotate(3deg);
908+
}
909+
100% {
910+
opacity: 1;
911+
transform: scale(1) rotate(0deg);
912+
}
913+
}
914+
915+
.animate-logo-pop {
916+
animation: popIn 1s ease-out;
917+
}

0 commit comments

Comments
 (0)