notita.tmpl 8.7 KB

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