src
Code
Branches
CI
Releases
Discussions
Prompts
Insights
Settings
fichas / docs / mockups / src / _shared.html
Download this file
1 {{define "title"}}{{.Title}} · fichas mockup{{end}} 2 3 {{define "head"}} 4 <link rel="stylesheet" href="{{.Live}}static/estilo/fonts/v1/fonts.css"> 5 <link rel="stylesheet" href="{{.Live}}static/brand/brand.css"> 6 <link rel="stylesheet" href="proposed.css"> 7 {{end}} 8 9 {{define "brand"}}<a rst-shell-brand href="index.html"><span estilo-brand><img estilo-brand-icon src="{{.Live}}static/brand/icon.svg" alt="">fichas</span></a>{{end}} 10 11 {{define "nav"}} 12 <a href="database.html"{{if or (eq .Page "database") (eq .Page "cards") (eq .Page "show") (eq .Page "edit") (eq .Page "card-layout") (eq .Page "field")}} aria-current="page"{{end}}>{{icon "users"}} Customers</a> 13 <a href="#">{{icon "phone"}} Call log</a> 14 <a href="#">{{icon "truck"}} Suppliers</a> 15 <a href="#">{{icon "plus"}} New type</a> 16 {{end}} 17 18 {{define "account"}}<span fichas-meta>Paul · Sign out</span>{{end}} 19 20 {{define "banner"}}<p fichas-mock-banner>Mockup — not the live app. <a href="index.html">All mockups</a> · built from rastrillo's real components; <code>fichas-*</code> attributes are proposed additions.</p>{{end}} 21 22 {{define "viewswitch"}} 23 {{template "seg-tabs" (dict "Label" "View Customers as" "Items" (list 24 (dict "Label" "Table" "Href" "database.html" "Current" (eq .Page "database")) 25 (dict "Label" "Cards" "Href" "cards.html" "Current" (eq .Page "cards"))))}} 26 {{end}} 27 28 {{define "recordbar"}} 29 {{template "list-bar" (dict 30 "SearchAction" "#" "Placeholder" "Search customers" 31 "Filter" (dict "Label" "All customers" "Aria" "Saved view: All customers" "Items" (list 32 (dict "Label" "All customers" "Href" "#" "Current" true) 33 (dict "Label" "Needs a call this week" "Href" "#") 34 (dict "Label" "Won this quarter" "Href" "#") 35 (dict "Label" "Save the current view…" "Href" "#"))))}} 36 {{end}} 37