Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added in the Skeleton CSS and a JSX page for the skeleton #756

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions client/src/pages/skeleton/Skeleton.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/* Compiled CSS */
body {
background-color: #6b46c1;
color: #fff;
min-height: 100vh;
}


@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}


.animate-pulse {
animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
}


.logo-container {
display: flex;
gap: 1rem;
}


.placeholder {
background-color: #9f7aea;
border-radius: 0.25rem;
}


main {
padding: 1.5rem;
gap: 1.5rem;
}


.banner {
height: 5rem;
border-radius: 0.25rem;
}


.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}


.item {
height: 9rem;
border-radius: 0.25rem;
}


.schedule {
display: flex;
flex-direction: column;
align-items: flex-start;
}


.button-container {
display: flex;
gap: 1rem;
}


.button {
flex-grow: 1;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
}


@media (min-width: 768px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}

52 changes: 52 additions & 0 deletions client/src/pages/skeleton/skel.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import {
React,
// useState
} from 'react';
import './Skeleton.css';


const PageAbout = () => {
return (
<div className="App">
<header>
<div className="logo-container">
<div className="placeholder logo" />
<h1>Lambda</h1>
</div>
<nav>
{/* Navigation items */}
<button className="register">Register</button>
</nav>
</header>
<main>
<div className="banner placeholder" />
<section className="tasks-announcements">
<h2>Tasks and Announcements</h2>
<div className="grid">
{/* Replace these placeholders with actual content */}
<div className="item placeholder" />
<div className="item placeholder" />
{/* Add more placeholders as needed */}
</div>
</section>
<section className="schedule">
<h2>Schedule</h2>
<div className="button-container">
{/* Replace these placeholders with actual buttons */}
<button className="button placeholder">Monday</button>
<button className="button placeholder">Tuesday</button>
<button className="button placeholder">Wednesday</button>
<button className="button placeholder">Thursday</button>
<button className="button placeholder">Friday</button>
</div>
</section>
</main>
</div>
);
};


export default PageAbout;


export { PageAbout };