Skip to content

Commit

Permalink
chore(git): add MVP app
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonHor committed Dec 20, 2024
1 parent 96a6cbd commit 931243b
Show file tree
Hide file tree
Showing 31 changed files with 8,345 additions and 132 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
"extends": ["next/core-web-vitals", "next/typescript"],
"rules": {
"@typescript-eslint/no-empty-object-type": "off"
}
}
Binary file removed app/favicon.ico
Binary file not shown.
Binary file added app/fonts/Alef-Bold.ttf
Binary file not shown.
Binary file added app/fonts/Alef-Regular.ttf
Binary file not shown.
96 changes: 81 additions & 15 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,92 @@
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
body {
font-family: var(--font-alef-bold), Arial, Helvetica, sans-serif;
font-weight: 700;
font-style: normal;
overflow: hidden;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
input {
user-select: text !important;
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
*,
*::before,
*::after {
-webkit-tap-highlight-color: transparent;
font-size: 1.1rem;
user-select: none;
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
.text-balance {
text-wrap: balance;
}
}

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 3.9%;
--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;
--primary: 0 0% 9%;
--primary-foreground: 0 0% 98%;
--secondary: 0 0% 96.1%;
--secondary-foreground: 0 0% 9%;
--muted: 0 0% 96.1%;
--muted-foreground: 0 0% 45.1%;
--accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
--radius: 0.5rem;
}
.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;
--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;
--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;
--accent: 0 0% 14.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 14.9%;
--input: 0 0% 14.9%;
--ring: 0 0% 83.1%;
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
27 changes: 22 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { ThemeProvider } from "@/components/ui/theme-provider";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
Expand All @@ -12,10 +13,20 @@ const geistMono = localFont({
variable: "--font-geist-mono",
weight: "100 900",
});
const alefBold = localFont({
src: "./fonts/Alef-Bold.ttf",
variable: "--font-alef-bold",
weight: "700",
});
const alefRegular = localFont({
src: "./fonts/Alef-Regular.ttf",
variable: "--font-alef-regular",
weight: "400",
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Teacher Tracker",
description: "Find a teacher.",
};

export default function RootLayout({
Expand All @@ -24,11 +35,17 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="he" dir="rtl">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
className={`${geistSans.variable} ${geistMono.variable} ${alefRegular.variable} ${alefBold.variable} antialiased`}
>
{children}
<ThemeProvider
attribute="class"
defaultTheme="dark"
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>
</html>
);
Expand Down
21 changes: 21 additions & 0 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Teacher Tracker",
"short_name": "Teacher Tracker",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#000000",
"background_color": "#ffffff",
"display": "standalone",
"start_url": "/",
"scope": "/"
}
Loading

0 comments on commit 931243b

Please sign in to comment.