Skip to content

Commit 1ae5457

Browse files
leyileyi
authored andcommitted
update
1 parent a7d8ab1 commit 1ae5457

1 file changed

Lines changed: 63 additions & 15 deletions

File tree

index.html

Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -444,64 +444,105 @@
444444
background: var(--bg-color);
445445
z-index: 1500;
446446
flex-direction: column;
447-
padding: 20px;
447+
padding: 40px;
448448
box-sizing: border-box;
449449
overflow-y: auto;
450+
animation: fadeIn 0.3s ease-out;
450451
}
451452

452453
#gui-header {
453454
display: flex;
454455
justify-content: space-between;
455456
align-items: center;
456-
margin-bottom: 20px;
457-
border-bottom: 1px solid var(--border-color);
458-
padding-bottom: 10px;
457+
margin-bottom: 30px;
458+
border-bottom: 2px solid var(--border-color);
459+
padding-bottom: 20px;
459460
}
460461

461462
#gui-path {
462463
font-weight: bold;
463464
color: var(--prompt-color);
464-
font-size: 1.2em;
465+
font-size: 1.8em;
466+
text-shadow: 0 0 10px var(--glow-color);
465467
}
466468

467469
#gui-grid {
468470
display: grid;
469-
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
470-
gap: 15px;
471+
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
472+
gap: 25px;
471473
flex-grow: 1;
474+
align-content: start;
472475
}
473476

474477
.gui-item {
475478
display: flex;
476479
flex-direction: column;
477480
align-items: center;
478481
text-align: center;
479-
padding: 15px;
482+
padding: 25px;
480483
border: 1px solid var(--border-color);
481-
border-radius: 8px;
484+
border-radius: 12px;
482485
cursor: pointer;
483-
transition: background 0.2s;
486+
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
487+
background: rgba(255, 255, 255, 0.02);
484488
}
485489

486490
.gui-item:hover {
487-
background: rgba(255, 255, 255, 0.05);
491+
background: rgba(255, 255, 255, 0.08);
488492
border-color: var(--highlight-color);
493+
transform: translateY(-5px);
494+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
489495
}
490496

491497
.gui-icon {
492-
font-size: 32px;
493-
margin-bottom: 10px;
498+
font-size: 48px;
499+
margin-bottom: 15px;
500+
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
494501
}
495502

496503
.gui-label {
497-
font-size: 12px;
504+
font-size: 14px;
498505
color: var(--text-color);
499506
word-break: break-word;
507+
font-weight: 500;
500508
}
501509

502510
#gui-close {
503-
font-size: 24px;
511+
font-size: 32px;
504512
cursor: pointer;
513+
color: var(--error-color);
514+
transition: transform 0.2s;
515+
}
516+
517+
#gui-close:hover {
518+
transform: scale(1.1) rotate(90deg);
519+
}
520+
521+
/* Desktop GUI Button */
522+
#desktop-gui-btn {
523+
position: fixed;
524+
top: 20px;
525+
right: 20px;
526+
background: rgba(255, 255, 255, 0.1);
527+
border: 1px solid var(--border-color);
528+
color: var(--highlight-color);
529+
padding: 8px 15px;
530+
border-radius: 6px;
531+
cursor: pointer;
532+
font-family: var(--font-stack);
533+
font-weight: bold;
534+
z-index: 100;
535+
transition: all 0.2s;
536+
}
537+
538+
#desktop-gui-btn:hover {
539+
background: var(--border-color);
540+
}
541+
542+
@media (max-width: 600px) {
543+
#desktop-gui-btn {
544+
display: none;
545+
}
505546
}
506547
</style>
507548
</head>
@@ -519,6 +560,8 @@
519560
</div>
520561
</div>
521562

563+
<div id="desktop-gui-btn" onclick="toggleGui()">☰ GUI Mode</div>
564+
522565
<!-- GUI Overlay -->
523566
<div id="gui-overlay">
524567
<div id="gui-header">
@@ -620,6 +663,7 @@
620663
<span class="command-link" onclick="runCommand('pwd')">pwd</span> - Print working directory
621664
<span class="command-link" onclick="runCommand('everything')">everything</span> - Show all content
622665
<span class="command-link" onclick="runCommand('screenfetch')">screenfetch</span> - Show system info
666+
<span class="command-link" onclick="runCommand('gui')">gui</span> - Open graphical interface
623667
<span class="command-link" onclick="runCommand('theme')">theme</span> - Switch theme (default, hacker, retro, dracula)
624668
<span class="command-link" onclick="runCommand('history')">history</span> - Show command history
625669
<span class="command-link" onclick="runCommand('date')">date</span> - Show current date and time
@@ -783,6 +827,10 @@
783827
weather: () => {
784828
return "Look out the window, human. ☁️";
785829
},
830+
gui: () => {
831+
toggleGui();
832+
return "Opening GUI mode...";
833+
},
786834
// Fun commands
787835
sudo: () => {
788836
return `<span class='error'>guest is not in the sudoers file. This incident will be reported.</span>`;

0 commit comments

Comments
 (0)