forked from b00tc4mp/isdi-parttime-202309
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor components and css b00tc4mp#407
- Loading branch information
Showing
15 changed files
with
167 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
EXEMPLE LLISTA TAILWIND CSS | ||
|
||
<ul role="list" class="marker:text-sky-400 list-disc pl-5 space-y-3 text-slate-500"> | ||
<li>5 cups chopped Porcini mushrooms</li> | ||
<li>1/2 cup of olive oil</li> | ||
<li>3lb of celery</li> | ||
</ul> | ||
|
||
EXEMPLE INPUT BÚSQUEDA | ||
<label class="relative block"> | ||
<span class="sr-only">Search</span> | ||
<span class="absolute inset-y-0 left-0 flex items-center pl-2"> | ||
<svg class="h-5 w-5 fill-slate-300" viewBox="0 0 20 20"><!-- ... --></svg> | ||
</span> | ||
<input class="placeholder:italic placeholder:text-slate-400 block bg-white w-full border border-slate-300 rounded-md py-2 pl-9 pr-3 shadow-sm focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1 sm:text-sm" placeholder="Search for anything..." type="text" name="search"/> | ||
</label> | ||
|
||
ECEMPLE PRIMERA LLETRA GRAN | ||
|
||
<p class="first-line:uppercase first-line:tracking-widest | ||
first-letter:text-7xl first-letter:font-bold first-letter:text-slate-900 | ||
first-letter:mr-3 first-letter:float-left | ||
"> | ||
Well, let me tell you something, funny boy. Y'know that little stamp, the one | ||
that says "New York Public Library"? Well that may not mean anything to you, | ||
but that means a lot to me. One whole hell of a lot. | ||
</p> | ||
|
||
EXEMPLE AMPLIAR TEXT | ||
<div class="max-w-lg mx-auto p-8"> | ||
<details class="open:bg-white dark:open:bg-slate-900 open:ring-1 open:ring-black/5 dark:open:ring-white/10 open:shadow-lg p-6 rounded-lg" open> | ||
<summary class="text-sm leading-6 text-slate-900 dark:text-white font-semibold select-none"> | ||
Why do they call it Ovaltine? | ||
</summary> | ||
<div class="mt-3 text-sm leading-6 text-slate-600 dark:text-slate-400"> | ||
<p>The mug is round. The jar is round. They should call it Roundtine.</p> | ||
</div> | ||
</details> | ||
</div> | ||
|
||
EXEMPLE TRIAR OPCIONS | ||
|
||
<fieldset> | ||
<legend>Published status</legend> | ||
|
||
<input id="draft" class="peer/draft" type="radio" name="status" checked /> | ||
<label for="draft" class="peer-checked/draft:text-sky-500">Draft</label> | ||
|
||
<input id="published" class="peer/published" type="radio" name="status" /> | ||
<label for="published" class="peer-checked/published:text-sky-500">Published</label> | ||
|
||
<div class="hidden peer-checked/draft:block">Drafts are only visible to administrators.</div> | ||
<div class="hidden peer-checked/published:block">Your post will be publicly visible on your site.</div> | ||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
import SearchForm from "./SearchForm" | ||
import DietFilter from "./DietFilter" | ||
import ComplexityLevelFilter from "./ComplexityLevelFilter" | ||
import TimeFilter from "./TimeFilter" | ||
import MethodFilter from "./MethodFilter" | ||
|
||
export default function Search(props) { | ||
return <> | ||
<SearchForm /> | ||
<DietFilter /> | ||
<ComplexityLevelFilter /> | ||
<TimeFilter /> | ||
<MethodFilter /> | ||
</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import FavsButton from "./FavsButton" | ||
import ProfileButton from "./ProfileButton" | ||
import LogoutButton from "./LogoutButton" | ||
|
||
export default function FullHeader({ name, email }) { | ||
return <> | ||
<FavsButton /> | ||
|
||
<ProfileButton /> | ||
<LogoutButton /> | ||
|
||
</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function Button({ type, onClick, children }) { | ||
return <button className="button" type={type} onClick={onClick}>{children}</button> | ||
function Button({ type, onClick, children, className }) { | ||
return <button className={`button ${className ? className : ''}`} type={type} onClick={onClick}>{children}</button> | ||
} | ||
|
||
export default Button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function Link(props) { | ||
return <a className="link" href="" onClick={props.onClick}>{props.children}</a> | ||
return <a className={`link ${props.className ? props.className : ''}`} href="" onClick={props.onClick}>{props.children}</a> | ||
} | ||
|
||
export default Link |
Oops, something went wrong.