Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
myix765 committed Jan 19, 2025
1 parent d2fdf73 commit 128d4d5
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 391 deletions.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Class.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const Class = ({ classObj }) => {
classId={classObj._id}
isEnroll={true}
/>
<EnrollButton
{/* <EnrollButton
userId={user?._id}
classId={classObj._id}
isEnroll={false}
/>
/> */}
</div>
</SignedIn>
</div>
Expand Down
137 changes: 0 additions & 137 deletions src/components/CreateClassForm.jsx

This file was deleted.

16 changes: 8 additions & 8 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { useTranslation } from "react-i18next";

const Footer = () => {
const { t } = useTranslation();
const { t } = useTranslation();

return (
<footer className="h-80 bg-dark-blue-800 text-white flex flex-col justify-center gap-y-5">
<p className="text-4xl font-extrabold mx-20">Dillar English Academy</p>
<p className="text-lg mx-20">{t("email_field")}: [email protected]</p>
<p className="text-lg mx-20">{t("instagram")}: @dillaracademy</p>
</footer>
)
return (
<footer className="h-80 bg-dark-blue-800 text-white flex flex-col justify-center gap-y-5">
<p className="text-4xl font-extrabold mx-20">Dillar English Academy</p>
<p className="text-lg mx-20">{t("email_field")}: [email protected]</p>
<p className="text-lg mx-20">{t("instagram")}: @dillaracademy</p>
</footer>
)
}

export default Footer;
47 changes: 0 additions & 47 deletions src/components/HomeClass.jsx

This file was deleted.

44 changes: 22 additions & 22 deletions src/pages/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@ import { useTranslation } from "react-i18next";
import { IoStar } from "react-icons/io5";

function About() {
const { t } = useTranslation();
const { t } = useTranslation();

return (
<div className="flex flex-col sm:flex-row-reverse sm:justify-between h-full py-40 xl:px-16 md:px-6 px-4">
<div className="flex items-center justify-center sm:w-1/3">
<img src={stepping_stones_landscape} alt="stepping_stones_landscape" className="rounded-3xl shadow-xl aspect-square" title="stepping_stones_landscape"></img>
</div>
<div className="my-auto sm:w-7/12 sm:text-lg">
<h1 className="text-4xl py-5 sm:text-5xl text-center sm:text-left font-extrabold text-blue-700 inline-flex items-center">
<IoStar
style={{ fontSize: '40px' }}
color="steelblue"
className="mr-2"
/>
{t("about_heading")}
</h1>
<p>{t("about_desc_1")}
<br /><br />
{t("about_desc_2")}
</p>
</div>
</div>
)
return (
<div className="flex flex-col items-center sm:items-stretch sm:flex-row-reverse sm:justify-between sm:h-full py-10 sm:py-40 xl:px-16 md:px-6 px-4">
<div className="flex items-center justify-center sm:w-1/3">
<img src={stepping_stones_landscape} alt="stepping_stones_landscape" className="rounded-3xl shadow-xl aspect-square" title="stepping_stones_landscape"></img>
</div>
<div className="my-auto sm:w-7/12 sm:text-lg">
<h1 className="text-4xl py-5 sm:text-5xl text-center sm:text-left font-extrabold text-blue-700 inline-flex items-center">
<IoStar
style={{ fontSize: '40px' }}
color="steelblue"
className="mr-2"
/>
{t("about_heading")}
</h1>
<p>{t("about_desc_1")}
<br /><br />
{t("about_desc_2")}
</p>
</div>
</div>
)
}

export default About;
Loading

0 comments on commit 128d4d5

Please sign in to comment.