5uck1t commited on
Commit
07280d0
·
verified ·
1 Parent(s): 282d72a

can you make the output the whole height of the screen?

Browse files
Files changed (2) hide show
  1. index.html +18 -19
  2. style.css +29 -0
index.html CHANGED
@@ -29,13 +29,13 @@
29
  </script>
30
  </head>
31
  <body class="bg-gray-900 text-gray-100 min-h-screen">
32
- <div class="container mx-auto px-4 py-8">
33
- <h1 class="text-3xl font-bold mb-6 text-primary-500">CodeCraft Input Symphony <span class="text-secondary-500">🎹</span></h1>
34
- <div class="flex flex-col lg:flex-row gap-6">
35
  <!-- Left Column - Inputs -->
36
- <div class="lg:w-1/3">
37
- <div class="bg-gray-800 rounded-lg shadow-xl p-4 h-full">
38
- <div class="mb-4">
39
  <label for="class-name" class="block text-sm font-medium text-gray-300 mb-1">Class Name</label>
40
  <input type="text" id="class-name" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 text-gray-100 focus:border-primary-500 focus:ring-1 focus:ring-primary-500" placeholder="MyClass">
41
  </div>
@@ -59,16 +59,15 @@
59
  </button>
60
  </div>
61
  </div>
62
-
63
- <button id="generate-btn" class="mt-6 w-full bg-secondary-500 hover:bg-secondary-600 text-white py-2 px-4 rounded-lg font-medium flex items-center justify-center">
64
- <i data-feather="play" class="w-4 h-4 mr-2"></i> Generate Output
65
  </button>
66
  </div>
67
  </div>
68
  <!-- Right Column - Output with Tabs -->
69
- <div class="lg:w-2/3">
70
- <div class="bg-gray-800 rounded-lg overflow-hidden shadow-xl">
71
- <!-- Tabs -->
72
  <div class="flex border-b border-gray-700">
73
  <button class="tab-btn active px-4 py-2 text-primary-500 font-medium" data-tab="output">
74
  <i data-feather="file-text" class="w-4 h-4 mr-2"></i> Output
@@ -82,15 +81,15 @@
82
  </div>
83
 
84
  <!-- Tab Content -->
85
- <div class="p-4">
86
- <div id="output" class="tab-content active">
87
- <textarea class="w-full h-96 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 focus:border-primary-500 focus:ring-1 focus:ring-primary-500 resize-none" readonly></textarea>
88
  </div>
89
- <div id="preview" class="tab-content hidden">
90
- <div class="w-full h-96 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 overflow-auto preview-content"></div>
91
  </div>
92
- <div id="raw" class="tab-content hidden">
93
- <textarea class="w-full h-96 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 focus:border-primary-500 focus:ring-1 focus:ring-primary-500 resize-none raw-content"></textarea>
94
  </div>
95
  </div>
96
  </div>
 
29
  </script>
30
  </head>
31
  <body class="bg-gray-900 text-gray-100 min-h-screen">
32
+ <div class="container mx-auto px-4 py-4">
33
+ <h1 class="text-3xl font-bold mb-6 text-primary-500">CodeCraft Input Symphony <span class="text-secondary-500">🎹</span></h1>
34
+ <div class="flex flex-col lg:flex-row gap-6 h-full">
35
  <!-- Left Column - Inputs -->
36
+ <div class="lg:w-1/3 h-full">
37
+ <div class="bg-gray-800 rounded-lg shadow-xl p-4 h-full flex flex-col">
38
+ <div class="mb-4">
39
  <label for="class-name" class="block text-sm font-medium text-gray-300 mb-1">Class Name</label>
40
  <input type="text" id="class-name" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 text-gray-100 focus:border-primary-500 focus:ring-1 focus:ring-primary-500" placeholder="MyClass">
41
  </div>
 
59
  </button>
60
  </div>
61
  </div>
62
+ <button id="generate-btn" class="mt-auto w-full bg-secondary-500 hover:bg-secondary-600 text-white py-2 px-4 rounded-lg font-medium flex items-center justify-center">
63
+ <i data-feather="play" class="w-4 h-4 mr-2"></i> Generate Output
 
64
  </button>
65
  </div>
66
  </div>
67
  <!-- Right Column - Output with Tabs -->
68
+ <div class="lg:w-2/3 h-full">
69
+ <div class="bg-gray-800 rounded-lg overflow-hidden shadow-xl h-full">
70
+ <!-- Tabs -->
71
  <div class="flex border-b border-gray-700">
72
  <button class="tab-btn active px-4 py-2 text-primary-500 font-medium" data-tab="output">
73
  <i data-feather="file-text" class="w-4 h-4 mr-2"></i> Output
 
81
  </div>
82
 
83
  <!-- Tab Content -->
84
+ <div class="p-4 flex-1 flex flex-col">
85
+ <div id="output" class="tab-content active flex flex-col flex-1">
86
+ <textarea class="w-full flex-1 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 focus:border-primary-500 focus:ring-1 focus:ring-primary-500 resize-none" readonly></textarea>
87
  </div>
88
+ <div id="preview" class="tab-content hidden flex flex-col flex-1">
89
+ <div class="w-full flex-1 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 overflow-auto preview-content"></div>
90
  </div>
91
+ <div id="raw" class="tab-content hidden flex flex-col flex-1">
92
+ <textarea class="w-full flex-1 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 focus:border-primary-500 focus:ring-1 focus:ring-primary-500 resize-none raw-content"></textarea>
93
  </div>
94
  </div>
95
  </div>
style.css CHANGED
@@ -1,8 +1,37 @@
 
1
  /* Global Styles */
2
  body {
3
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
4
  }
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  /* Tab Styles */
7
  .tab-content {
8
  display: none;
 
1
+
2
  /* Global Styles */
3
  body {
4
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
5
  }
6
 
7
+ /* Full height layout */
8
+ .container {
9
+ height: calc(100vh - 4rem); /* Account for padding */
10
+ }
11
+
12
+ .flex-col {
13
+ height: 100%;
14
+ }
15
+
16
+ .lg\\:w-1\\/3, .lg\\:w-2\\/3 {
17
+ height: 100%;
18
+ }
19
+
20
+ .bg-gray-800 {
21
+ height: 100%;
22
+ display: flex;
23
+ flex-direction: column;
24
+ }
25
+
26
+ .tab-content {
27
+ flex: 1;
28
+ min-height: 0;
29
+ }
30
+
31
+ textarea, .preview-content {
32
+ height: 100% !important;
33
+ min-height: 0;
34
+ }
35
  /* Tab Styles */
36
  .tab-content {
37
  display: none;