Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nadinestrella committed Jul 25, 2024
1 parent b220da3 commit 9a56c38
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
1 change: 0 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['www.toysrus.es'],
remotePatterns: [
{
protocol: 'https',
Expand Down
Binary file modified public/categories/funko.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 8 additions & 6 deletions src/app/components/FinalList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const FinalList: React.FC<FinalListProps> = ({
toysSelected,
}) => {
return (
<div className="flex flex-col justify-center items-center content-center gap-4">
<div className="flex flex-col justify-center items-center content-center gap-4 p-4">
<p className="p-1">
{parentName}, these are the {kidName} selection acording to their age:
{kidAge}.
Expand All @@ -26,10 +26,10 @@ export const FinalList: React.FC<FinalListProps> = ({
{toysSelected.map((toy, index) => {
return (
<li key={index} className="text-blue-700">
<a href={toy?.link} target="_blank">
{toy?.model.length > 25
? toy?.model.slice(0, 50) + '...'
: toy?.model}
<a href={toy.link} target="_blank">
{toy.model.length > 25
? toy.model.slice(0, 50) + '...'
: toy.model}
</a>
</li>
);
Expand All @@ -41,7 +41,9 @@ export const FinalList: React.FC<FinalListProps> = ({
<p>email</p>
<p>sms</p>
</div>
<div>Thank you for using The Gift List {''}❤️</div>
<div className="text-background3 font-semibold">
Thank you for using The Gift List {''}❤️
</div>
</div>
);
};
2 changes: 1 addition & 1 deletion src/app/components/KidsWelcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const KidsWelcome: React.FC<KidsWelcomeProps> = ({
return (
<>
<div className="flex flex-col justify-center items-center content-center gap-4">
<span>Hello!! {kidName}</span>
<span className="font-semibold">Hello!! {kidName}</span>
<form className="flex flex-col justify-center items-center content-center gap-4">
<InputForm
title="How old are you?"
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/ListToy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export const ListToy: React.FC<ListToyProps> = ({
useEffect(() => {
generateNewToysList();
}, [generateNewToysList]);
console.log(toysSelected);

return (
<div className="flex flex-col justify-center items-center content-center gap-4 p-5">
<div>
<p>{kidName},</p>
<p className="font-semibold pb-2">{kidName},</p>
<p>These are what we found for you!!</p>
<p>Select the toys you like the most. </p>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/app/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface LoginProps {
kidName: string;
handleKidName: (value: string) => void;
handleParentName: (value: string) => void;
parentEmail: string;
parentName: string;
handleParentEmail: (value: string) => void;
}

Expand All @@ -18,7 +18,9 @@ export const Login: React.FC<LoginProps> = ({
}) => {
return (
<div className="flex flex-col justify-center items-center content-center gap-4">
<h3 className="text-lg pt-3">Welcome to My Gift List</h3>
<h3 className="text-lg pt-3 text-background3 font-semibold">
Welcome to My Gift List
</h3>
<form className="flex flex-col justify-center items-center content-center gap-4">
<InputForm
title="What is your name?"
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/SelectedToys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const SelectedToys: React.FC<SelectedToysProps> = ({
return (
<div className="flex flex-col items-center content-center gap-4">
<div>
<p>Congratulations {kidName}!! </p>
<p className="font-semibold pb-2">Congratulations {kidName}!! </p>
<p> You have choosen these {toysSelected.length} toys!!</p>
</div>
<ul className="grid grid-col md:grid-cols-3 justify-center items-center content-center gap-4">
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/ui/InputForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const InputForm = ({
value={inputValue}
onChange={onChange}
type="text"
className="rounded-full border-2 border-background3"
className="rounded-full border-2 border-background3 p-1 pl-2"
required={required}
maxLength={maxLength}
></input>
Expand Down

0 comments on commit 9a56c38

Please sign in to comment.