Initial commit

This commit is contained in:
Candifloss 2025-08-10 22:51:34 +05:30
parent 12c98048ae
commit 537a7836b6
8 changed files with 232 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
scss/csswatch.sh

91
css/main.css Normal file
View File

@ -0,0 +1,91 @@
.sidebar {
width: 300px;
height: calc(100vh - 60px);
background: #121212;
padding: 1.5rem;
position: fixed;
left: 0;
top: 0;
overflow-y: auto;
color: #e0e0e0;
}
.sidebar h2 {
font-size: 1.1rem;
text-transform: uppercase;
letter-spacing: 1px;
color: #888;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.preview {
margin-left: 300px;
padding: 2rem;
min-height: calc(100vh - 60px);
width: 100%;
background: #2d2d2d;
}
.preview .terminal-preview {
background: #1a1a1a;
border-radius: 8px;
padding: 1.5rem;
font-family: "Fira Code", "Courier New", monospace;
font-size: 14px;
color: #e0e0e0;
height: 300px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 60px;
background: #121212;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer .logo {
font-size: 1.2rem;
font-weight: 600;
color: #0c7a57;
}
.footer .copy-btn {
background: #0c7a57;
color: white;
border: none;
padding: 0.5rem 1.2rem;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s ease;
}
.footer .copy-btn:hover {
background: rgb(15.6537313433, 159.1462686567, 113.4895522388);
}
.footer .copy-btn:active {
transform: scale(0.98);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
background: #1a1a1a;
color: #e0e0e0;
}
.container {
display: flex;
min-height: 100vh;
padding-bottom: 60px;
}

28
index.html Normal file
View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>~/ShellStyler</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container">
<aside class="sidebar">
<h2>Segments</h2>
<!-- Segment controls will go here -->
</aside>
<main class="preview">
<div class="terminal-preview">
<!-- Prompt preview will be rendered here -->
user@host:~/Works/shell_styler$
</div>
</main>
</div>
<footer class="footer">
<h1 class="logo">~/ShellStyle.sh</h1>
<button class="copy-btn">Copy</button>
</footer>
</body>
</html>

38
scss/_footer.scss Normal file
View File

@ -0,0 +1,38 @@
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: $footer-height;
background: $bg-darker;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
.logo {
font-size: 1.2rem;
font-weight: 600;
color: $accent-color;
}
.copy-btn {
background: $accent-color;
color: white;
border: none;
padding: 0.5rem 1.2rem;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s ease;
&:hover {
background: lighten($accent-color, 8%);
}
&:active {
transform: scale(0.98);
}
}
}

19
scss/_preview.scss Normal file
View File

@ -0,0 +1,19 @@
.preview {
margin-left: $sidebar-width;
padding: 2rem;
min-height: calc(100vh - $footer-height);
width: 100%;
background: $bg-light;
.terminal-preview {
background: $bg-dark;
border-radius: 8px;
padding: 1.5rem;
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 14px;
color: $text-color;
height: 300px;
//width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
}

21
scss/_sidebar.scss Normal file
View File

@ -0,0 +1,21 @@
.sidebar {
width: $sidebar-width;
height: calc(100vh - $footer-height);
background: $bg-darker;
padding: 1.5rem;
position: fixed;
left: 0;
top: 0;
overflow-y: auto;
color: $text-color;
h2 {
font-size: 1.1rem;
text-transform: uppercase;
letter-spacing: 1px;
color: $text-muted;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
}

12
scss/_vars.scss Normal file
View File

@ -0,0 +1,12 @@
// Colors
$bg-dark: #1a1a1a;
$bg-darker: #121212;
$bg-light: #2d2d2d;
//$accent-color: #4d8bf0;
$accent-color: #0c7a57;
$text-color: #e0e0e0;
$text-muted: #888;
// Sizes
$sidebar-width: 300px;
$footer-height: 60px;

22
scss/main.scss Normal file
View File

@ -0,0 +1,22 @@
@import 'vars';
@import 'sidebar';
@import 'preview';
@import 'footer';
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: $bg-dark;
color: $text-color;
}
.container {
display: flex;
min-height: 100vh;
padding-bottom: $footer-height;
}