You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
5.7 KiB

  1. import { Head } from '@inertiajs/react';
  2. import { PageProps } from '@/types';
  3. import Guest from '@/Layouts/GuestLayout';
  4. import Authenticated from '@/Layouts/AuthenticatedLayout';
  5. import ProjectBanner from '@/Components/ProjectBanner';
  6. const About = ({ auth }: PageProps) => {
  7. const renderAboutContent = () => (
  8. <div id="About" className="px-6 py-4">
  9. <div id="project-desc" className="hero my-16 pb-16 rounded-lgmin-h-screen bg-cover"
  10. style={{backgroundImage: 'url(assets/images/img-banner.png)'}}>
  11. <div className="hero-content flex-row">
  12. <ProjectBanner />
  13. <article id="description" className="w-full">
  14. <h2 className="my-8 p-4 bg-secondary-background font-bold text-3xl leading-[44px]">About Project CodeHub</h2>
  15. <p className="text-justify font-normal text-lg leading-[28px]">Project CodeHub is a website accessible for the Department of Science and Technology (DOST) IT Department,
  16. which curates repositories of source codes and instructional materials
  17. about different web technologies and programming languages
  18. that would help the IT Department employees build their own projects easily.</p>
  19. </article>
  20. </div>
  21. </div>
  22. <div className="divider"><p className="my-8 p-4 bg-secondary-background font-bold text-3xl leading-[44px]">Technology Stack</p></div>
  23. <div id="techStack">
  24. <div className="flex justify-center mt-12 mb-8 stats shadow">
  25. <div className="stat bg-primary-background">
  26. <div className="stat-value font-semibold text-3xl leading-[44px]">Web Technologies</div>
  27. <div className="stat-actions">
  28. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">HTML</div>
  29. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">PHP</div>
  30. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">CSS</div>
  31. <div className="badge badge-lg bg-info-background text-info-main badge-outline">JS</div>
  32. </div>
  33. </div>
  34. <div className="stat bg-primary-background">
  35. <div className="stat-value font-semibold text-3xl leading-[44px]">Development Frameworks</div>
  36. <div className="stat-actions">
  37. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">Node.js</div>
  38. <div className="badge badge-lg bg-info-background text-info-main badge-outline">Composer</div>
  39. </div>
  40. </div>
  41. <div className="stat bg-primary-background">
  42. <div className="stat-value font-semibold text-3xl leading-[44px]">Database</div>
  43. <div className="stat-actions">
  44. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">Apache Server</div>
  45. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">phpMyAdmin</div>
  46. <div className="badge badge-lg bg-info-background text-info-main badge-outline">MySQL</div>
  47. </div>
  48. </div>
  49. </div>
  50. <div className="flex justify-center mt-4 mb-12 stats shadow">
  51. <div className="stat bg-primary-background">
  52. <div className="stat-value font-semibold text-3xl leading-[44px]">Backend Frameworks</div>
  53. <div className="stat-actions">
  54. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">Laravel</div>
  55. <div className="badge badge-lg bg-info-background text-info-main badge-outline">Axios</div>
  56. </div>
  57. </div>
  58. <div className="stat bg-primary-background">
  59. <div className="stat-value font-semibold text-3xl leading-[44px]">Frontend Frameworks</div>
  60. <div className="stat-actions">
  61. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">ReactJS</div>
  62. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">TailwindCSS</div>
  63. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">daisyUI</div>
  64. <div className="badge badge-lg bg-info-background text-info-main badge-outline mr-1">StorySet</div>
  65. <div className="badge badge-lg bg-info-background text-info-main badge-outline">FeatherIcons</div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. );
  72. return (
  73. <>
  74. <Head title="About" />
  75. <div>
  76. {auth.user ? (
  77. <Authenticated user={auth.user}>
  78. {renderAboutContent()}
  79. </Authenticated>
  80. ) : (
  81. <>
  82. <Guest>
  83. {renderAboutContent()}
  84. </Guest>
  85. </>
  86. )}
  87. </div>
  88. </>
  89. );
  90. }
  91. export default About;