-
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 #39 from HarlonGarcia/feature/challenge-solutions
Implemented challenge solutions
- Loading branch information
Showing
17 changed files
with
283 additions
and
247 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: [main] | ||
branches: [master] | ||
|
||
jobs: | ||
CI: | ||
|
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
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,19 +1,24 @@ | ||
import { styled } from 'styles'; | ||
|
||
const Content = styled('a', { | ||
'&:hover': { | ||
color: '$highlight', | ||
}, | ||
maxWidth: '20rem', | ||
overflow: 'hidden', | ||
whiteSpace: 'nowrap', | ||
textOverflow: 'ellipsis', | ||
|
||
variants: { | ||
spacing: { | ||
true: { | ||
letterSpacing: '1px', | ||
} | ||
'&:hover': { | ||
color: '$highlight', | ||
}, | ||
} | ||
|
||
variants: { | ||
spacing: { | ||
true: { | ||
letterSpacing: '1px', | ||
}, | ||
}, | ||
} | ||
}); | ||
|
||
export { | ||
Content, | ||
Content, | ||
}; |
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,28 @@ | ||
import { Trans } from 'react-i18next'; | ||
|
||
interface PreviewDemoProps { | ||
url: string; | ||
preview: string; | ||
} | ||
|
||
export const PreviewDemo = ({ url, preview }: PreviewDemoProps) => { | ||
return ( | ||
<div className='relative group hover:text-green-800'> | ||
<div className='z-[2] opacity-0 absolute top-6 -left-48 w-64 rounded-3xl rounded-tr-sm transition-all duration-300 ease-in-out pointer-events-none overflow-hidden group-hover:opacity-100 md:left-0 md:rounded-tr-3xl md:rounded-tl-sm md:w-96'> | ||
<img | ||
src={preview} | ||
alt='Preview' | ||
className='w-full bg-cover' | ||
/> | ||
</div> | ||
<a | ||
className='font-fira transition-all duration-300 ease-in-out ' | ||
href={url} | ||
target={'_blank'} | ||
rel={'noreferrer'} | ||
> | ||
<Trans>{'pages.challenge_users.table.columns.demo'}</Trans> | ||
</a> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.