Finish dashboard and link creation

This commit is contained in:
Parker M. 2024-11-15 16:39:47 -06:00
parent 04cc3869c2
commit f85378e53c
Signed by: parker
GPG Key ID: 505ED36FC12B5D5E
4 changed files with 19 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
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 { faTrash } from '@fortawesome/free-solid-svg-icons';
import Navbar from './Navbar';
@ -149,7 +149,11 @@ function Dashboard() {
<tr>
<td colSpan={4}>
<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>
</td>
</tr>

View File

@ -8,6 +8,7 @@ body {
.container {
font-size: 17px;
position: absolute;
max-width: 500px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

View File

@ -1,7 +1,7 @@
.createInput {
display: block;
margin: 10px auto;
width: 500px;
width: 470px;
border-radius: 5px;
padding: 15px;
color: #ccc;

View File

@ -56,7 +56,7 @@ table td {
.mainTable {
position: absolute;
top: 100px;
top: 150px;
left: 50%;
transform: translateX(-50%);
}
@ -101,4 +101,14 @@ table td {
.trashBin:active {
transform: scale(0.95);
}
.noLinksLink {
color: #ccc;
text-decoration: underline;
}
.noLinksLink:hover {
color: #415eac;
text-decoration: none;
}