-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added components, code optimization, etc.
- Loading branch information
Showing
11 changed files
with
186 additions
and
259 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
Large diffs are not rendered by default.
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,8 @@ | ||
--- | ||
let { text } = Astro.props; | ||
--- | ||
|
||
<li | ||
class='text-sm font-light blur-bg rounded-2xl px-2 py-1 inline-flex items-center'> | ||
{text} | ||
</li> |
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,13 @@ | ||
--- | ||
let { href, text } = Astro.props; | ||
--- | ||
|
||
<a | ||
href={href} | ||
target='_blank' | ||
class='inline-grid justify-self-start'> | ||
<li | ||
class='justify-self-start font-light blur-bg hover:bg-primary-0 duration-150 rounded-2xl px-3 py-2'> | ||
{text} | ||
</li> | ||
</a> |
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,25 @@ | ||
--- | ||
let { link, text } = Astro.props; | ||
--- | ||
|
||
<a | ||
href={link} | ||
target='_blank' | ||
class='inline-block justify-self-start px-3 py-2 rounded-lg border-2 hover:border-primary-0 hover:bg-primary-0 duration-150' | ||
>{text} | ||
<svg | ||
class='inline-block pl-2' | ||
width='24' | ||
height='24' | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
><path | ||
d='M15.6396 7.02527H12.0181V5.02527H19.0181V12.0253H17.0181V8.47528L12.1042 13.3892L10.6899 11.975L15.6396 7.02527Z' | ||
fill='currentColor' | ||
></path><path | ||
d='M10.9819 6.97473H4.98193V18.9747H16.9819V12.9747H14.9819V16.9747H6.98193V8.97473H10.9819V6.97473Z' | ||
fill='currentColor' | ||
></path></svg | ||
> | ||
</a> |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
import { Picture } from 'astro:assets'; | ||
import BadgeLink from './BadgeLink.astro'; | ||
import Badge from './Badge.astro'; | ||
import Button from './Button.astro'; | ||
let { description, title, img, site, badgeLinkProps, badgeProps } = Astro.props; | ||
--- | ||
|
||
<div class='grid blur-bg p-5 lg:p-10 rounded-xl'> | ||
<div class='grid lg:grid-cols-2'> | ||
<div class='grid self-start'> | ||
<Picture | ||
class='object-cover object-center min-h-full rounded-2xl' | ||
src={img} | ||
width='500' | ||
height='350' | ||
alt={title} | ||
formats={['avif', 'webp']} | ||
/> | ||
</div> | ||
<div class='lg:ml-10'> | ||
<h3 | ||
class='font-black bg-clip-text text-transparent bg-gradient-to-r from-primary-0 to-accent-0 text-3xl lg:text-4xl mb-5 mt-3 lg:mt-0'> | ||
{title} | ||
</h3> | ||
<p class='inline-flex text-xl font-light'> | ||
{description} | ||
</p> | ||
<div class='py-5'> | ||
<h4 class='text-lg mb-5'>Technologies i used:</h4> | ||
<ul class='flex space-x-2 flex-wrap'> | ||
{Array.isArray(badgeLinkProps) ? ( | ||
badgeLinkProps.map((badgeLink, index) => ( | ||
<BadgeLink key={index} {...badgeLink} /> | ||
)) | ||
) : ( | ||
<BadgeLink {...badgeLinkProps} /> | ||
)} | ||
|
||
{Array.isArray(badgeProps) ? ( | ||
badgeProps.map((badge, index) => ( | ||
<Badge key={index} {...badge} /> | ||
)) | ||
) : ( | ||
<Badge {...badgeProps} /> | ||
)} | ||
</ul> | ||
</div> | ||
<div class='mt-5'> | ||
<Button text="Check out" link={site} /> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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
Oops, something went wrong.