MCPcopy
hub / github.com/Tencent/omi / render

Method render

packages/omi-templates/src/pages/product-docs.tsx:116–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 render() {
117 return (
118 <div class="flex min-h-full bg-white dark:bg-zinc-800">
119 <div class="flex w-full flex-col">
120 <div class="relative mx-auto flex w-full max-w-8xl flex-auto justify-center sm:px-2 lg:px-8 xl:px-12">
121 <div class="hidden lg:relative lg:block lg:flex-none">
122 <div class="absolute inset-y-0 right-0 w-[50vw] bg-slate-50 dark:hidden"></div>
123 <div class="absolute bottom-0 right-0 top-16 hidden h-12 w-px bg-gradient-to-t from-slate-800 dark:block"></div>
124 <div class="absolute bottom-0 right-0 top-28 hidden w-px bg-slate-800 dark:block"></div>
125 <div class="sticky top-[4.75rem] -ml-0.5 h-[calc(100vh-4.75rem)] w-64 overflow-y-auto overflow-x-hidden py-16 pl-0.5 pr-8 xl:w-72 xl:pr-16">
126 <o-docs-sidebar
127 onChange={this.onChange}
128 active={this.props.section}
129 items={docsConfig[this.props.lang as Lang].sidebar}
130 ></o-docs-sidebar>
131 </div>
132 </div>
133 <div class="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16">
134 <article>
135 {/* <header class="mb-9 space-y-1">
136 <p class="font-display text-sm font-medium text-primary brightness-125">Introduction</p>
137 <h1 class="font-display text-3xl tracking-tight text-slate-900 dark:text-white">Installation</h1>
138 </header> */}
139
140 <md-docs content={this.state.markdownContent}></md-docs>
141 </article>
142 <dl class="mt-12 flex border-t border-slate-200 pt-6 dark:border-slate-800">
143 <div>
144 <dt class="font-display text-sm font-medium text-slate-900 dark:text-white">Previous</dt>
145 <dd class="mt-1">
146 <a
147 class="flex items-center gap-x-1 text-base font-semibold text-slate-500 hover:text-slate-600 dark:text-slate-400 dark:hover:text-slate-300 flex-row-reverse"
148 href="/"
149 >
150 Getting started
151 <svg viewBox="0 0 16 16" aria-hidden="true" class="h-4 w-4 flex-none fill-current -scale-x-100">
152 <path d="m9.182 13.423-1.17-1.16 3.505-3.505H3V7.065h8.517l-3.506-3.5L9.181 2.4l5.512 5.511-5.511 5.512Z"></path>
153 </svg>
154 </a>
155 </dd>
156 </div>
157 <div class="ml-auto text-right">
158 <dt class="font-display text-sm font-medium text-slate-900 dark:text-white">Next</dt>
159 <dd class="mt-1">
160 <a
161 class="flex items-center gap-x-1 text-base font-semibold text-slate-500 hover:text-slate-600 dark:text-slate-400 dark:hover:text-slate-300"
162 href="/docs/understanding-caching"
163 >
164 Understanding caching
165 <svg viewBox="0 0 16 16" aria-hidden="true" class="h-4 w-4 flex-none fill-current">
166 <path d="m9.182 13.423-1.17-1.16 3.505-3.505H3V7.065h8.517l-3.506-3.5L9.181 2.4l5.512 5.511-5.511 5.512Z"></path>
167 </svg>
168 </a>
169 </dd>
170 </div>
171 </dl>
172 </div>
173 <div class="hidden xl:sticky xl:top-[4.75rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.75rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6">

Callers

nothing calls this directly

Calls 2

classNamesFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected