mirror of
https://github.com/strapi/strapi.git
synced 2025-11-15 17:49:57 +00:00
updated onboarding component
This commit is contained in:
parent
13fb791c67
commit
d3e85fad13
@ -1,23 +0,0 @@
|
|||||||
import styled from 'styled-components';
|
|
||||||
|
|
||||||
const StyledLink = styled.a`
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
height: 27px;
|
|
||||||
padding: 0 20px;
|
|
||||||
color: #919bae;
|
|
||||||
span,
|
|
||||||
svg {
|
|
||||||
margin: auto 0;
|
|
||||||
}
|
|
||||||
svg {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
&:hover {
|
|
||||||
background-color: #f7f8f8;
|
|
||||||
text-decoration: none;
|
|
||||||
color: #919bae;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
export default StyledLink;
|
|
||||||
@ -6,11 +6,46 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
|
import styled from 'styled-components';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
|
import { Text } from '@strapi/parts/Text';
|
||||||
import { InjectionZone } from '../../../../shared/components';
|
import { InjectionZone } from '../../../../shared/components';
|
||||||
import StyledLink from './StyledLink';
|
|
||||||
|
|
||||||
function StaticLinks() {
|
const StyledLink = styled.a`
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 27px;
|
||||||
|
padding: 0 20px;
|
||||||
|
color: ${({ theme }) => theme.colors.neutral400};
|
||||||
|
text-decoration: none;
|
||||||
|
span,
|
||||||
|
svg {
|
||||||
|
margin: auto 0;
|
||||||
|
}
|
||||||
|
svg {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
${[Text]} {
|
||||||
|
color: ${({ theme }) => theme.colors.neutral400};
|
||||||
|
margin: auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: ${({ theme }) => theme.colors.neutral100};
|
||||||
|
color: ${({ theme }) => theme.colors.neutral500};
|
||||||
|
|
||||||
|
${[Text]} {
|
||||||
|
color: ${({ theme }) => theme.colors.neutral700};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
${[Text]} {
|
||||||
|
color: ${({ theme }) => theme.colors.neutral600};
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StaticLinks = () => {
|
||||||
const { formatMessage } = useIntl();
|
const { formatMessage } = useIntl();
|
||||||
const staticLinks = [
|
const staticLinks = [
|
||||||
{
|
{
|
||||||
@ -34,7 +69,7 @@ function StaticLinks() {
|
|||||||
<li key={label}>
|
<li key={label}>
|
||||||
<StyledLink href={destination} target="_blank" rel="noopener noreferrer">
|
<StyledLink href={destination} target="_blank" rel="noopener noreferrer">
|
||||||
<FontAwesomeIcon icon={icon} />
|
<FontAwesomeIcon icon={icon} />
|
||||||
<span>{label}</span>
|
<Text>{label}</Text>
|
||||||
</StyledLink>
|
</StyledLink>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
@ -42,6 +77,6 @@ function StaticLinks() {
|
|||||||
<InjectionZone area="admin.tutorials.links" />
|
<InjectionZone area="admin.tutorials.links" />
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default StaticLinks;
|
export default StaticLinks;
|
||||||
|
|||||||
@ -76,7 +76,7 @@ const Wrapper = styled.div`
|
|||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
box-shadow: 0 2px 4px 0 #e3e9f3;
|
box-shadow: 0 2px 4px 0 #e3e9f3;
|
||||||
border-radius: 3px;
|
border-radius: ${({ theme }) => theme.spaces[2]};
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
&.shown {
|
&.shown {
|
||||||
animation: ${fadeIn} 0.5s forwards;
|
animation: ${fadeIn} 0.5s forwards;
|
||||||
@ -104,8 +104,8 @@ const Wrapper = styled.div`
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: white;
|
color: white;
|
||||||
background: #0e7de7;
|
background: ${({ theme }) => theme.colors.primary600};
|
||||||
box-shadow: 0px 2px 4px 0px rgba(227, 233, 243, 1);
|
box-shadow: ${({ theme }) => theme.shadows.tableShadow};
|
||||||
i,
|
i,
|
||||||
svg {
|
svg {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user