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
15 changes: 11 additions & 4 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
<!doctype html>
<html lang="en">
<html lang="nb">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<link
rel="icon"
type="image/svg+xml"
href="/favicon.svg"
/>
<title>Handlelappen</title>
</head>
<body>
<div id="root"></div>
Expand Down
37 changes: 36 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"@apollo/client": "^4.3.2",
"graphql": "^16.14.2",
"react": "^19.2.8",
"react-dom": "^19.2.8"
"react-dom": "^19.2.8",
"react-router": "^8.4.0"
},
"devDependencies": {
"@babel/core": "^7.29.7",
Expand Down
63 changes: 62 additions & 1 deletion frontend/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 15 additions & 67 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,79 +1,27 @@
/* Hjemskjerm – styling etter Figma (Handlelappen – notatbok).
Farger og skrift kommer fra styles/theme.css. */
/* =========================================
APP – FELLES LAYOUT
Issue #51
========================================= */

html,
body,
#root {
width: 100%;
min-height: 100vh;
min-width: 0;
min-height: 100%;
margin: 0;
padding: 0;
}

main {
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 32px;
box-sizing: border-box;
}

/* Søkefelt + knapp */
.search {
display: flex;
gap: 0.75rem;
justify-content: center;
align-items: center;
margin-bottom: 1.5rem;
}

.search input {
flex: 1;
max-width: 480px;
padding: 10px 14px;
font: 15px var(--font-ui);
color: var(--text-primary);
background: var(--bg-surface);
border: 1px solid var(--border-strong);
border-radius: 8px;
}

.search input:focus {
outline: 2px solid var(--text-accent);
outline-offset: 2px;
}

.search button {
background: var(--bg-primary);
color: var(--text-on-dark);
#root {
max-width: none;
border: none;
border-radius: 8px;
padding: 10px 16px;
font: 500 15px var(--font-ui);
cursor: pointer;
}

/* Produktliste */
.product-list {
list-style: none;
padding: 0;
margin: 0;
text-align: left;
display: block;
}

.product {
display: flex;
gap: 1rem;
align-items: center;
padding: 0.75rem 0;
border-bottom: 1px solid var(--border-hairline);
body {
background: var(--bg-page);
color: var(--text-primary);
font-family: var(--font-ui);
}

.product img,
.no-image {
width: 64px;
height: 64px;
object-fit: contain;
background: var(--bg-surface);
border: 1px solid var(--border-brand);
border-radius: 6px;
flex-shrink: 0;
}
Loading