Finish dashboard and link creation
This commit is contained in:
parent
04cc3869c2
commit
f85378e53c
@ -1,7 +1,7 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import styles from '../styles/Dashboard.module.css';
|
import styles from '../styles/Dashboard.module.css';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate, Link } from 'react-router-dom';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faTrash } from '@fortawesome/free-solid-svg-icons';
|
import { faTrash } from '@fortawesome/free-solid-svg-icons';
|
||||||
import Navbar from './Navbar';
|
import Navbar from './Navbar';
|
||||||
@ -149,7 +149,11 @@ function Dashboard() {
|
|||||||
<tr>
|
<tr>
|
||||||
<td colSpan={4}>
|
<td colSpan={4}>
|
||||||
<div className={styles.noLinks}>
|
<div className={styles.noLinks}>
|
||||||
You do not have any shortened links - try creating one.
|
You do not have any shortened links -{' '}
|
||||||
|
<Link to="/create" className={styles.noLinksLink}>
|
||||||
|
create one here
|
||||||
|
</Link>
|
||||||
|
.
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -8,6 +8,7 @@ body {
|
|||||||
.container {
|
.container {
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
max-width: 500px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.createInput {
|
.createInput {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
width: 500px;
|
width: 470px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
|
@ -56,7 +56,7 @@ table td {
|
|||||||
|
|
||||||
.mainTable {
|
.mainTable {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100px;
|
top: 150px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
@ -101,4 +101,14 @@ table td {
|
|||||||
|
|
||||||
.trashBin:active {
|
.trashBin:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
.noLinksLink {
|
||||||
|
color: #ccc;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noLinksLink:hover {
|
||||||
|
color: #415eac;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user