mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-12-11 10:13:55 -06:00
Improved landing page design
This commit is contained in:
parent
b3e79f4219
commit
239cc4ab84
@ -31,11 +31,12 @@ const Home = ({ servers }: HomeProps) => {
|
|||||||
<ServersListGroup embedded servers={serversList}>
|
<ServersListGroup embedded servers={serversList}>
|
||||||
{!hasServers && (
|
{!hasServers && (
|
||||||
<div className="p-4">
|
<div className="p-4">
|
||||||
<p>This application will help you to manage your Shlink servers.</p>
|
<p className="mb-4">This application will help you manage your Shlink servers.</p>
|
||||||
<p>To start, please, <Link to="/server/create">add your first server</Link>.</p>
|
<p className="text-center mb-0">
|
||||||
<p className="m-0">
|
<Link to="/server/create" className="btn btn-outline-primary btn-lg mr-2">Add a server</Link>
|
||||||
You still don‘t have a Shlink server?
|
<ExternalLink href="https://shlink.io/documentation" className="btn btn-outline-secondary btn-lg">
|
||||||
Learn how to <ExternalLink href="https://shlink.io/documentation">get started</ExternalLink>.
|
Learn more
|
||||||
|
</ExternalLink>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -35,7 +35,7 @@ describe('<Home />', () => {
|
|||||||
},
|
},
|
||||||
0,
|
0,
|
||||||
],
|
],
|
||||||
[{}, 3 ],
|
[{}, 2 ],
|
||||||
])('shows link to create or set-up server only when no servers exist', (servers, expectedParagraphs) => {
|
])('shows link to create or set-up server only when no servers exist', (servers, expectedParagraphs) => {
|
||||||
const wrapped = createComponent({ servers });
|
const wrapped = createComponent({ servers });
|
||||||
const p = wrapped.find('p');
|
const p = wrapped.find('p');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user