@isthatuzii/create-nano-app
Version:
Desktop application scaffolding tool for the Nano Framework
338 lines (293 loc) • 6.56 kB
CSS
@import "./styles/global.css";
.app {
height: 100vh;
display: flex;
flex-direction: column;
background: var(--bg-primary);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
gap: 3rem;
}
/* Logo Section */
.logo-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.logo-container {
display: flex;
align-items: center;
gap: 2rem;
}
.rust-logo,
.nano-logo {
position: relative;
transition: all 0.3s ease;
cursor: pointer;
}
.rust-logo:hover,
.nano-logo:hover {
transform: scale(1.1);
filter: drop-shadow(0 0 20px currentColor);
}
.logo-placeholder {
width: 80px;
height: 80px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1rem;
border: 2px solid currentColor;
transition: all 0.3s ease;
}
.logo-placeholder.rust {
color: #ce422b;
background: rgba(206, 66, 43, 0.1);
}
.logo-placeholder.nano {
color: #0ea5e9;
background: rgba(14, 165, 233, 0.1);
}
.rust-logo:hover .logo-placeholder.rust {
background: rgba(206, 66, 43, 0.2);
box-shadow: 0 0 30px rgba(206, 66, 43, 0.3);
}
.nano-logo:hover .logo-placeholder.nano {
background: rgba(14, 165, 233, 0.2);
box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}
.plus-symbol {
font-size: 2rem;
font-weight: bold;
color: var(--text-muted);
user-select: none;
}
.app-title {
font-size: 2.5rem;
font-weight: bold;
margin: 0;
background: linear-gradient(135deg, #ce422b, #0ea5e9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-align: center;
}
.app-subtitle {
font-size: 1.1rem;
color: var(--text-secondary);
margin: 0;
text-align: center;
}
/* Greet Section */
.greet-section {
width: 100%;
max-width: 400px;
}
.greet-container {
display: flex;
flex-direction: column;
gap: 1rem;
}
.greet-label {
font-size: 1rem;
color: var(--text-primary);
font-weight: 500;
text-align: center;
}
.input-group {
display: flex;
gap: 0.5rem;
}
.greet-input {
flex: 1;
padding: 0.75rem 1rem;
background: var(--bg-secondary);
border: 2px solid var(--border-primary);
border-radius: 8px;
color: var(--text-primary);
font-size: 1rem;
transition: all 0.2s ease;
outline: none;
}
.greet-input:focus {
border-color: var(--border-accent);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.greet-input:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.greet-button {
padding: 0.75rem 1.5rem;
background: var(--border-accent);
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
min-width: 80px;
}
.greet-button:hover:not(:disabled) {
background: var(--state-info);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.greet-button:active:not(:disabled) {
transform: translateY(0);
}
.greet-button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.greet-response {
padding: 1rem;
background: var(--bg-secondary);
border: 1px solid var(--border-secondary);
border-radius: 8px;
font-size: 1rem;
text-align: center;
color: var(--text-primary);
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* IPC Demo Section */
.ipc-section {
width: 100%;
max-width: 600px;
margin-top: 2rem;
}
.ipc-container {
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: 8px;
padding: 1.5rem;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.section-header h2 {
margin: 0;
color: var(--text-primary);
font-size: 1.2rem;
font-weight: 600;
}
.toggle-button {
background: var(--border-accent);
color: white;
border: none;
border-radius: 4px;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s ease;
}
.toggle-button:hover {
background: var(--state-info);
transform: translateY(-1px);
}
.toggle-button:active {
transform: translateY(0);
}
.ipc-demo-content {
border-top: 1px solid var(--border-subtle);
padding-top: 1rem;
}
.demo-description {
color: var(--text-secondary);
margin-bottom: 1.5rem;
font-size: 0.95rem;
line-height: 1.4;
}
.ipc-buttons {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 0.75rem;
margin-bottom: 1rem;
}
.ipc-button {
background: var(--bg-primary);
color: var(--text-primary);
border: 1px solid var(--border-subtle);
border-radius: 4px;
padding: 0.75rem 0.5rem;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.2s ease;
text-align: center;
font-weight: 500;
}
.ipc-button:hover:not(:disabled) {
background: var(--border-accent);
color: white;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}
.ipc-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.ipc-result {
background: var(--bg-primary);
border: 1px solid var(--border-subtle);
border-radius: 4px;
padding: 1rem;
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
font-size: 0.9rem;
color: var(--text-primary);
word-break: break-word;
margin-top: 1rem;
animation: fadeIn 0.3s ease;
}
/* Status Bar */
.status-bar {
height: var(--statusbar-height);
background: var(--bg-secondary);
border-top: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--spacing-md);
font-size: var(--font-size-xs);
color: var(--text-muted);
user-select: none;
}
.status-left,
.status-right {
display: flex;
align-items: center;
gap: var(--spacing-sm);
}
.status-item {
color: var(--text-secondary);
}
.status-separator {
color: var(--text-muted);
opacity: 0.6;
}