Skip to content

Commit

Permalink
new file: app/components/landing.tsx
Browse files Browse the repository at this point in the history
	new file:   app/components/recruiter_dashboard.tsx
	new file:   app/components/student_dashboard.tsx
	renamed:    app/components/login.tsx -> app/components/student_login.tsx
	modified:   app/components/student_profile.tsx
	modified:   app/globals.css
	modified:   app/page.tsx
	new file:   app/utils/header.tsx
	new file:   components.json
	new file:   lib/utils.ts
	modified:   package-lock.json
	modified:   package.json
	modified:   tailwind.config.ts
  • Loading branch information
puneetkumarbajaj committed Feb 12, 2024
1 parent 342f48c commit 0fd95c9
Show file tree
Hide file tree
Showing 13 changed files with 273 additions and 181 deletions.
Empty file added app/components/landing.tsx
Empty file.
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions app/components/login.tsx → app/components/student_login.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import React, { useState } from 'react';

const LoginPage: React.FC = () => {
const StudentLoginPage: React.FC = () => {
const [username, setUsername] = useState('');
const [password, setPassword] = useState('');

Expand Down Expand Up @@ -38,4 +38,4 @@ const LoginPage: React.FC = () => {
);
};

export default LoginPage;
export default StudentLoginPage;
5 changes: 2 additions & 3 deletions app/components/student_profile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import './Profile.css';

const Profile = () => {
const StudentProfile = () => {
return (
<div className="profile">
<div className="profile-header">
Expand All @@ -24,4 +23,4 @@ const Profile = () => {
);
};

export default Profile;
export default StudentProfile;
93 changes: 68 additions & 25 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,76 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {

@layer base {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;

--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;

--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;

--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;

--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;

--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;

@layer utilities {
.text-balance {
text-wrap: balance;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 222.2 84% 4.9%;

--radius: 0.5rem;
}

.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;

--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;

--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;

--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;

--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;

--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;

--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;

--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 212.7 26.8% 83.9%;
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
5 changes: 3 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Image from "next/image";
import LoginPage from "./components/login";
import LoginPage from "./components/student_login";
import StudentProfile from "./components/student_profile";

export default function Home() {
return (
<LoginPage/>
<StudentProfile/>
);
}
14 changes: 14 additions & 0 deletions app/utils/header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react';

export interface HeaderProps {
}

export default class Header extends React.Component<HeaderProps> {
public render() {
return (
<div>

</div>
);
}
}
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
6 changes: 6 additions & 0 deletions lib/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Loading

0 comments on commit 0fd95c9

Please sign in to comment.