Skip to content

Commit

Permalink
Merge branch 'main' into sm-dg-style-header-navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinaG007 committed Apr 5, 2024
2 parents 1213f52 + d317f60 commit 465c131
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/api/useAuth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { addUserToDatabase } from './firebase.js';
*/
export const SignInButton = () => (
<button
className="bg-pale-green rounded-lg px-3 py-1 text-eggshell border-2 border-sage text-off-black"
type="button"
onClick={() => signInWithPopup(auth, new GoogleAuthProvider())}
>
Expand Down
9 changes: 7 additions & 2 deletions src/components/SingleList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ export function SingleList({ name, path, setListPath }) {
}

return (
<li className="SingleList">
<button onClick={handleClick}>{name}</button>
<li className="SingleList flex flex-col items-center w-full">
<button
className="border-2 border-sage rounded-lg bg-pale-green my-2 px-3 py-2 text-off-black w-full md:w-1/2"
onClick={handleClick}
>
{name}
</button>
</li>
);
}
5 changes: 3 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

:root.theme-light {
--color-accent: var(--color-cobalt-blue);
--color-bg: var(--color-white);
--color-bg: #fdfdf2;
--color-border: hsla(220, 13%, 78%, 1);
--color-text: var(--color-black);
}
Expand Down Expand Up @@ -59,7 +59,8 @@ html {
}

body {
background-color: var(--color-bg);
background-color: #fdfdf2;
color: var(--color-text);
font-family:
-apple-system,
BlinkMacSystemFont,
Expand Down
21 changes: 12 additions & 9 deletions src/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,27 @@ export function Home({ data, userId, userEmail, setListPath }) {
};

return (
<div className="Home">
<p>
Hello from the home (<code>/</code>) page!
</p>
<form onSubmit={handleSubmit}>
<label htmlFor="listName">
New list name:
<div className="Home mt-8 font-Rubik">
<form
onSubmit={handleSubmit}
className="flex justify-between rounded-lg items-center"
>
<label htmlFor="listName" className="text-off-black">
New list:
<input
type="text"
id="listName"
name="listName"
value={newListName}
onChange={handleChange}
className="w-2/3 ml-2 border-2 border-sage rounded-lg bg-eggshell"
/>
</label>
<button>Create</button>
<button className="bg-pale-green rounded-lg px-3 py-1 text-eggshell border-2 border-sage text-off-black">
Create
</button>
</form>
<ul>
<ul className="flex flex-col my-8 items-center text-2xl">
{data.map((item, index) => {
return (
<SingleList
Expand Down
2 changes: 1 addition & 1 deletion src/views/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function Layout() {
<>
<div className="Layout">
<header
className="Layout-header flex flex-col items-center bg-eggshell
className="Layout-header flex flex-col items-center bg-eggshell font-Rubik
text-off-black"
>
<img className="md:w-1/3" src={buddyLogo} alt="Basket Buddy" />
Expand Down

0 comments on commit 465c131

Please sign in to comment.