Style updates
This commit is contained in:
@@ -6,16 +6,33 @@ import { stackClasses, textClasses } from 'styles';
|
|||||||
|
|
||||||
function AppItem({ url, icon, name }: any) {
|
function AppItem({ url, icon, name }: any) {
|
||||||
const [textDecoration, setTextDecoration] = useState<string>('none');
|
const [textDecoration, setTextDecoration] = useState<string>('none');
|
||||||
|
const [hover, setHover] = useState<boolean>(false);
|
||||||
const { isMobile } = useCommonHooks();
|
const { isMobile } = useCommonHooks();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
component='a'
|
component='a'
|
||||||
href={`https://${url}`}
|
href={`https://${url}`}
|
||||||
onMouseOver={() => setTextDecoration('underline')}
|
onMouseOver={() => {
|
||||||
onMouseOut={() => setTextDecoration('none')}
|
setTextDecoration('underline');
|
||||||
|
setHover(true);
|
||||||
|
}}
|
||||||
|
onMouseOut={() => {
|
||||||
|
setTextDecoration('none');
|
||||||
|
setHover(false);
|
||||||
|
}}
|
||||||
className={stackClasses.appItemBox}
|
className={stackClasses.appItemBox}
|
||||||
>
|
>
|
||||||
|
{hover && (
|
||||||
|
<svg
|
||||||
|
style={{ position: 'absolute', borderRadius: '6px' }}
|
||||||
|
height='100%'
|
||||||
|
width='100%'
|
||||||
|
xmlns='http://www.w3.org/2000/svg'
|
||||||
|
>
|
||||||
|
<rect rx='8' ry='8' height='100%' width='100%' strokeLinejoin='round' />
|
||||||
|
</svg>
|
||||||
|
)}
|
||||||
<Stack
|
<Stack
|
||||||
align={isMobile ? 'center' : undefined}
|
align={isMobile ? 'center' : undefined}
|
||||||
justify={isMobile ? 'center' : undefined}
|
justify={isMobile ? 'center' : undefined}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ function LinkItem({ link }: any) {
|
|||||||
component='a'
|
component='a'
|
||||||
href={link.url}
|
href={link.url}
|
||||||
style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}
|
style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}
|
||||||
|
w={'min-content'}
|
||||||
>
|
>
|
||||||
{link.name}
|
{link.name}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ function ThemesSettings() {
|
|||||||
borderRadius: '10px',
|
borderRadius: '10px',
|
||||||
marginTop: '-15px',
|
marginTop: '-15px',
|
||||||
marginBottom: '-10px',
|
marginBottom: '-10px',
|
||||||
|
boxShadow: '0px 0px 10px 3px rgba(0, 0, 0, .8)',
|
||||||
}}
|
}}
|
||||||
pos={'absolute'}
|
pos={'absolute'}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -18,13 +18,36 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
backdrop-filter: blur(10px) brightness(1.5);
|
backdrop-filter: blur(10px) brightness(1.2);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.appItemBox rect {
|
||||||
|
border-radius: 6px;
|
||||||
|
stroke-dasharray: 260;
|
||||||
|
stroke-width: 10px;
|
||||||
|
fill: transparent;
|
||||||
|
stroke: var(--color-search-background);
|
||||||
|
animation: svgAnimation 1.5s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.appItemBox rect::after {
|
||||||
|
filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes svgAnimation {
|
||||||
|
from {
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
stroke-dashoffset: 1000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.settingsContainer {
|
.settingsContainer {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
Reference in New Issue
Block a user