-
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.
Merge pull request #20 from T1xx1/v2
Better components UIs
- Loading branch information
Showing
134 changed files
with
1,947 additions
and
1,663 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 @@ | ||
--- | ||
type Props = { | ||
twBgColor: string; | ||
}; | ||
const { twBgColor } = Astro.props; | ||
--- | ||
|
||
<div class={`bg-opacity-50 rounded-xl p-5 h-full w-full flex items-center justify-center ${twBgColor}`}> | ||
<slot /> | ||
</div> |
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,11 @@ | ||
--- | ||
type Props = { | ||
styles?: string; | ||
}; | ||
const { styles } = Astro.props; | ||
--- | ||
|
||
<div class={`border-2 rounded-xl shadow ${styles}`}> | ||
<slot /> | ||
</div> |
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,23 @@ | ||
--- | ||
import Card from './card.astro'; | ||
import H2 from './h2.astro'; | ||
const { val } = Astro.props; | ||
--- | ||
|
||
<Card styles="m-auto px-5 py-2 w-fit flex flex-col items-center"> | ||
<H2 styles="text-accent">UIs counter</H2> | ||
|
||
<div class="text-accent font-semibold">{val} / 100</div> | ||
|
||
<meter | ||
max="100" | ||
value={val} | ||
class="h-10 w-[25rem]"></meter> | ||
</Card> | ||
|
||
<style> | ||
meter::-webkit-meter-optimum-value { | ||
@apply bg-accent; | ||
} | ||
</style> |
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,11 @@ | ||
--- | ||
type Props = { | ||
styles?: string; | ||
}; | ||
const { styles } = Astro.props; | ||
--- | ||
|
||
<h2 class={`text-4xl font-semibold ${styles}`}> | ||
<slot /> | ||
</h2> |
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,11 @@ | ||
--- | ||
type Props = { | ||
styles?: string; | ||
}; | ||
const { styles } = Astro.props; | ||
--- | ||
|
||
<h3 class={`text-2xl font-semibold ${styles}`}> | ||
<slot /> | ||
</h3> |
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,12 @@ | ||
--- | ||
type Props = { | ||
url: string; | ||
styles?: string; | ||
}; | ||
const { url, styles = '' } = Astro.props; | ||
--- | ||
|
||
<a href={url} class={`text-accent hover:underline ${styles}`}> | ||
<slot /> | ||
</a> |
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
--- | ||
import { Image } from 'astro:assets'; | ||
import icon from '~/assets/icon.png'; | ||
type Props = { | ||
styles?: string; | ||
}; | ||
const { styles = "" } = Astro.props; | ||
--- | ||
|
||
<div class={`flex gap-2.5 items-center ${styles}`}> | ||
<Image src={icon} alt="Icon" class="h-9 w-9" /> | ||
|
||
<div class="text-primary text-3xl font-semibold">100FrontendChallenge</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.