Merge branch 'main' into auth-print-2
This commit is contained in:
commit
1d615b8257
15 changed files with 411 additions and 59 deletions
BIN
public/images/grid-background.jpg
Normal file
BIN
public/images/grid-background.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 252 KiB |
|
|
@ -17,6 +17,9 @@ const Header = () => {
|
||||||
<li>
|
<li>
|
||||||
<Link to="/login">Login</Link>
|
<Link to="/login">Login</Link>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link to="/assignment">Assignment</Link>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ function Hero() {
|
||||||
return (
|
return (
|
||||||
<section className="hero">
|
<section className="hero">
|
||||||
<div className="hero-text">
|
<div className="hero-text">
|
||||||
<p className="intro">Welcome to BattleSnake!!!</p>
|
<p className="intro">Welcome to Bytecamp!!!</p>
|
||||||
<h1>Play for Fun!</h1>
|
<h1>Play for Fun!</h1>
|
||||||
<p className="desc">
|
<p className="desc">
|
||||||
A competitive game where your code is the controller. All you need is
|
A competitive game where your code is the controller.<br /> All you need is
|
||||||
a web server that responds to the Battlesnake API.
|
a web server that responds to the Battlesnake API.
|
||||||
</p>
|
</p>
|
||||||
<button className="cta">Start Battle</button>
|
<button className="cta">Start Battle</button>
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,41 @@
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
import '../scss/styles.scss'
|
import "../scss/styles.scss";
|
||||||
import '../scss/components/_navbar.scss'
|
import "../scss/components/_navbar.scss";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
const Navbar = () => {
|
const Navbar = () => {
|
||||||
return (
|
return (
|
||||||
<nav className="navbar">
|
<nav className="navbar">
|
||||||
<div className="navbar__logo">MyApp</div>
|
<div className="navbar__logo">MyApp</div>
|
||||||
<ul className="navbar__links">
|
<ul className="navbar__links">
|
||||||
<li><a href="/" className="navbar__link">Home</a></li>
|
<li>
|
||||||
<li><a href="/notebook" className="navbar__link">NoteBook</a></li>
|
<Link to="/" className="navbar__link">
|
||||||
<li><a href="/assignment" className="navbar__link">Assignment</a></li>
|
Home
|
||||||
<li><a href="/editor" className="navbar__link">Editor</a></li>
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link to="/notebook" className="navbar__link">
|
||||||
|
NoteBook
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link to="/assignment" className="navbar__link">
|
||||||
|
Assignment
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link to="/editor" className="navbar__link">
|
||||||
|
Editor
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link to="/login" className="navbar__link">
|
||||||
|
Login
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
)
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default Navbar
|
export default Navbar;
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,10 @@ import "./scss/styles.scss";
|
||||||
import Navbar from "./components/Navbar";
|
import Navbar from "./components/Navbar";
|
||||||
import Hero from "./components/Hero";
|
import Hero from "./components/Hero";
|
||||||
import Services from "./components/Services";
|
import Services from "./components/Services";
|
||||||
|
import Header from "./components/Header";
|
||||||
|
|
||||||
createRoot(document.getElementById("root")).render(
|
createRoot(document.getElementById("root")).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
|
|
||||||
<AppRouter />
|
<AppRouter />
|
||||||
|
|
||||||
</StrictMode>
|
</StrictMode>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
107
src/pages/AssignmentPage.jsx
Normal file
107
src/pages/AssignmentPage.jsx
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
// Page - Assignment
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import '../scss/styles.scss';
|
||||||
|
|
||||||
|
const AssignmentPage = () => {
|
||||||
|
const [files, setFiles] = useState([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = 'Assignment';
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleFileChange = (e) => {
|
||||||
|
if (e.target.files) {
|
||||||
|
const newFiles = Array.from(e.target.files);
|
||||||
|
setFiles(prevFiles => [...prevFiles, ...newFiles]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleRemoveFile = (index) => {
|
||||||
|
setFiles(prevFiles => prevFiles.filter((_, i) => i !== index));
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleSubmit = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
// Here you would typically send the files to a server
|
||||||
|
console.log('Files to submit:', files);
|
||||||
|
alert('Assignment submitted successfully!');
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main className="assignment-page">
|
||||||
|
<section>
|
||||||
|
<div className="assignment-header">
|
||||||
|
<h2>Assignment Submission</h2>
|
||||||
|
<div className="due-date">
|
||||||
|
<p>Due on Jan 16, 2025 11:59 PM</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="assignment-container">
|
||||||
|
<div className="assignment-info">
|
||||||
|
<h3>Submit Assignment</h3>
|
||||||
|
<p className="files-count">({files.length}) file(s) to submit</p>
|
||||||
|
<p className="submission-note">After uploading, you must click Submit to complete the submission.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="file-upload-section">
|
||||||
|
<div className="upload-buttons">
|
||||||
|
<label className="file-upload-btn">
|
||||||
|
<input
|
||||||
|
type="file"
|
||||||
|
multiple
|
||||||
|
onChange={handleFileChange}
|
||||||
|
style={{ display: 'none' }}
|
||||||
|
/>
|
||||||
|
Add a File
|
||||||
|
</label>
|
||||||
|
<button className="record-audio-btn">Record Audio</button>
|
||||||
|
<button className="record-video-btn">Record Video</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{files.length > 0 && (
|
||||||
|
<div className="files-list">
|
||||||
|
<h4>Selected Files:</h4>
|
||||||
|
<ul>
|
||||||
|
{files.map((file, index) => (
|
||||||
|
<li key={index} className="file-item">
|
||||||
|
<span className="file-name">{file.name}</span>
|
||||||
|
<span className="file-size">({(file.size / 1024).toFixed(2)} KB)</span>
|
||||||
|
<button
|
||||||
|
className="remove-file-btn"
|
||||||
|
onClick={() => handleRemoveFile(index)}
|
||||||
|
>
|
||||||
|
Remove
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="comments-section">
|
||||||
|
<h4>Comments</h4>
|
||||||
|
<textarea
|
||||||
|
placeholder="Add a comment (optional)"
|
||||||
|
rows="4"
|
||||||
|
></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="submission-buttons">
|
||||||
|
<button
|
||||||
|
className="submit-btn"
|
||||||
|
onClick={handleSubmit}
|
||||||
|
disabled={files.length === 0}
|
||||||
|
>
|
||||||
|
Submit
|
||||||
|
</button>
|
||||||
|
<button className="cancel-btn">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AssignmentPage;
|
||||||
|
|
@ -8,7 +8,7 @@ const LoginPage = () => {
|
||||||
const [type, setType] = useState("signIn");
|
const [type, setType] = useState("signIn");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = "Login / Sign Up";
|
document.title = "Login / Instructor";
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleOnClick = (text) => {
|
const handleOnClick = (text) => {
|
||||||
|
|
@ -23,7 +23,7 @@ const LoginPage = () => {
|
||||||
return (
|
return (
|
||||||
<main className="login-page">
|
<main className="login-page">
|
||||||
<section>
|
<section>
|
||||||
<h2>Sign In/Sign Up</h2>
|
<h2>Student/Instructor</h2>
|
||||||
<div className={containerClass} id="container">
|
<div className={containerClass} id="container">
|
||||||
<SignUpForm />
|
<SignUpForm />
|
||||||
<SignInForm />
|
<SignInForm />
|
||||||
|
|
@ -31,26 +31,24 @@ const LoginPage = () => {
|
||||||
<div className="overlay">
|
<div className="overlay">
|
||||||
<div className="overlay-panel overlay-left">
|
<div className="overlay-panel overlay-left">
|
||||||
<h1>Welcome Back!</h1>
|
<h1>Welcome Back!</h1>
|
||||||
<p>
|
<p>Please login with your personal info</p>
|
||||||
To keep connected with us please login with your personal info
|
|
||||||
</p>
|
|
||||||
<button
|
<button
|
||||||
className="ghost"
|
className="ghost"
|
||||||
id="signIn"
|
id="signIn"
|
||||||
onClick={() => handleOnClick("signIn")}
|
onClick={() => handleOnClick("signIn")}
|
||||||
>
|
>
|
||||||
Sign In
|
Student
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="overlay-panel overlay-right">
|
<div className="overlay-panel overlay-right">
|
||||||
<h1>Hello, Friend!</h1>
|
<h1>Hello, Instructor!</h1>
|
||||||
<p>Enter your personal details and start journey with us</p>
|
<p>Please enter your personal details here</p>
|
||||||
<button
|
<button
|
||||||
className="ghost"
|
className="ghost"
|
||||||
id="signUp"
|
id="signUp"
|
||||||
onClick={() => handleOnClick("signUp")}
|
onClick={() => handleOnClick("signUp")}
|
||||||
>
|
>
|
||||||
Sign Up
|
Instructor
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -35,22 +35,16 @@ function SignInForm() {
|
||||||
return (
|
return (
|
||||||
<div className="form-container sign-in-container">
|
<div className="form-container sign-in-container">
|
||||||
<form onSubmit={handleOnSubmit}>
|
<form onSubmit={handleOnSubmit}>
|
||||||
<h1>Sign in</h1>
|
<h1>Student</h1>
|
||||||
<div className="social-container">
|
{/* <div className="social-container">
|
||||||
<a className="social" onClick={googleAuth}>
|
<a href="#" className="social">
|
||||||
<i className="fab fa-google-plus-g" />
|
<i className="fab fa-google-plus-g" />
|
||||||
</a>
|
</a>
|
||||||
<a href="#" className="social">
|
</div> */}
|
||||||
<i className="fab fa-facebook-f" />
|
|
||||||
</a>
|
|
||||||
<a href="#" className="social">
|
|
||||||
<i className="fab fa-linkedin-in" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<span>or use your account</span>
|
|
||||||
<input
|
<input
|
||||||
type="email"
|
type="email"
|
||||||
placeholder="Email"
|
placeholder="Student Name"
|
||||||
name="email"
|
name="email"
|
||||||
value={state.email}
|
value={state.email}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
|
@ -62,7 +56,7 @@ function SignInForm() {
|
||||||
value={state.password}
|
value={state.password}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
<a href="#">Forgot your password?</a>
|
|
||||||
<button>Sign In</button>
|
<button>Sign In</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function SignUpForm() {
|
||||||
|
|
||||||
const { name, email, password } = state;
|
const { name, email, password } = state;
|
||||||
alert(
|
alert(
|
||||||
`You are sign up with name: ${name} email: ${email} and password: ${password}`
|
`You are signed in with name: ${name} email: ${email} and password: ${password}`
|
||||||
);
|
);
|
||||||
|
|
||||||
for (const key in state) {
|
for (const key in state) {
|
||||||
|
|
@ -29,20 +29,18 @@ function SignUpForm() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const googleAuth = () => {
|
||||||
|
window.open("https://byte-camp-auth-service.fly.dev/auth/google", "_self");
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="form-container sign-up-container">
|
<div className="form-container sign-up-container">
|
||||||
<form onSubmit={handleOnSubmit}>
|
<form onSubmit={handleOnSubmit}>
|
||||||
<h1>Create Account</h1>
|
<h1>Instructor</h1>
|
||||||
<div className="social-container">
|
<div className="social-container">
|
||||||
<a href="#" className="social">
|
<a href="#" className="social" onClick={googleAuth}>
|
||||||
<i className="fab fa-facebook-f" />
|
|
||||||
</a>
|
|
||||||
<a href="#" className="social">
|
|
||||||
<i className="fab fa-google-plus-g" />
|
<i className="fab fa-google-plus-g" />
|
||||||
</a>
|
</a>
|
||||||
<a href="#" className="social">
|
|
||||||
<i className="fab fa-linkedin-in" />
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<span>or use your email for registration</span>
|
<span>or use your email for registration</span>
|
||||||
<input
|
<input
|
||||||
|
|
@ -66,7 +64,7 @@ function SignUpForm() {
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
/>
|
/>
|
||||||
<button>Sign Up</button>
|
<button>Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import HomePage from "../pages/HomePage";
|
||||||
import LoginPage from "../pages/LoginPage";
|
import LoginPage from "../pages/LoginPage";
|
||||||
import PageCodeEditor from "../pages/CodeEditor";
|
import PageCodeEditor from "../pages/CodeEditor";
|
||||||
import PageNotFound from "../pages/PageNotFound";
|
import PageNotFound from "../pages/PageNotFound";
|
||||||
|
import AssignmentPage from "../pages/AssignmentPage";
|
||||||
import Hero from "../components/Hero";
|
import Hero from "../components/Hero";
|
||||||
import Navbar from "../components/Navbar";
|
import Navbar from "../components/Navbar";
|
||||||
import Services from "../components/Services";
|
import Services from "../components/Services";
|
||||||
|
|
@ -19,32 +20,30 @@ const AppRouter = () => {
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<div className="wrapper">
|
<div className="wrapper">
|
||||||
{/* <Header /> */}
|
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route
|
<Route
|
||||||
path="/"
|
path="/"
|
||||||
element={
|
element={
|
||||||
// <ProtectedRoute>
|
<>
|
||||||
|
<Hero />
|
||||||
<Hero />
|
<Services />
|
||||||
|
</>
|
||||||
// </ProtectedRoute>
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{/* <Services /> */}
|
<Route path="/login" element={<LoginPage />} />
|
||||||
<Route path="login" element={<LoginPage />} />
|
|
||||||
<Route
|
<Route
|
||||||
path="editor"
|
path="/editor"
|
||||||
element={
|
element={
|
||||||
<ProtectedRoute>
|
<ProtectedRoute>
|
||||||
<PageCodeEditor />
|
<PageCodeEditor />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<Route path="/assignment" element={<AssignmentPage />} />
|
||||||
<Route path="*" element={<PageNotFound />} />
|
<Route path="*" element={<PageNotFound />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
<Services />
|
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 4rem 3rem;
|
padding: 4rem 3rem;
|
||||||
background-color: #f9f5f2;
|
background-color: #f9f5f2;
|
||||||
|
padding-top: 40rem;
|
||||||
|
|
||||||
|
|
||||||
.hero-text {
|
.hero-text {
|
||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
|
margin-left: 3rem;
|
||||||
// font-family: "Limelight", sans-serif;
|
// font-family: "Limelight", sans-serif;
|
||||||
|
|
||||||
.intro {
|
.intro {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@
|
||||||
padding: 1rem 2rem;
|
padding: 1rem 2rem;
|
||||||
color: white;
|
color: white;
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
// .login-page {
|
||||||
|
// min-height: 100vh;
|
||||||
|
// display: flex;
|
||||||
|
// justify-content: center;
|
||||||
|
// align-items: center;
|
||||||
|
|
||||||
|
// background-image: url("../../../public/images/grid-background.png");
|
||||||
|
// background-size: cover;
|
||||||
|
// background-position: center;
|
||||||
|
// background-repeat: no-repeat;
|
||||||
|
// background-attachment: fixed;
|
||||||
|
|
||||||
|
// section {
|
||||||
|
// width: 100%;
|
||||||
|
// max-width: 800px;
|
||||||
|
// padding: 20px;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
.App {
|
.App {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
@ -10,7 +28,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #f6f5f7;
|
background: transparent;
|
||||||
|
background-image: url("../../../public/images/grid-background.jpg");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-attachment: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -27,6 +50,8 @@ h1 {
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|
@ -227,8 +252,8 @@ input {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
height: 40px;
|
height: 60px;
|
||||||
width: 40px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
|
|
||||||
198
src/scss/page/assignment.scss
Normal file
198
src/scss/page/assignment.scss
Normal file
|
|
@ -0,0 +1,198 @@
|
||||||
|
// Assignment Page Styling
|
||||||
|
|
||||||
|
.assignment-page {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding: 2rem;
|
||||||
|
|
||||||
|
section {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 900px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assignment-header {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
border-bottom: 1px solid #e0e0e0;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 3rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.due-date {
|
||||||
|
color: #c6c6c6;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.assignment-container {
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||||
|
padding: 2rem;
|
||||||
|
|
||||||
|
.assignment-info {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.files-count {
|
||||||
|
font-size: 1rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submission-note {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-upload-section {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
.upload-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.file-upload-btn,
|
||||||
|
.record-audio-btn,
|
||||||
|
.record-video-btn {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.6rem 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
color: #333;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #e9e9e9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.files-list {
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-bottom: 0.8rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.file-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-name {
|
||||||
|
flex-grow: 1;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-size {
|
||||||
|
color: #777;
|
||||||
|
margin: 0 1rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remove-file-btn {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
color: #ff5252;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
padding: 0.3rem 0.6rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.comments-section {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-bottom: 0.8rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.8rem;
|
||||||
|
font-family: inherit;
|
||||||
|
resize: vertical;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: #4a90e2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.submission-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
|
||||||
|
.submit-btn,
|
||||||
|
.cancel-btn {
|
||||||
|
padding: 0.7rem 1.5rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #4a90e2;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #3a7bc8;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
background-color: #a0c3e8;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cancel-btn {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
@use "./page//home";
|
@use "./page//home";
|
||||||
@use "./page//login";
|
@use "./page//login";
|
||||||
@use "./page/code_editor";
|
@use "./page/code_editor";
|
||||||
|
@use "./page/assignment";
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
@use "./utilities/utility-classes";
|
@use "./utilities/utility-classes";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue