|
15 | 15 | <link rel="stylesheet" href="styles.css"> |
16 | 16 | </head> |
17 | 17 | <body class="bg-gray-100 font-sans flex flex-col h-screen dark:bg-gray-900 transition-colors"> |
18 | | - <header class="bg-gray-200 text-gray-900 p-4 flex items-center justify-between dark:bg-gray-900 dark:text-white transition-colors"> |
19 | | - <button id="sidebar-toggle" onclick="toggleSidebar()" class="bg-gray-300 text-gray-900 text-xl p-2 hover:bg-gray-400 rounded transition-colors dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700" type="button">☰</button> |
| 18 | + <header class="bg-white text-gray-900 p-4 flex items-center justify-between dark:bg-gray-900 dark:text-white transition-colors border-b border-gray-200 dark:border-gray-700"> |
| 19 | + <button id="sidebar-toggle" onclick="toggleSidebar()" class="bg-gray-200 text-gray-900 text-xl p-2 hover:bg-gray-300 rounded transition-colors dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700" type="button">☰</button> |
20 | 20 | <div class="flex items-center space-x-3 ml-4"> |
21 | 21 | <svg class="w-8 h-8" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> |
22 | 22 | <path d="M8 6L24 6C25.1046 6 26 6.89543 26 8V24C26 25.1046 25.1046 26 24 26H8C6.89543 26 6 25.1046 6 24V8C6 6.89543 6.89543 6 8 6Z" fill="#60A5FA" stroke="#3B82F6" stroke-width="2"/> |
|
29 | 29 | <h1 class="text-2xl font-bold">massCode-Web</h1> |
30 | 30 | </div> |
31 | 31 | <div class="flex items-center space-x-2 ml-auto"> |
32 | | - <button id="theme-toggle" class="bg-gray-300 text-gray-900 p-2 rounded hover:bg-gray-400 transition-colors dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700" title="Toggle theme"> |
| 32 | + <button id="theme-toggle" class="bg-gray-200 text-gray-900 p-2 rounded hover:bg-gray-300 transition-colors dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700" title="Toggle theme"> |
33 | 33 | 🌓 |
34 | 34 | </button> |
35 | 35 | <div class="relative"> |
36 | | - <input type="text" id="search" placeholder="Search snippets..." class="w-64 px-3 py-2 pr-8 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-gray-900 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-400 transition-colors"> |
| 36 | + <input type="text" id="search" placeholder="Search snippets..." class="w-64 px-3 py-2 pr-8 border border-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-gray-900 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-400 transition-colors"> |
37 | 37 | <button id="clear-search" class="absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors" onclick="clearSearch()" style="display: none;">×</button> |
38 | 38 | </div> |
39 | 39 | </div> |
40 | 40 | </header> |
41 | 41 | <div class="content flex flex-1 overflow-hidden"> |
42 | 42 | <div id="sidebar-backdrop" class="md:hidden"></div> |
43 | | - <aside id="sidebar" class="w-80 bg-gray-100 text-gray-900 flex flex-col transition-all duration-300 flex-shrink-0 dark:bg-gray-800 dark:text-white fixed inset-y-0 left-0 z-50 transform -translate-x-full md:relative md:w-80 md:translate-x-0 md:z-auto"> |
| 43 | + <aside id="sidebar" class="w-80 bg-white text-gray-900 flex flex-col transition-all duration-300 flex-shrink-0 dark:bg-gray-800 dark:text-white fixed inset-y-0 left-0 z-50 transform -translate-x-full md:relative md:w-80 md:translate-x-0 md:z-auto border-r border-gray-200 dark:border-gray-700"> |
44 | 44 | <div id="sidebar-content" class="flex-1 overflow-y-auto p-4"> |
45 | 45 | <!-- Tree structure will be rendered here --> |
46 | 46 | </div> |
47 | | - <footer class="p-4 border-t border-gray-300 dark:border-gray-600"> |
| 47 | + <footer class="p-4 border-t border-gray-200 dark:border-gray-600"> |
48 | 48 | <div class="flex items-center justify-between"> |
49 | 49 | <a href="https://github.com/codebude/masscode-web" target="_blank" class="text-gray-600 hover:text-gray-800 transition-colors dark:text-gray-400 dark:hover:text-white"> |
50 | 50 | <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> |
|
0 commit comments