Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/Layout/HomeContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,24 +131,24 @@ export function HomeContent() {
React
</h1>
<p className="text-4xl font-display max-w-lg md:max-w-full py-1 text-center text-secondary dark:text-primary-dark leading-snug self-center">
The library for web and native user interfaces
Forritasafnið fyrir notendaviðmót á vefnum og heimavangi
</p>
<div className="mt-5 self-center flex gap-2 w-full sm:w-auto flex-col sm:flex-row">
<ButtonLink
href={'/learn'}
type="primary"
size="lg"
className="w-full sm:w-auto justify-center"
label="Learn React">
Learn React
label="Lærðu React">
Lærðu React
</ButtonLink>
<ButtonLink
href={'/reference/react'}
type="secondary"
size="lg"
className="w-full sm:w-auto justify-center"
label="API Reference">
API Reference
label="Forritaskil">
Forritaskil
</ButtonLink>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function Toc({headings}: {headings: Toc}) {
<nav role="navigation" className="pt-20 sticky top-0 right-0">
{headings.length > 0 && (
<h2 className="mb-3 lg:mb-3 uppercase tracking-wide font-bold text-sm text-secondary dark:text-secondary-dark px-4 w-full">
On this page
Á þessari síðu
</h2>
)}
<div
Expand Down
12 changes: 6 additions & 6 deletions src/components/Layout/TopNav/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default function TopNav({
)}
onClick={onOpenSearch}>
<IconSearch className="mr-3 align-middle text-gray-30 shrink-0 group-betterhover:hover:text-gray-70" />
Search
Leit
<span className="ml-auto hidden sm:flex item-center mr-1">
<Kbd data-platform="mac">⌘</Kbd>
<Kbd data-platform="win" wide>
Expand All @@ -281,25 +281,25 @@ export default function TopNav({
<div className="text-base justify-center items-center gap-1.5 flex 3xl:flex-1 flex-row 3xl:justify-end">
<div className="mx-2.5 gap-1.5 hidden lg:flex">
<NavItem isActive={section === 'learn'} url="/learn">
Learn
Lærðu
</NavItem>
<NavItem
isActive={section === 'reference'}
url="/reference/react">
Reference
Uppflettirit
</NavItem>
<NavItem isActive={section === 'community'} url="/community">
Community
Samfélag
</NavItem>
<NavItem isActive={section === 'blog'} url="/blog">
Blog
Blogg
</NavItem>
</div>
<div className="flex w-full md:hidden"></div>
<div className="flex items-center -space-x-2.5 xs:space-x-0 ">
<div className="flex md:hidden">
<button
aria-label="Search"
aria-label="Leit"
type="button"
className="active:scale-95 transition-transform flex md:hidden w-12 h-12 rounded-full items-center justify-center hover:bg-secondary-button hover:dark:bg-secondary-button-dark outline-link"
onClick={onOpenSearch}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/MDX/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function YouWillLearn({
children: any;
isChapter?: boolean;
}) {
let title = isChapter ? 'In this chapter' : 'You will learn';
let title = isChapter ? 'Í þessum kafla' : 'Þú munt læra';
return <SimpleCallout title={title}>{children}</SimpleCallout>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getDomain(languageCode: string): string {
export const Seo = withRouter(
({
title,
description = 'The library for web and native user interfaces',
description = 'React – Forritasafnið fyrir notendaviðmót á vefnum og heimavangi',
image = '/images/og-default.png',
router,
children,
Expand Down
4 changes: 2 additions & 2 deletions src/content/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: home
title: React – The library for web and native user interfaces
title: React – Forritasafnið fyrir notendaviðmót á vefnum og heimavangi
permalink: index.html
---

{/* See HomeContent.js */}
{/* See HomeContent.js */}
Loading