Improved examples test and styling a bit.

This commit is contained in:
Martin Sosic 2023-07-09 18:48:47 +02:00
parent 7be240b0fa
commit 14d9e0d4c4
2 changed files with 12 additions and 11 deletions

View File

@ -24,7 +24,7 @@ export function ExampleCard({ idea, useIdea }) {
</h4>
<button className="button sm gray">Use this idea</button>
</div>
<div className="text-base leading-relaxed text-slate-500">
<div className="text-base leading-relaxed text-slate-500 line-clamp-[10]">
{idea.description.split('\n').map(str => <p>{str}</p>)}
</div>
</div>

View File

@ -7,30 +7,31 @@ export const exampleIdeas = [
"A simple todo app with one main page that lists all the tasks." +
" User can create new tasks by providing their description, toggle existing ones, or edit their description." +
" User owns tasks. User can only see and edit their own tasks. Tasks are saved in the database.",
color: availableColors.find((color) => color.name === "rose"),
color: availableColors.find((color) => color.name === "sky"),
complexity: "simple",
},
{
name: "MyPlants",
description:
"A simple app where user can track their plants and their watering schedule."
+ "\nHome page should list all of the users plants, and show for each one how many days are left until it needs to be watered."
+ "\nFor each plant, there should also be a 'Water' button, that resets the watering schedule for that plant."
+ "\nHome page should also have a 'Create new plant' button, that takes you to a new page where you can create a new plant."
+ "\nWhen creating a new plant, user should give it a name, and specify how often it needs to be watered (in the number of days)."
+ "Plants are saved in the database. User can access only their own plants. User needs to be logged in to access the app.",
"An app where user can track their plants and their watering schedule."
+ "\nHome page lists all of the user's plants. For each plant, number of days left until it needs to be watered is shown, as well as the plant's name, and a 'Water' button."
+ " Home page also has a 'Add plant' button, that takes you to a new page where user can create a new plant."
+ "\nWhen creating a new plant, user should give it a name and specify how often it needs to be watered (in the number of days)."
+ " Plants are saved in the database. User can access only their own plants.",
color: availableColors.find((color) => color.name === "green"),
complexity: "moderate",
},
{
name: "Blog",
description:
"A blog with posts and post comments. Posts can be created, edited and deleted. Comments can be created. Posts and comments are saved in the database."
+ "\nUser owns posts and comments. Everybody can see all posts and comments, but only the owner can edit or delete them."
+ "\nHome page lists all posts (their titles and authors) and is accessible by anybody. It also has a 'Create new post' button, that only logged in users can see."
+ " It has a 'Log in' button, that only logged out users can see."
+ "\nThere is a second page, to which 'Create new post' button takes you, for creating / editing a post. Only post author can access it."
+ "\nHome page lists all posts (their titles and authors) and is accessible by anybody. It also has a 'New post' button, that only logged in users can see."
+ "\nThere is a second page, to which 'New post' button takes you, for creating / editing a post. Only post author can access it."
+ "\nFinally, there is a third page, for viewing individual post in details, to which you are taken by clicking on the post on the home page."
+ "\nAnybody can access this page. It also lists all post comments, and logged-in users can add new comments."
,
color: availableColors.find((color) => color.name === "amber"),
complexity: "complex",
}
];