Skip to content

Commit bdf2338

Browse files
Filip Łukasikpikinier20
authored andcommitted
split header elements
1 parent 092e688 commit bdf2338

File tree

1 file changed

+74
-8
lines changed

1 file changed

+74
-8
lines changed

scaladoc/src/dotty/tools/scaladoc/renderers/HtmlRenderer.scala

Lines changed: 74 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,80 @@ class HtmlRenderer(rootPackage: Member, members: Map[DRI, Member])(using ctx: Do
204204
}
205205

206206
div(id := "container")(
207-
div(id := "header")(
208-
div(cls := "mode")(
209-
span(cls :="footer-text")(raw("Mode")),
210-
label(id := "theme-toggle", cls := "switch")(
211-
input(`type` := "checkbox"),
212-
span(cls := "slider")
213-
)
214-
),
207+
div(id := "header")(
208+
div(cls := "header-container-left")(
209+
projectLogo,
210+
),
211+
212+
div(cls:="header-container-center")(
213+
input(`type` := "text", placeholder := "Search...", id := "dropdown-input", onkeyup := "filterFunction()"),
214+
),
215+
216+
div(cls:="header-container-right")(
217+
button(id := "theme-toggle", cls := "icon-button"),
218+
button(cls := "icon-button hamburger"),
219+
div(id := "hamburger-dropdown", cls := "dropdown-menu body-small")(
220+
span(cls := "text-button")(
221+
a(href := "https://www.scala-lang.org/download/") (
222+
"Download",
223+
)
224+
),
225+
span(cls := "text-button")(
226+
a(href := "https://docs.scala-lang.org/") (
227+
"Documentation",
228+
)
229+
),
230+
span(cls := "text-button")(
231+
a(href := "https://index.scala-lang.org") (
232+
"Libraries",
233+
)
234+
),
235+
span(cls := "text-button")(
236+
a(href := "https://www.scala-lang.org/contribute/") (
237+
"Contribute",
238+
)
239+
),
240+
span(cls := "text-button")(
241+
a(href := "https://www.scala-lang.org/contribute/") (
242+
"Blog",
243+
)
244+
),
245+
span(cls := "text-button")(
246+
a(href := "https://www.scala-lang.org/blog/") (
247+
"Community",
248+
)
249+
),
250+
)
251+
),
252+
253+
254+
// div(id := "logo")(
255+
// projectLogo,
256+
// span(
257+
// div(cls:="projectName")(args.name)
258+
// ),
259+
// div(id := "version")(
260+
// div(cls := "versions-dropdown")(
261+
// div(onclick := "dropdownHandler()", id := "dropdown-button", cls := "dropdownbtn dropdownbtnactive")(
262+
// args.projectVersion.map(v => div(cls:="projectVersion")(v)).getOrElse(""),
263+
// div(id := "dropdown-content", cls := "dropdown-content")(
264+
// input(`type` := "text", placeholder := "Search...", id := "dropdown-input", onkeyup := "filterFunction()"),
265+
// ),
266+
// ),
267+
// )
268+
// ),
269+
// div(cls := "socials")(
270+
// socialLinks()
271+
// )
272+
// ),
273+
// div(id := "paneSearch"),
274+
// div(cls := "mode")(
275+
// span(cls :="footer-text")(raw("Mode")),
276+
// label(id := "theme-toggle", cls := "switch")(
277+
// input(`type` := "checkbox"),
278+
// span(cls := "slider")
279+
// )
280+
// ),
215281
),
216282
div(id := "leftColumn", cls := "body-small")(
217283
// div(id := "logo")(

0 commit comments

Comments
 (0)