Skip to content

Commit

Permalink
Merge pull request #29 from Nagarjuna0033/main
Browse files Browse the repository at this point in the history
Refactor: Home page UI
  • Loading branch information
Nagarjuna0033 authored Dec 25, 2024
2 parents 70439be + 7391e49 commit 07b2acd
Show file tree
Hide file tree
Showing 21 changed files with 204 additions and 441 deletions.
17 changes: 0 additions & 17 deletions src/AddedDues.css

This file was deleted.

2 changes: 0 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { useState } from "react";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import { Route, Routes } from "react-router-dom";
import StudentFee from "./pages/StudentFee";
import CustomizedSnackbar from "./components/Snackbar";
Expand Down
Binary file added src/assets/hostelFee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/mis.mp4
Binary file not shown.
Binary file added src/assets/sch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/studentDetails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/tutionFee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 0 additions & 56 deletions src/components/Accordion2.jsx

This file was deleted.

55 changes: 0 additions & 55 deletions src/components/Accordion3.jsx

This file was deleted.

107 changes: 0 additions & 107 deletions src/components/Carousel.jsx

This file was deleted.

55 changes: 55 additions & 0 deletions src/components/CutsomAccordion.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import * as React from "react";
import Accordion from "@mui/material/Accordion";
import AccordionDetails from "@mui/material/AccordionDetails";
import AccordionSummary from "@mui/material/AccordionSummary";
import Typography from "@mui/material/Typography";
import { Stack } from "@mui/material";
import AddIcon from "@mui/icons-material/Add";
export default function CustomAccordion({ faq }) {
const [expanded, setExpanded] = React.useState(false);
console.log(faq);
const handleChange = (panel) => (event, isExpanded) => {
setExpanded(isExpanded ? panel : false);
};

return (
<Stack mt={3}>
<Accordion
elevation={0}
sx={{ border: "1px solid #1976d2", padding: "5px" }}
expanded={expanded === faq.index}
onChange={handleChange(faq.index)}
>
<AccordionSummary
expandIcon={<AddIcon />}
aria-controls="panel1bh-content"
id="panel1bh-header"
>
<Typography component="span" sx={{ flexShrink: 0 }}>
{faq.question}
</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography
m={1.5}
fontWeight={"bold"}
variant="h6"
textAlign={"center"}
sx={{ flexShrink: 0 }}
>
Go to the Upload section in the Navbar and select the option that
you want upload the file you want in the below format
</Typography>
{faq.file && faq.file.endsWith(".mp4") ? (
<video width="100%" controls>
<source src={faq.file} type="video/mp4" />
Your browser does not support the video tag.
</video>
) : (
faq.file && <img src={faq.file} alt="hint" width={"100%"} />
)}
</AccordionDetails>
</Accordion>
</Stack>
);
}
44 changes: 44 additions & 0 deletions src/components/Faq.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { Box } from "@mui/material";
import React from "react";
import student from "../assets/studentDetails.png";
import tutionFee from "../assets/tutionFee.png";
import hostelFee from "../assets/hostelFee.png";
import scholrship from "../assets/sch.png";
import mis from "../assets/mis.mp4";
import CustomAccordion from "./CutsomAccordion";
const faqs = [
{
index: 1,
file: student,
question: "In which format student details should upload?",
},
{
index: 2,
file: tutionFee,
question: "In which format Tution Fee Excel file should upload?",
},
{
index: 3,
file: hostelFee,
question: "In which format Hostel Fee Excel file should upload?",
},
{
index: 4,
file: scholrship,
question: "In which format Scholar ship details should upload?",
},
{
index: 5,
file: mis,
question: "In which format MSI Excel file should upload",
},
];
export default function Faq() {
return (
<Box width={"100%"}>
{faqs.map((faq) => {
return <CustomAccordion faq={faq} />;
})}
</Box>
);
}
Loading

0 comments on commit 07b2acd

Please sign in to comment.