Skip to content

Commit

Permalink
Add a basic landing page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jcidp committed Apr 6, 2024
1 parent b37c52a commit bb6a27b
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Dish Hunter</title>
</head>
<body>
<div id="root"></div>
Expand Down
24 changes: 24 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
nav {
display: flex;
justify-content: center;
border-bottom: 1px solid lightgrey;

a {
text-decoration: none;
color: black;
font-size: 1.5rem;
margin: 1rem 0;
}
}

header {
text-align: center;

h1 {
margin: 1rem 0;
}
}

main {
text-align: center;
}
14 changes: 13 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@ import './App.css'

function App() {
return (
<h1>Hello, world!</h1>
<>
<nav>
<a href="/">Dish Hunter</a>
</nav>
<header>
<h1>Welcome to the recipe hunt!</h1>
<p>Search for a recipe based on ingredients</p>
</header>
<main>
<input type="search" name="ingredients" id="ingredients" placeholder="ingredients" />
<button type="submit">Search</button>
</main>
</>
)
}

Expand Down
11 changes: 11 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

:root {
font-family: "Montserrat", sans-serif;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

0 comments on commit bb6a27b

Please sign in to comment.