From f0c1347bbde36689b677ab8b966ee31576c95be8 Mon Sep 17 00:00:00 2001
From: VityaSchel <59040542+VityaSchel@users.noreply.github.com>
Date: Mon, 2 Oct 2023 19:07:04 +0400
Subject: [PATCH] Add Github button to navbar
---
README.md | 12 +++++-------
src/features/add-group/index.tsx | 2 +-
src/widgets/navbar/index.tsx | 10 +++++++++-
3 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index 1e791fd..f24f1cd 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,13 @@
# Schedule for колледж связи пгути
-- [Schedule for колледж связи пгути](#schedule-for-колледж-связи-пгути)
- - [Tech stack](#tech-stack)
- - [Hire me!](#hire-me)
-
-
Reskin of https://lk.ks.psuti.ru/ since it lacks mobile support and is generally ugly.
-
+
+
[Visit website](TODO: host anywhere in Russia)
-## Tech stack
+## Tech stack & features
- React with Next.js v13.5 (pages router)
- Tailwind CSS. This is my first project using it, after using SCSS Modules for many years
@@ -20,6 +16,8 @@ Reskin of https://lk.ks.psuti.ru/ since it lacks mobile support and is generally
- TypeScript with types for each package
- Telegram Bot API (via [node-telegram-bot-api]) for parsing failure notifications
- Custom [js parser for teachers' photos](https://gist.github.com/VityaSchel/28f1a360ee7798511765910b39c6086c)
+- Accessability & tab navigation support
+- Dark theme with automatic switching based on system settings
Built under 1 day. Tools used: pnpm, eslint, react-icons.
diff --git a/src/features/add-group/index.tsx b/src/features/add-group/index.tsx
index cf16648..c3b9b95 100644
--- a/src/features/add-group/index.tsx
+++ b/src/features/add-group/index.tsx
@@ -24,7 +24,7 @@ export function AddGroupButton() {
return (
<>
-
+
setPopupVisible(false)} />
>
)
diff --git a/src/widgets/navbar/index.tsx b/src/widgets/navbar/index.tsx
index 97c184a..0074461 100644
--- a/src/widgets/navbar/index.tsx
+++ b/src/widgets/navbar/index.tsx
@@ -4,6 +4,7 @@ import { Button } from '@/shadcn/ui/button'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useRouter } from 'next/router'
+import { FaGithub } from 'react-icons/fa'
export function NavBar() {
const { resolvedTheme, theme } = useTheme()
@@ -16,7 +17,14 @@ export function NavBar() {
ПКС-35к
-
+