portfolio: terminal Debian plein ecran, sans components — prompt/input dans le flux de sortie
This commit is contained in:
parent
fa21a16f90
commit
008eefbb3f
4 changed files with 155 additions and 261 deletions
|
|
@ -1,187 +1,112 @@
|
|||
/* Terminal portfolio — zektyc */
|
||||
:root {
|
||||
--term-bg: #0b0e12;
|
||||
--term-bg-bar: #151a20;
|
||||
--term-text: #c9d1d9;
|
||||
--term-dim: #8b949e;
|
||||
--term-green: #56d364;
|
||||
--term-blue: #58a6ff;
|
||||
--term-red: #ff6b6b;
|
||||
--term-border: rgba(88, 166, 255, 0.18);
|
||||
/* Terminal portfolio — zektyc — console Debian plein ecran */
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.portfolio-main {
|
||||
max-width: 900px;
|
||||
margin: 2rem auto;
|
||||
padding: 0 1.25rem;
|
||||
flex: 1 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.portfolio-head {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.portfolio-head h1 {
|
||||
font-family: var(--font-head);
|
||||
font-size: clamp(1.6rem, 4vw, 2.2rem);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.portfolio-head p {
|
||||
color: var(--text-muted);
|
||||
body {
|
||||
font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
||||
color: #d8d8d8;
|
||||
}
|
||||
|
||||
.terminal {
|
||||
--radius: 12px;
|
||||
background: var(--term-bg);
|
||||
border: 1px solid var(--term-border);
|
||||
border-radius: var(--radius);
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.55;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .terminal {
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.terminal-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
background: var(--term-bg-bar);
|
||||
padding: 0.55rem 0.85rem;
|
||||
border-bottom: 1px solid var(--term-border);
|
||||
color: var(--term-dim);
|
||||
font-size: 0.75rem;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.terminal-dots {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.terminal-dots i {
|
||||
width: 0.7rem;
|
||||
height: 0.7rem;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.terminal-dots i:nth-child(1) { background: #ff5f57; }
|
||||
.terminal-dots i:nth-child(2) { background: #febc2e; }
|
||||
.terminal-dots i:nth-child(3) { background: #28c840; }
|
||||
|
||||
.terminal-title {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.terminal-body {
|
||||
padding: 0.9rem 1rem 1.2rem;
|
||||
height: min(62vh, 620px);
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 10px 14px 18px;
|
||||
font-size: 15px;
|
||||
line-height: 1.45;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #2a2a2a #000;
|
||||
}
|
||||
|
||||
.terminal-body::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.terminal-body::-webkit-scrollbar-track {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.terminal-body::-webkit-scrollbar-thumb {
|
||||
background: #2a2a2a;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.terminal-line {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
min-height: 1.2em;
|
||||
min-height: 1.25em;
|
||||
}
|
||||
|
||||
.terminal-line .t-dim { color: var(--term-dim); }
|
||||
.terminal-line .t-green { color: var(--term-green); }
|
||||
.terminal-line .t-blue { color: var(--term-blue); }
|
||||
.terminal-line .t-red { color: var(--term-red); }
|
||||
|
||||
.terminal-line a {
|
||||
color: var(--term-blue);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
.term-line-input {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.term-ascii {
|
||||
color: var(--term-green);
|
||||
white-space: pre;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.term-prompts {
|
||||
margin-top: 0.6rem;
|
||||
}
|
||||
|
||||
.term-input-row {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.45rem;
|
||||
line-height: 1.25;
|
||||
color: #4af626;
|
||||
}
|
||||
|
||||
.term-prompt {
|
||||
color: var(--term-green);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.term-prompt .t-user {
|
||||
color: var(--term-green);
|
||||
color: #4af626;
|
||||
}
|
||||
|
||||
.term-prompt .t-path {
|
||||
color: var(--term-blue);
|
||||
color: #5387ff;
|
||||
}
|
||||
|
||||
.term-input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: var(--term-text);
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
caret-color: var(--term-green);
|
||||
border: 0;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
caret-color: #4af626;
|
||||
}
|
||||
|
||||
.term-input::selection {
|
||||
background: rgba(88, 166, 255, 0.35);
|
||||
background: rgba(84, 135, 255, 0.4);
|
||||
}
|
||||
|
||||
.term-cursor-blink {
|
||||
animation: term-blink 1.1s steps(1) infinite;
|
||||
.terminal-line a {
|
||||
color: #5387ff;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
@keyframes term-blink {
|
||||
50% { opacity: 0; }
|
||||
.terminal-line .t-dim {
|
||||
color: #9a9a9a;
|
||||
}
|
||||
|
||||
.terminal-line .t-red {
|
||||
color: #ff5252;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.portfolio-main {
|
||||
margin-top: 1.25rem;
|
||||
padding: 0 0.6rem;
|
||||
}
|
||||
|
||||
.terminal-body {
|
||||
height: min(70vh, 520px);
|
||||
font-size: 0.78rem;
|
||||
padding: 0.7rem 0.75rem 1rem;
|
||||
}
|
||||
|
||||
.terminal-bar {
|
||||
padding: 0.45rem 0.6rem;
|
||||
}
|
||||
|
||||
.term-ascii {
|
||||
font-size: 0.72rem;
|
||||
font-size: 16px;
|
||||
padding: 8px 10px 14px;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue