Skip to content

Commit

Permalink
scaffold: initialize project with documentation on you to start the a…
Browse files Browse the repository at this point in the history
…pp, base routes, navbar, and footer

Set up Next.js project structure for TEDxNTUA 2025 website.
Added base routes and created a dummy navbar and footer as initial components.
This commit establishes the scaffold for future development.
  • Loading branch information
GiannisTsagkaropoulos committed Feb 23, 2025
1 parent 37c4927 commit c57eca8
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 171 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:18

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD npm run dev
39 changes: 4 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,5 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
You can start this page using:

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
1. docker build -t my-app .
2. docker run -p 3000:3000 my-app
3. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Binary file added public/favicons/favicon-16x16.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 public/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/file.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/globe.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/window.svg

This file was deleted.

8 changes: 8 additions & 0 deletions src/app/about/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function AboutPage() {
<main>
{" "}
<p>About page</p>{" "}
</main>;
}

export default AboutPage;
Binary file removed src/app/favicon.ico
Binary file not shown.
23 changes: 6 additions & 17 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,9 @@
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}
@font-face {
font-family: 'AestheticRegular';
/* font-style: regular; */
font-weight: 400;
src: url('/fonts/AestheticRegular.ttf') format('ttf');
}
39 changes: 22 additions & 17 deletions src/app/layout.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});

const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
import Navbar from "@/components/Navbar/Navbar";
import Footer from "@/components/Footer/Footer";

export const metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "TEDxNTUA 2025",
description:
"Generated by TEDxNTUA2025-IT, tedxntua 2025, TEDX NTUA 2025, TEDxNTUA 2025, TEDxNTUA",
icons: [
{
rel: "icon",
type: "image/png",
sizes: "32x32",
url: "./favicons/favicon-32x32.png",
},
{
rel: "icon",
type: "image/png",
sizes: "16x16",
url: "./favicons/favicon-16x16.png",
},
],
};

export default function RootLayout({ children }) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<body>
<Navbar />
{children}
<Footer />
</body>
</html>
);
Expand Down
100 changes: 3 additions & 97 deletions src/app/page.js
Original file line number Diff line number Diff line change
@@ -1,101 +1,7 @@
import Image from "next/image";

export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
src/app/page.js
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>

<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
</div>
<main>
<p>TEDxNTUA 2025 main page</p>
</main>
);
}
5 changes: 5 additions & 0 deletions src/app/partners/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function PartnersPage() {
return <main>Partners' page</main>;
}

export default PartnersPage;
5 changes: 5 additions & 0 deletions src/app/performers/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function PerformersPage() {
return <main>Performers' page</main>;
}

export default PerformersPage;
5 changes: 5 additions & 0 deletions src/app/speakers/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function SpeakersPage() {
return <main>Speakers' page</main>;
}

export default SpeakersPage;
5 changes: 5 additions & 0 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function Footer() {
return <div>Test Footer</div>;
}

export default Footer;
5 changes: 5 additions & 0 deletions src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function Navbar() {
return <div>Test Navbar</div>;
}

export default Navbar;

0 comments on commit c57eca8

Please sign in to comment.