mirror of
https://github.com/Leado123/Leado123.github.io.git
synced 2026-10-01 00:32:59 +00:00
fixed
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + React + TS</title>
|
<title>Share My Syllabus</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
"graphql": "^16.10.0",
|
"graphql": "^16.10.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
|
"react-fast-marquee": "^1.6.5",
|
||||||
"tailwindcss": "^3.4.17"
|
"tailwindcss": "^3.4.17"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
+13
@@ -1,8 +1,21 @@
|
|||||||
#root {
|
#root {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
place-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes scroll-left {
|
||||||
|
0% {
|
||||||
|
transform: translateX(100%); /* Start from the right outside of the container */
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateX(-100%); /* Scroll to the left outside of the container */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
height: 6em;
|
height: 6em;
|
||||||
padding: 1.5em;
|
padding: 1.5em;
|
||||||
|
|||||||
+33
-15
@@ -6,7 +6,7 @@ import SyllabusListing, { ClassListing } from './syllabus_comp';
|
|||||||
import { Accordion, FileInput } from "flowbite-react";
|
import { Accordion, FileInput } from "flowbite-react";
|
||||||
|
|
||||||
import { Button, Label, Modal, TextInput } from "flowbite-react";
|
import { Button, Label, Modal, TextInput } from "flowbite-react";
|
||||||
|
import Marquee from 'react-fast-marquee';
|
||||||
|
|
||||||
export const classOptions = [ // TODO REMOVE
|
export const classOptions = [ // TODO REMOVE
|
||||||
{ key: "nofilter", label: "No Class Filter" },
|
{ key: "nofilter", label: "No Class Filter" },
|
||||||
@@ -17,7 +17,7 @@ export const classOptions = [ // TODO REMOVE
|
|||||||
|
|
||||||
|
|
||||||
function findIfMobile() {
|
function findIfMobile() {
|
||||||
return true;
|
//return true;
|
||||||
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +36,6 @@ function App() {
|
|||||||
const [query, setQuery] = useState<string>("");
|
const [query, setQuery] = useState<string>("");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function handleSearch() {
|
async function handleSearch() {
|
||||||
try {
|
try {
|
||||||
var response = await fetch(`https://api.sharesyllabus.me/search/?q=${query}`);
|
var response = await fetch(`https://api.sharesyllabus.me/search/?q=${query}`);
|
||||||
@@ -127,8 +126,25 @@ function App() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
||||||
{isMobile === false && <div className="place-items-center p-10">
|
{isMobile === false && <div className="p-10 flex justify-center items-center">
|
||||||
<h3 className="text-2xl font-bold text-center">Easily View & Share College Syllabi JFKMCHS/Norco College</h3> <br></br>
|
<div className="w-1/2">
|
||||||
|
<div className="flex flex-row">
|
||||||
|
<h3 className="text-5xl mb-5 font-bold text-left flex-1">📚 Share Syllabus</h3>
|
||||||
|
</div>
|
||||||
|
<p className="text-left ">
|
||||||
|
A platform for sharing and exploring course syllabi, helping students compare class structures, assignments, and topics while earning community service hours by contributing syllabuses to the knowledge base.</p>
|
||||||
|
<div className="pt-1 text-left flex flex-row space-x-2">
|
||||||
|
<p className="text-xs font-bold">Contacts:</p>
|
||||||
|
<Marquee className="text-xs flex-1" speed={25}>
|
||||||
|
<p className=" "> lwen3@student.rccd.edu 336722@students.cnusd.k12.ca.us College Success Club @college_success_club | here to assist those who wish to know how hard classes are before taking them at Norco College | do you have a computer running linux 24/7 with port forwarding? contact us to help host this website! |</p>
|
||||||
|
</Marquee>
|
||||||
|
</div>
|
||||||
|
<div className="w-full p-6 flex justify-between text-sm underline">
|
||||||
|
<a>MyPortal</a>
|
||||||
|
<a>IGETC</a>
|
||||||
|
<a>Counseling</a>
|
||||||
|
<a>RCCD GE (Graduation Requirements)</a>
|
||||||
|
</div>
|
||||||
<div className="">
|
<div className="">
|
||||||
<div className="flex space-x-1">
|
<div className="flex space-x-1">
|
||||||
<button onClick={() => setOpenModal(true)} className=" bg-blue-700 p-2 text-yellow-50 rounded-lg flex flex-row">
|
<button onClick={() => setOpenModal(true)} className=" bg-blue-700 p-2 text-yellow-50 rounded-lg flex flex-row">
|
||||||
@@ -154,27 +170,29 @@ function App() {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>}
|
</div>}
|
||||||
{isMobile === true && <div className="p-1 pt-4">
|
{isMobile === true && <div className="p-1 pt-2">
|
||||||
<h3 className="text-2xl font-bold">Easily View & Share College Syllabi JFKMCHS/Norco College</h3> <br></br>
|
<h3 className="text-2xl font-bold mb-2">Share Syllabus</h3>
|
||||||
|
|
||||||
<div className="">
|
<div className="">
|
||||||
<div className="flex space-x-1">
|
<div className="flex space-x-1">
|
||||||
<button onClick={() => setOpenModal(true)} className=" bg-blue-700 p-2 text-yellow-50 rounded-lg flex flex-row">
|
|
||||||
<span className="flex justify-center items-center aspect-square flex-1"><i className="material-symbols-rounded">attach_file</i></span>
|
|
||||||
<span className="flex flex-col"> <span className="text-sm">add a syllabus</span>
|
|
||||||
<span className="text-xs">1 volunteer hours</span></span>
|
|
||||||
</button>
|
|
||||||
<div className="flex-1 flex bg-white rounded-lg">
|
<div className="flex-1 flex bg-white rounded-lg">
|
||||||
<input type="search" onKeyDown={handleKeyDown} placeholder="class or professor" className="focus:outline-none bg-transparent border-none flex-1 text-black" value={query} onChange={(e) => setQuery(e.target.value)}>
|
<input type="search" onKeyDown={handleKeyDown} placeholder="search class or professor" className="focus:outline-none w-4/5 bg-transparent border-none flex-1 text-black" value={query} onChange={(e) => setQuery(e.target.value)}>
|
||||||
|
|
||||||
</input>
|
</input>
|
||||||
<button className="aspect-square flex justify-center bg-white items-center" onClick={handleSearch}>
|
<button className="aspect-square flex justify-center bg-white rounded-lg items-center" onClick={handleSearch}>
|
||||||
<span className="material-symbols-rounded text-black">
|
<span className="material-symbols-rounded text-black">
|
||||||
search
|
search
|
||||||
</span>
|
</span>
|
||||||
</button></div>
|
</button></div>
|
||||||
|
<button onClick={() => setOpenModal(true)} className=" bg-blue-700 p-1 text-yellow-50 rounded-lg flex flex-row">
|
||||||
|
<span className="flex justify-center items-center aspect-square flex-1"><i className="material-symbols-rounded">attach_file</i></span>
|
||||||
|
<span className="text-xs">1 hr</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="listing">
|
<div className="listing">
|
||||||
{syllabi.map((syllabus, i) => {
|
{syllabi.map((syllabus, i) => {
|
||||||
return <SyllabusListing key={i} fileName={syllabus.fileName} className={syllabus.className} professor={syllabus.professor} />
|
return <SyllabusListing key={i} fileName={syllabus.fileName} className={syllabus.className} professor={syllabus.professor} />
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ a:hover {
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
min-width: 320px;
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user