|
@@ -1,79 +1,331 @@
|
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
|
|
|
|
+<html lang="ro">
|
|
|
<head>
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
- <title>Obsidian Style Fixed</title>
|
|
|
|
|
|
|
+ <title>{{.Titlu}}</title>
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
<style>
|
|
<style>
|
|
|
:root {
|
|
:root {
|
|
|
- --bg-main: #161616;
|
|
|
|
|
- --bg-card: #1c1c1c;
|
|
|
|
|
- --border: #303030;
|
|
|
|
|
- --text-muted: #a3a3a3;
|
|
|
|
|
- --text-faint: #666666;
|
|
|
|
|
- --accent: #9974d0;
|
|
|
|
|
- --code-bg: #000000;
|
|
|
|
|
|
|
+ --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 {
|
|
body {
|
|
|
- background-color: var(--bg-main);
|
|
|
|
|
- color: #dcddde;
|
|
|
|
|
|
|
+ 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;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
- line-height: 1.6;
|
|
|
|
|
|
|
+ line-height: 1.75;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /* Scoping everything inside a container to avoid global mess */
|
|
|
|
|
- .obsidian-content {
|
|
|
|
|
- max-width: 850px;
|
|
|
|
|
- margin: 40px auto;
|
|
|
|
|
|
|
+ .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);
|
|
background: var(--bg-card);
|
|
|
- padding: 4rem;
|
|
|
|
|
- border-radius: 8px;
|
|
|
|
|
border: 1px solid var(--border);
|
|
border: 1px solid var(--border);
|
|
|
- box-shadow: 0 20px 50px rgba(0,0,0,0.3);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Direct Tag Styling */
|
|
|
|
|
- h1 { color: var(--accent); font-size: 4rem!important; font-weight: 700; margin-bottom: 1.5rem; }
|
|
|
|
|
- h2 { color: var(--accent); font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-top: 2.5rem; margin-bottom: 1rem; }
|
|
|
|
|
- h3 { color: var(--text-muted); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 1.5rem; }
|
|
|
|
|
-
|
|
|
|
|
- p { margin-bottom: 1.2rem; color: #bdbdbd; }
|
|
|
|
|
- strong { color: #fff; font-weight: 600; }
|
|
|
|
|
-
|
|
|
|
|
- hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
|
|
|
|
|
-
|
|
|
|
|
- /* Code Block Styling */
|
|
|
|
|
- pre {
|
|
|
|
|
- background-color: var(--code-bg) !important;
|
|
|
|
|
- padding: 1.5rem;
|
|
|
|
|
- border-radius: 6px;
|
|
|
|
|
|
|
+ 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);
|
|
border: 1px solid var(--border);
|
|
|
overflow-x: auto;
|
|
overflow-x: auto;
|
|
|
margin: 1.5rem 0;
|
|
margin: 1.5rem 0;
|
|
|
|
|
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- code {
|
|
|
|
|
|
|
+ .note-body code {
|
|
|
font-family: 'Consolas', 'Monaco', monospace;
|
|
font-family: 'Consolas', 'Monaco', monospace;
|
|
|
- font-size: 0.95rem;
|
|
|
|
|
- color: #e0e0e0;
|
|
|
|
|
|
|
+ font-size: 0.94rem;
|
|
|
|
|
+ color: #e5e7eb;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /* List Styling */
|
|
|
|
|
- ul { list-style: none; padding-left: 0; }
|
|
|
|
|
- li::before { content: "•"; color: var(--accent); font-weight: bold; display: inline-block; width: 1em; margin-left: 0; }
|
|
|
|
|
|
|
+ .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;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- /* Table Styling */
|
|
|
|
|
- table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9rem; }
|
|
|
|
|
- th { text-align: left; padding: 12px; background: #252525; border: 1px solid var(--border); color: var(--accent); }
|
|
|
|
|
- td { padding: 12px; border: 1px solid var(--border); }
|
|
|
|
|
|
|
+ .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>
|
|
</style>
|
|
|
</head>
|
|
</head>
|
|
|
-<body class="p-4 md:p-12">
|
|
|
|
|
|
|
+<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>
|
|
|
|
|
|
|
|
-<div class="obsidian-content">
|
|
|
|
|
- <h1>{{.Titlu}}</h1>
|
|
|
|
|
- {{.HTML}}
|
|
|
|
|
|
|
+ <section class="note-body">
|
|
|
|
|
+ {{.HTML}}
|
|
|
|
|
+ </section>
|
|
|
|
|
+ </article>
|
|
|
|
|
+ </div>
|
|
|
</body>
|
|
</body>
|
|
|
</html>
|
|
</html>
|