Footer & Profile link

This commit is contained in:
Notoric 2024-06-11 01:58:35 +01:00
parent e9b9a04a70
commit 2805d68c52
4 changed files with 59 additions and 3 deletions

View File

@ -14,6 +14,9 @@ body {
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
background-color: var(--background); background-color: var(--background);
color: white; color: white;
min-height: 100vh;
display: flex;
flex-direction: column;
} }
input:focus { input:focus {
@ -372,7 +375,7 @@ a button {
justify-content: space-between; justify-content: space-between;
} }
#graphs h2 { #graphs h2, #stats h2 {
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -381,3 +384,52 @@ a button {
height: 400px; height: 400px;
} }
table {
font-size: 1.5em;
border-collapse: collapse;
}
table td, table th {
padding: 10px;
margin: 0;
gap: 0;
border: 0;
}
table td {
border-top: 1px solid #888;
}
table th, table td {
border-right: 1px solid #888;
}
table th:last-child, table td:last-child, table th:first-child, table td:first-child{
text-align: center;
}
table th:last-child, table td:last-child {
border-right: none;
}
table {
margin-bottom: 40px;
}
footer {
margin-top: auto;
height: 50px;
background: var(--foreground);
width: calc(100vw - 60px);
color: white;
display: flex;
flex-direction: row;
justify-content: space-between;
padding-left: 30px;
padding-right: 30px;
bottom: 0;
}
footer p {
width: auto;
}

View File

@ -26,6 +26,10 @@
<main> <main>
@yield('content') @yield('content')
</main> </main>
<footer>
<p>Find the repository on <a href="https://github.com/Notoric/slink">GitHub</a></p>
<p>Made by <a href="https://notoric.net">[Notoric]</a></p>
</footer>
@yield('scripts') @yield('scripts')
</body> </body>
</html> </html>

View File

@ -78,7 +78,7 @@
</div> </div>
</div> </div>
<div id="stats" class="container"> <div id="stats" class="container">
<h2>Link Clicks</h2> <h2>Clicks by Country</h2>
<table> <table>
<thead> <thead>
<th>📍</th> <th>📍</th>

View File

@ -17,7 +17,7 @@
</tr> </tr>
@foreach ($shortlinks as $shortlink) @foreach ($shortlinks as $shortlink)
<tr> <tr>
<td>{{ $shortlink['shortid'] }}</td> <td><a href="{{ url()->to("l/" . $shortlink->shortid) }}">{{ $shortlink['shortid'] }}</a></td>
<td>{{ $shortlink['destination'] }}</td> <td>{{ $shortlink['destination'] }}</td>
<td>{{ $shortlink['created_at'] }}</td> <td>{{ $shortlink['created_at'] }}</td>
</tr> </tr>