Date: Sat, 3 Aug 2024 15:58:00 +0200
Subject: [PATCH] UPDATE: starting the real website
---
Dokerfile | 12 ++++++++++++
dokerfile | 12 ------------
nginx.conf | 18 ------------------
src/component/App.jsx | 2 +-
src/component/Head.jsx | 15 +++++++++++++++
src/component/Navbar.jsx | 7 ++++++-
src/main.jsx | 8 ++++++--
7 files changed, 40 insertions(+), 34 deletions(-)
create mode 100644 Dokerfile
delete mode 100644 dokerfile
delete mode 100644 nginx.conf
create mode 100644 src/component/Head.jsx
diff --git a/Dokerfile b/Dokerfile
new file mode 100644
index 0000000..6129dcf
--- /dev/null
+++ b/Dokerfile
@@ -0,0 +1,12 @@
+FROM docker.io/oven/bun:1.1-slim AS build
+WORKDIR /app
+COPY package.json bun.lockb .
+RUN bun install
+COPY . .
+RUN bun run build
+
+
+EXPOSE 5173
+CMD ["bun start", "host", "0"]
+
+##-p pour acceder au port
\ No newline at end of file
diff --git a/dokerfile b/dokerfile
deleted file mode 100644
index d9d23d4..0000000
--- a/dokerfile
+++ /dev/null
@@ -1,12 +0,0 @@
-FROM thecodingmachine/nodejs:16-bun AS build
-WORKDIR /app
-COPY package.json bun.lockb .
-RUN bun install
-COPY . .
-RUN bun run build
-
-FROM nginx:stable-alpine AS production
-COPY --from=build /app/dist /usr/share/nginx/html
-COPY nginx.conf /etc/nginx/conf.d/default.conf
-EXPOSE 80
-CMD ["nginx", "-g", "daemon off;"]
diff --git a/nginx.conf b/nginx.conf
deleted file mode 100644
index 0bb384f..0000000
--- a/nginx.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-server {
- listen 80;
- server_name localhost;
-
- root /usr/share/nginx/html;
- index index.html;
-
- location / {
- try_files $uri $uri/ /index.html;
- }
-
- error_page 404 /index.html;
-
- location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
- expires max;
- log_not_found off;
- }
-}
diff --git a/src/component/App.jsx b/src/component/App.jsx
index 3dff745..3fa2430 100644
--- a/src/component/App.jsx
+++ b/src/component/App.jsx
@@ -1,3 +1,3 @@
export function App() {
- return Bienvenue sur Gmoker.com
;
+ return Bienvenue sur Gmoker.com
;
}
diff --git a/src/component/Head.jsx b/src/component/Head.jsx
new file mode 100644
index 0000000..b69a74f
--- /dev/null
+++ b/src/component/Head.jsx
@@ -0,0 +1,15 @@
+export function Header() {
+ return (
+
+
+ Aceuil About Product Blog Serveurs Dowloads Help
+
+ Acount Get started
+
+ );
+}
diff --git a/src/component/Navbar.jsx b/src/component/Navbar.jsx
index 79a77da..301dc00 100644
--- a/src/component/Navbar.jsx
+++ b/src/component/Navbar.jsx
@@ -2,5 +2,10 @@ export function Navbar() {
/* console.log("coucou les zamis");
const sex = 5; */
- return Navbar woula
;
+ return (
+
+ {" "}
+ Welcome to gmoker, the the website is under construction
+
+ );
}
diff --git a/src/main.jsx b/src/main.jsx
index 897a79f..2f787af 100644
--- a/src/main.jsx
+++ b/src/main.jsx
@@ -6,19 +6,20 @@ import { Body } from "./component/Body.jsx";
import { Footer } from "./component/Footer.jsx";
import { Postcard } from "./component/Card.jsx";
import { Button } from "./component/Button.jsx";
+import { Header } from "./component/Head.jsx";
import chat from "./assets/chat_sex.jpg";
function buttoncaller(argv) {
console.log(argv);
+ alert(argv);
}
ReactDOM.createRoot(document.getElementById("root")).render(
<>
+
-