Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saumilthecode authored Nov 1, 2024
1 parent 608741b commit 207f7fd
Show file tree
Hide file tree
Showing 19 changed files with 115 additions and 373 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
.vercel
.next
25 changes: 16 additions & 9 deletions .next/app-build-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
{
"pages": {
"/layout": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/css/app/layout.css",
"static/chunks/app/layout.js"
],
"/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/page.js"
"static/chunks/_d86153._.js",
"static/chunks/src_app_favicon_ico_mjs_e3431b._.js",
"static/chunks/src_app_c7d265._.css",
"static/chunks/src_app_layout_tsx_20a9fc._.js",
"static/chunks/src_app_layout_tsx_600847._.js",
"static/chunks/node_modules_next_531fef._.js",
"static/chunks/src_app_page_tsx_32efbb._.js",
"static/chunks/src_app_page_tsx_e89336._.js",
"static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc._.js",
"static/chunks/node_modules_next_dist_compiled_107ce8._.js",
"static/chunks/node_modules_next_dist_client_e72844._.js",
"static/chunks/node_modules_next_dist_d09de6._.js",
"static/chunks/node_modules_@swc_helpers_cjs_00636a._.js",
"static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_b203ae._.js",
"static/chunks/_c4c472._.js",
"static/chunks/_fee5ad._.js"
]
}
}
27 changes: 16 additions & 11 deletions .next/build-manifest.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"polyfillFiles": [
"static/chunks/polyfills.js"
],
"pages": {
"/_app": []
},
"devFiles": [],
"ampDevFiles": [],
"polyfillFiles": [
"static/chunks/node_modules_next_dist_build_polyfills_polyfill-nomodule.js"
],
"lowPriorityFiles": [
"static/development/_buildManifest.js",
"static/development/_ssgManifest.js"
"static/development/_ssgManifest.js",
"static/development/_buildManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
"static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc._.js",
"static/chunks/node_modules_next_dist_compiled_107ce8._.js",
"static/chunks/node_modules_next_dist_client_e72844._.js",
"static/chunks/node_modules_next_dist_d09de6._.js",
"static/chunks/node_modules_@swc_helpers_cjs_00636a._.js",
"static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_b203ae._.js",
"static/chunks/_c4c472._.js",
"static/chunks/_fee5ad._.js"
],
"rootMainFilesTree": {},
"pages": {
"/_app": []
},
"ampFirstPages": []
}
3 changes: 2 additions & 1 deletion .next/server/app-paths-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"/page": "app/page.js"
"/page": "app/page.js",
"/favicon.ico/route": "app/favicon.ico/route.js"
}
91 changes: 5 additions & 86 deletions .next/server/app/favicon.ico/route.js

Large diffs are not rendered by default.

