notita.tmpl 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <!DOCTYPE html>
  2. <html lang="ro">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{{.Titlu}}</title>
  7. <script src="https://cdn.tailwindcss.com"></script>
  8. <style>
  9. :root {
  10. --bg-main: #0b0d12;
  11. --bg-panel: #11151b;
  12. --bg-card: #161b22;
  13. --border: #2a3140;
  14. --border-soft: #222833;
  15. --text-main: #e5e7eb;
  16. --text-muted: #9ca3af;
  17. --text-soft: #6b7280;
  18. --accent: #a78bfa;
  19. --accent-strong: #8b5cf6;
  20. --code-bg: #0d1117;
  21. --inline-code-bg: #1b2130;
  22. }
  23. body {
  24. background:
  25. radial-gradient(circle at top, rgba(139, 92, 246, 0.08), transparent 30%),
  26. var(--bg-main);
  27. color: var(--text-main);
  28. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  29. line-height: 1.75;
  30. }
  31. .note-shell {
  32. max-width: 980px;
  33. margin: 0 auto;
  34. padding: 32px 20px 60px;
  35. }
  36. .topbar {
  37. display: flex;
  38. justify-content: space-between;
  39. align-items: center;
  40. gap: 16px;
  41. margin-bottom: 20px;
  42. }
  43. .back-link {
  44. display: inline-flex;
  45. align-items: center;
  46. gap: 8px;
  47. background: var(--bg-card);
  48. border: 1px solid var(--border);
  49. color: var(--text-muted);
  50. text-decoration: none;
  51. padding: 10px 14px;
  52. border-radius: 12px;
  53. font-size: 0.95rem;
  54. transition: all 0.2s ease;
  55. }
  56. .back-link:hover {
  57. color: white;
  58. border-color: var(--accent-strong);
  59. background: #1a2030;
  60. }
  61. .obsidian-content {
  62. background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-panel);
  63. border: 1px solid var(--border);
  64. border-radius: 24px;
  65. padding: 40px 32px;
  66. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  67. }
  68. .note-header {
  69. border-bottom: 1px solid var(--border-soft);
  70. padding-bottom: 20px;
  71. margin-bottom: 28px;
  72. }
  73. .note-label {
  74. display: inline-block;
  75. color: var(--accent);
  76. background: rgba(167, 139, 250, 0.08);
  77. border: 1px solid rgba(167, 139, 250, 0.18);
  78. padding: 6px 10px;
  79. border-radius: 999px;
  80. font-size: 0.78rem;
  81. font-weight: 700;
  82. letter-spacing: 0.08em;
  83. text-transform: uppercase;
  84. margin-bottom: 14px;
  85. }
  86. .note-title {
  87. color: #f5f3ff;
  88. font-size: clamp(2.2rem, 5vw, 3.6rem);
  89. font-weight: 800;
  90. line-height: 1.1;
  91. margin: 0;
  92. letter-spacing: -0.03em;
  93. }
  94. .note-body {
  95. color: var(--text-main);
  96. font-size: 1.02rem;
  97. }
  98. .note-body h1,
  99. .note-body h2,
  100. .note-body h3,
  101. .note-body h4,
  102. .note-body h5,
  103. .note-body h6 {
  104. scroll-margin-top: 24px;
  105. }
  106. .note-body h1 {
  107. color: #f5f3ff;
  108. font-size: 2.1rem;
  109. font-weight: 800;
  110. margin-top: 2.6rem;
  111. margin-bottom: 1rem;
  112. letter-spacing: -0.02em;
  113. }
  114. .note-body h2 {
  115. color: var(--accent);
  116. font-size: 1.45rem;
  117. font-weight: 700;
  118. margin-top: 2.4rem;
  119. margin-bottom: 0.9rem;
  120. padding-bottom: 0.55rem;
  121. border-bottom: 1px solid var(--border-soft);
  122. }
  123. .note-body h3 {
  124. color: #d1d5db;
  125. font-size: 1.1rem;
  126. font-weight: 700;
  127. margin-top: 1.8rem;
  128. margin-bottom: 0.75rem;
  129. text-transform: uppercase;
  130. letter-spacing: 0.08em;
  131. }
  132. .note-body p {
  133. margin-bottom: 1.15rem;
  134. color: #d1d5db;
  135. }
  136. .note-body strong {
  137. color: white;
  138. font-weight: 700;
  139. }
  140. .note-body em {
  141. color: #ddd6fe;
  142. }
  143. .note-body a {
  144. color: #c4b5fd;
  145. text-decoration: none;
  146. border-bottom: 1px solid rgba(196, 181, 253, 0.35);
  147. transition: color 0.2s ease, border-color 0.2s ease;
  148. }
  149. .note-body a:hover {
  150. color: white;
  151. border-color: rgba(255, 255, 255, 0.55);
  152. }
  153. .note-body hr {
  154. border: 0;
  155. border-top: 1px solid var(--border);
  156. margin: 2.6rem 0;
  157. }
  158. .note-body ul,
  159. .note-body ol {
  160. margin: 1rem 0 1.3rem;
  161. padding-left: 1.4rem;
  162. }
  163. .note-body ul {
  164. list-style: none;
  165. padding-left: 0;
  166. }
  167. .note-body ul li {
  168. position: relative;
  169. padding-left: 1.4rem;
  170. margin-bottom: 0.6rem;
  171. color: #d1d5db;
  172. }
  173. .note-body ul li::before {
  174. content: "";
  175. position: absolute;
  176. left: 0;
  177. top: 0.72em;
  178. width: 8px;
  179. height: 8px;
  180. border-radius: 999px;
  181. background: var(--accent);
  182. box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
  183. transform: translateY(-50%);
  184. }
  185. .note-body ol li {
  186. margin-bottom: 0.55rem;
  187. }
  188. .note-body blockquote {
  189. margin: 1.6rem 0;
  190. padding: 1rem 1.1rem 1rem 1.2rem;
  191. border-left: 4px solid var(--accent-strong);
  192. background: rgba(167, 139, 250, 0.06);
  193. border-radius: 0 14px 14px 0;
  194. color: #ddd6fe;
  195. }
  196. .note-body pre {
  197. background-color: var(--code-bg);
  198. padding: 1.2rem 1.25rem;
  199. border-radius: 16px;
  200. border: 1px solid var(--border);
  201. overflow-x: auto;
  202. margin: 1.5rem 0;
  203. box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  204. }
  205. .note-body code {
  206. font-family: 'Consolas', 'Monaco', monospace;
  207. font-size: 0.94rem;
  208. color: #e5e7eb;
  209. }
  210. .note-body p code,
  211. .note-body li code,
  212. .note-body td code,
  213. .note-body blockquote code {
  214. background: var(--inline-code-bg);
  215. border: 1px solid #30384a;
  216. padding: 0.18rem 0.42rem;
  217. border-radius: 8px;
  218. color: #ddd6fe;
  219. }
  220. .note-body pre code {
  221. background: transparent;
  222. border: none;
  223. padding: 0;
  224. border-radius: 0;
  225. color: #e5e7eb;
  226. }
  227. .note-body table {
  228. width: 100%;
  229. border-collapse: collapse;
  230. margin: 1.8rem 0;
  231. font-size: 0.96rem;
  232. overflow: hidden;
  233. border-radius: 16px;
  234. border-style: hidden;
  235. box-shadow: 0 0 0 1px var(--border);
  236. }
  237. .note-body th {
  238. text-align: left;
  239. padding: 14px 16px;
  240. background: #1b2230;
  241. color: var(--accent);
  242. font-weight: 700;
  243. border-bottom: 1px solid var(--border);
  244. }
  245. .note-body td {
  246. padding: 14px 16px;
  247. border-top: 1px solid var(--border-soft);
  248. color: #d1d5db;
  249. background: #141922;
  250. }
  251. .note-body img {
  252. max-width: 100%;
  253. border-radius: 18px;
  254. border: 1px solid var(--border);
  255. margin: 1.5rem 0;
  256. }
  257. @media (max-width: 768px) {
  258. .note-shell {
  259. padding: 20px 14px 40px;
  260. }
  261. .obsidian-content {
  262. padding: 24px 18px;
  263. border-radius: 18px;
  264. }
  265. .topbar {
  266. flex-direction: column;
  267. align-items: stretch;
  268. }
  269. .back-link {
  270. justify-content: center;
  271. }
  272. }
  273. </style>
  274. </head>
  275. <body>
  276. <div class="note-shell">
  277. <div class="topbar">
  278. <a href="/list_notes" class="back-link">← Înapoi la listă</a>
  279. </div>
  280. <article class="obsidian-content">
  281. <header class="note-header">
  282. <div class="note-label">Notiță</div>
  283. <h1 class="note-title">{{.Titlu}}</h1>
  284. </header>
  285. <section class="note-body">
  286. {{.HTML}}
  287. </section>
  288. </article>
  289. </div>
  290. </body>
  291. </html>