Skip to content

Commit 5bbcd95

Browse files
committed
Redesign and code refactoring
1 parent 0f5cadb commit 5bbcd95

17 files changed

Lines changed: 337 additions & 140 deletions

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<img src="public/status-logo.svg" width="400px">
2+
13
# Qualsu servers status
24

3-
https://status.qual.su
5+
[status.qual.su](https://status.qual.su)
6+
7+
![Next.js](https://img.shields.io/badge/Next.js-14-000000?style=flat-square&logo=next.js&logoColor=white) ![React](https://img.shields.io/badge/React-18-20232A?style=flat-square&logo=react&logoColor=61DAFB) ![TypeScript](https://img.shields.io/badge/TypeScript-5-3178C6?style=flat-square&logo=typescript&logoColor=white) ![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-3-06B6D4?style=flat-square&logo=tailwindcss&logoColor=white) ![Axios](https://img.shields.io/badge/Axios-1.13.4-0D47A1?style=flat-square&logo=axios&logoColor=white)

public/logo.svg

Lines changed: 5 additions & 0 deletions
Loading

public/logo/full-logo.png

-150 KB
Binary file not shown.

src/_components/footer.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
export default function Footer(){
1+
import { images } from '../config/routing/images.route';
2+
import { links } from '../config/routing/links.route';
3+
4+
export default function Footer() {
5+
const currentYear = new Date().getFullYear();
6+
27
return (
3-
<footer className="bg-black/20 backdrop-blur-sm rounded-lg shadow m-4 mx-10">
4-
<div className="w-full mx-auto p-4 md:py-8">
5-
<div className="sm:flex sm:items-center sm:justify-between">
6-
<a href="https://qual.su" className="flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse">
7-
<img src="/logo/full-logo.png" className="w-60" alt="Qualsu logo"/>
8-
</a>
9-
<ul className="flex flex-wrap items-center mb-6 text-sm font-medium sm:mb-0 text-gray-400">
10-
<li>
11-
<a href="https://qual.su" target="_blank" className="hover:underline me-4 md:me-6">Site</a>
12-
</li>
13-
<li>
14-
<a href="https://feedback.qual.su" target="_blank" className="hover:underline me-4 md:me-6">Feedback</a>
15-
</li>
16-
<li>
17-
<a href="https://id.qual.su" target="_blank" className="hover:underline me-4 md:me-6">Qual ID</a>
18-
</li>
19-
</ul>
8+
<footer className="fixed bottom-0 left-0 right-0 px-6 py-4 border-t border-white/5">
9+
<div className="flex items-center justify-between max-w-2xl mx-auto flex-col md:flex-row gap-y-4">
10+
<a href={links.QUALSU.SITE} target="_blank" rel="noreferrer">
11+
<img src={images.LOGO} className="h-4 opacity-70 hover:opacity-100 transition-opacity duration-200" alt="Qualsu" />
12+
</a>
13+
<div className="flex items-center gap-5">
14+
<a href={links.QUALSU.SITE} target="_blank" rel="noreferrer" className="text-xs text-white/50 hover:text-white/70 transition-colors duration-150">Site</a>
15+
<a href={links.FEEDBACK.SITE} target="_blank" rel="noreferrer" className="text-xs text-white/50 hover:text-white/70 transition-colors duration-150">Feedback</a>
16+
<a href={links.QSU_ID.SITE} target="_blank" rel="noreferrer" className="text-xs text-white/50 hover:text-white/70 transition-colors duration-150">Qual ID</a>
2017
</div>
21-
<hr className="my-6 sm:mx-auto border-gray-700 lg:my-8" />
22-
<span className="block text-sm sm:text-center text-gray-400">© 2021-2025 <a href="https://qual.su" className="hover:underline">Qualsu</a></span>
18+
<span className="text-xs text-white/30">
19+
© 2021-{currentYear}
20+
<a href={links.QUALSU.SITE} target='_blank' className='hover:text-white/70 transition-colors duration-150'> Qualsu</a>
21+
</span>
2322
</div>
2423
</footer>
25-
)
24+
);
2625
}

src/_components/navbar.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import { images } from "../config/routing/images.route";
2+
import { pages } from "../config/routing/pages.route";
3+
14
export default function Navbar() {
25
return (
3-
<>
4-
<nav className="fixed top-0 left-0 right-0 z-50 bg-black/20 text-white backdrop-blur-sm">
5-
<div className="container mx-auto flex justify-between items-center p-4">
6-
<a href="/">
7-
<img src="logo/logo.svg" alt="Qualsu logo" className="h-8" />
8-
</a>
9-
</div>
10-
</nav>
11-
</>
6+
<nav className="fixed top-0 left-0 right-0 z-50">
7+
<div className="container mx-auto flex items-center px-6 py-5">
8+
<a href={pages.ROOT}>
9+
<img src={images.STATUS} alt="Qualsu logo" className="h-7 opacity-90 hover:opacity-100 transition-opacity duration-200" />
10+
</a>
11+
</div>
12+
</nav>
1213
);
1314
}

0 commit comments

Comments
 (0)