- <Provider i18next={i18n}>
- <div>
- <Theme
- myUserInfo={siteRes.my_user}
- defaultTheme={siteRes?.site_view?.site?.default_theme}
- />
- {siteRes &&
- siteRes.site_view &&
- this.props.siteRes.site_view.site.icon && (
- <Helmet>
- <link
- id="favicon"
- rel="shortcut icon"
- type="image/x-icon"
- href={this.props.siteRes.site_view.site.icon || favIconUrl}
- />
- <link
- rel="apple-touch-icon"
- href={
- this.props.siteRes.site_view.site.icon || favIconPngUrl
- }
- />
- </Helmet>
- )}
- <Navbar site_res={this.props.siteRes} />
- <div class="mt-4 p-0 fl-1">
+ <Provider i18next={I18NextService.i18n}>
+ <div
+ id="app"
+ className="lemmy-site"
+ data-bs-theme={this.state?.bsTheme}
+ >
+ <button
+ type="button"
+ className="btn skip-link bg-light position-absolute start-0 z-3"
+ onClick={linkEvent(this, this.handleJumpToContent)}
+ >
+ {I18NextService.i18n.t("jump_to_content", "Jump to content")}
+ </button>
+ {siteView && (
+ <Theme defaultTheme={siteView.local_site.default_theme} />
+ )}
+ <Navbar siteRes={siteRes} />
+ <div className="mt-4 p-0 fl-1">