| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- <!DOCTYPE html>
- <html lang="ro">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/png" href="/favicon.png">
- <title>{{.Titlu}}</title>
- <script src="https://cdn.tailwindcss.com"></script>
- <style>
- :root {
- --bg-main: #0b0d12;
- --bg-panel: #11151b;
- --bg-card: #161b22;
- --border: #2a3140;
- --border-soft: #222833;
- --text-main: #e5e7eb;
- --text-muted: #9ca3af;
- --text-soft: #6b7280;
- --accent: #a78bfa;
- --accent-strong: #8b5cf6;
- --code-bg: #0d1117;
- --inline-code-bg: #1b2130;
- }
- body {
- background:
- radial-gradient(circle at top, rgba(139, 92, 246, 0.08), transparent 30%),
- var(--bg-main);
- color: var(--text-main);
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- line-height: 1.75;
- }
- .note-shell {
- max-width: 980px;
- margin: 0 auto;
- padding: 32px 20px 60px;
- }
- .topbar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 16px;
- margin-bottom: 20px;
- }
- .back-link {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- background: var(--bg-card);
- border: 1px solid var(--border);
- color: var(--text-muted);
- text-decoration: none;
- padding: 10px 14px;
- border-radius: 12px;
- font-size: 0.95rem;
- transition: all 0.2s ease;
- }
- .back-link:hover {
- color: white;
- border-color: var(--accent-strong);
- background: #1a2030;
- }
- .obsidian-content {
- background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-panel);
- border: 1px solid var(--border);
- border-radius: 24px;
- padding: 40px 32px;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
- }
- .note-header {
- border-bottom: 1px solid var(--border-soft);
- padding-bottom: 20px;
- margin-bottom: 28px;
- }
- .note-label {
- display: inline-block;
- color: var(--accent);
- background: rgba(167, 139, 250, 0.08);
- border: 1px solid rgba(167, 139, 250, 0.18);
- padding: 6px 10px;
- border-radius: 999px;
- font-size: 0.78rem;
- font-weight: 700;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- margin-bottom: 14px;
- }
- .note-title {
- color: #f5f3ff;
- font-size: clamp(2.2rem, 5vw, 3.6rem);
- font-weight: 800;
- line-height: 1.1;
- margin: 0;
- letter-spacing: -0.03em;
- }
- .note-body {
- color: var(--text-main);
- font-size: 1.02rem;
- }
- .note-body h1,
- .note-body h2,
- .note-body h3,
- .note-body h4,
- .note-body h5,
- .note-body h6 {
- scroll-margin-top: 24px;
- }
- .note-body h1 {
- color: #f5f3ff;
- font-size: 2.1rem;
- font-weight: 800;
- margin-top: 2.6rem;
- margin-bottom: 1rem;
- letter-spacing: -0.02em;
- }
- .note-body h2 {
- color: var(--accent);
- font-size: 1.45rem;
- font-weight: 700;
- margin-top: 2.4rem;
- margin-bottom: 0.9rem;
- padding-bottom: 0.55rem;
- border-bottom: 1px solid var(--border-soft);
- }
- .note-body h3 {
- color: #d1d5db;
- font-size: 1.1rem;
- font-weight: 700;
- margin-top: 1.8rem;
- margin-bottom: 0.75rem;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- }
- .note-body p {
- margin-bottom: 1.15rem;
- color: #d1d5db;
- }
- .note-body strong {
- color: white;
- font-weight: 700;
- }
- .note-body em {
- color: #ddd6fe;
- }
- .note-body a {
- color: #c4b5fd;
- text-decoration: none;
- border-bottom: 1px solid rgba(196, 181, 253, 0.35);
- transition: color 0.2s ease, border-color 0.2s ease;
- }
- .note-body a:hover {
- color: white;
- border-color: rgba(255, 255, 255, 0.55);
- }
- .note-body hr {
- border: 0;
- border-top: 1px solid var(--border);
- margin: 2.6rem 0;
- }
- .note-body ul,
- .note-body ol {
- margin: 1rem 0 1.3rem;
- padding-left: 1.4rem;
- }
- .note-body ul {
- list-style: none;
- padding-left: 0;
- }
- .note-body ul li {
- position: relative;
- padding-left: 1.4rem;
- margin-bottom: 0.6rem;
- color: #d1d5db;
- }
- .note-body ul li::before {
- content: "";
- position: absolute;
- left: 0;
- top: 0.72em;
- width: 8px;
- height: 8px;
- border-radius: 999px;
- background: var(--accent);
- box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
- transform: translateY(-50%);
- }
- .note-body ol li {
- margin-bottom: 0.55rem;
- }
- .note-body blockquote {
- margin: 1.6rem 0;
- padding: 1rem 1.1rem 1rem 1.2rem;
- border-left: 4px solid var(--accent-strong);
- background: rgba(167, 139, 250, 0.06);
- border-radius: 0 14px 14px 0;
- color: #ddd6fe;
- }
- .note-body pre {
- background-color: var(--code-bg);
- padding: 1.2rem 1.25rem;
- border-radius: 16px;
- border: 1px solid var(--border);
- overflow-x: auto;
- margin: 1.5rem 0;
- box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
- }
- .note-body code {
- font-family: 'Consolas', 'Monaco', monospace;
- font-size: 0.94rem;
- color: #e5e7eb;
- }
- .note-body p code,
- .note-body li code,
- .note-body td code,
- .note-body blockquote code {
- background: var(--inline-code-bg);
- border: 1px solid #30384a;
- padding: 0.18rem 0.42rem;
- border-radius: 8px;
- color: #ddd6fe;
- }
- .note-body pre code {
- background: transparent;
- border: none;
- padding: 0;
- border-radius: 0;
- color: #e5e7eb;
- }
- .note-body table {
- width: 100%;
- border-collapse: collapse;
- margin: 1.8rem 0;
- font-size: 0.96rem;
- overflow: hidden;
- border-radius: 16px;
- border-style: hidden;
- box-shadow: 0 0 0 1px var(--border);
- }
- .note-body th {
- text-align: left;
- padding: 14px 16px;
- background: #1b2230;
- color: var(--accent);
- font-weight: 700;
- border-bottom: 1px solid var(--border);
- }
- .note-body td {
- padding: 14px 16px;
- border-top: 1px solid var(--border-soft);
- color: #d1d5db;
- background: #141922;
- }
- .note-body img {
- max-width: 100%;
- border-radius: 18px;
- border: 1px solid var(--border);
- margin: 1.5rem 0;
- }
- @media (max-width: 768px) {
- .note-shell {
- padding: 20px 14px 40px;
- }
- .obsidian-content {
- padding: 24px 18px;
- border-radius: 18px;
- }
- .topbar {
- flex-direction: column;
- align-items: stretch;
- }
- .back-link {
- justify-content: center;
- }
- }
- </style>
- </head>
- <body>
- <div class="note-shell">
- <div class="topbar">
- <a href="/list_notes" class="back-link">← Înapoi la listă</a>
- </div>
- <article class="obsidian-content">
- <header class="note-header">
- <div class="note-label">Notiță</div>
- <h1 class="note-title">{{.Titlu}}</h1>
- </header>
- <section class="note-body">
- {{.HTML}}
- </section>
- </article>
- </div>
- </body>
- </html>
|