198 changes: 11 additions & 187 deletions .next/server/app/page.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .next/server/app/page_client-reference-manifest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .next/server/interception-route-rewrite-manifest.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
self.__INTERCEPTION_ROUTE_REWRITE_MANIFEST="[]"
self.__INTERCEPTION_ROUTE_REWRITE_MANIFEST="[]";
23 changes: 1 addition & 22 deletions .next/server/middleware-build-manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .next/server/middleware-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 3,
"middleware": {},
"functions": {},
"sortedMiddleware": []
"sortedMiddleware": [],
"functions": {}
}
2 changes: 1 addition & 1 deletion .next/server/next-font-manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion .next/server/next-font-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
{"pages":{},"app":{"/Users/tkrobot/Documents/Documents - sabook023/propoganda-online/src/app/layout":["static/media/463dafcda517f24f-s.p.woff","static/media/4473ecc91f70f139-s.p.woff"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}
{
"app": {
"[project]/src/app/page": [
"static/media/GeistVF-s.p.7fe29570.woff",
"static/media/GeistMonoVF-s.p.a9159d35.woff"
]
},
"appUsingSizeAdjust": true,
"pages": {},
"pagesUsingSizeAdjust": false
}
2 changes: 1 addition & 1 deletion .next/server/server-reference-manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .next/server/server-reference-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"node": {},
"edge": {},
"encryptionKey": "RkbMVqfkvEi/oUUDeKfXd8MJxr2BaVfBxElBPeJ0OpU="
"encryptionKey": "tpcOiuUwMDIH80ZDpQLuoNL30/GJ3kkTMUxaSwtx0DM="
}
2 changes: 1 addition & 1 deletion .next/static/development/_buildManifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .next/trace

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/app/feedback/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use client';

export default function Feedback() {
return (
<div className="bg-yellow-100 min-h-screen flex items-center justify-center">
<iframe
src="https://docs.google.com/forms/d/11EIaaQngAFi9lIY8X2p1YzdfFGoUKArIyZZ4KjiaI3c/viewform"
className="w-full h-full"
title="BBSS Feedback"
/>
</div>
);
}
58 changes: 10 additions & 48 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
'use client';
'use client';

import Image from 'next/image';
import Link from 'next/link'; // Import Link for navigation
import { useRouter } from 'next/navigation'; // Correct import for Next.js 13
import Link from 'next/link';
import { useRouter } from 'next/navigation';

export default function Home() {
const router = useRouter();

const handleLogoClick = () => {
router.push('/propoganda'); // Navigate to the Propoganda page
// This will now show the external URL embedded in the iframe
router.push('/propaganda');
};

return (
<div className="flex min-h-screen flex-col items-center justify-center bg-yellow-100 p-4">
{/* School Logo as Button */}
<div onClick={handleLogoClick}>
<Image
src="/images/school-logo.png" // Update to your image path
alt="Bukit Batnext dev ok Secondary School Logo"
className="object-contain shadow-lg rounded-lg mt-12 mb-6 cursor-pointer" // Added cursor-pointer for better UX
width={192} // Specify the width
height={256} // Specify the height
src="/images/school-logo.png"
alt="Bukit Batok Secondary School Logo"
className="object-contain shadow-lg rounded-lg mt-12 mb-6 cursor-pointer"
width={192}
height={256}
/>
</div>

{/* Buttons */}
<div className="flex space-x-4 mb-8">
<Link href="/about">
<button className="px-6 py-3 bg-red-700 text-white rounded-lg shadow-md hover:bg-red-800">
Expand All @@ -45,10 +42,7 @@ export default function Home() {
</button>
</Link>

{/* Footer Text */}
<p className="text-center mb-2 text-black">
Made by Saumil, Zenneth, and Daivik
</p>
<p className="text-center mb-2 text-black">Made by Saumil, Zenneth, and Daivik</p>
<p className="text-center text-black">
A product of{' '}
<a
Expand All @@ -63,35 +57,3 @@ export default function Home() {
</div>
);
}

// New components for the pages
// propoganda.tsx
export function Propoganda() {
return (
<div className="bg-yellow-100 min-h-screen flex flex-col items-center justify-start">
<button onClick={() => window.history.back()} className="m-4 px-4 py-2 bg-blue-500 text-white rounded-lg">
Back
</button>
<iframe
src="https://www.moe.gov.sg/schoolfinder/schooldetail?schoolname=bukit-batok-secondary-school"
className="w-full h-full"
title="BBSS Propoganda"
/>
</div>
);
}

// feedback.tsx
export function Feedback() {
return (
<div className="bg-yellow-100 min-h-screen flex items-center justify-center">
<iframe
src="https://docs.google.com/forms/d/11EIaaQngAFi9lIY8X2p1YzdfFGoUKArIyZZ4KjiaI3c/viewform"
className="w-full h-full"
title="BBSS Feedback"
/>
</div>
);
}

// About and HowToGetToBBSS components can be created similarly
16 changes: 16 additions & 0 deletions src/app/propaganda/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use client';

export default function Propaganda() {
return (
<div className="bg-yellow-100 min-h-screen flex flex-col items-center justify-start">
<button onClick={() => window.history.back()} className="m-4 px-4 py-2 bg-blue-500 text-white rounded-lg">
Back
</button>
<iframe
src="https://www.moe.gov.sg/schoolfinder/schooldetail?schoolname=bukit-batok-secondary-school"
className="w-full h-full"
title="BBSS Propaganda"
/>
</div>
);
}

0 comments on commit 207f7fd

Please sign in to comment.