notita.tmpl 8.4 KB

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