fix images
continuous-integration/drone/push Build is passing Details

main
Lucas DELANIER 11 months ago
parent d1ec0538d9
commit 20d5093276

@ -1,9 +1,19 @@
FROM node:lts-alpine as builder # stage1 as builder
FROM node:16-alpine as builder
# Copy the package.json and install dependencies
COPY package*.json ./
RUN npm install
# Copy rest of the files
COPY . .
# Build the project
RUN npm run build
WORKDIR /app
COPY . ./
RUN npm install && npm run build
FROM nginx:alpine FROM nginx:alpine as production-build
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist /usr/share/nginx/html ## Remove default nginx index page
RUN rm -rf /usr/share/nginx/html/*
# Copy from the stage 1
COPY --from=builder /dist /usr/share/nginx/html/nested-app
EXPOSE 8080
ENTRYPOINT ["nginx", "-g", "daemon off;"]

@ -1,20 +1,16 @@
worker_processes 1; worker_processes 4;
events { events { worker_connections 1024; }
worker_connections 1024;
}
http { http {
include /etc/nginx/mime.types;
server { server {
listen 8000; listen 8080;
server_name localhost; root /usr/share/nginx/html/nested-app;
include /etc/nginx/mime.types;
location / { location /nested-app/ {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; try_files $uri $uri/ /nested-app/index.html;
try_files $uri $uri/ /index.html;
} }
} }
} }

@ -85,9 +85,7 @@ const progress = ref(0);
const visibleTextIndex = ref(0); const visibleTextIndex = ref(0);
// Function to check if middle text is visible // Function to check if middle text is visible
const checkVisibleTextIndex = () => { const checkVisibleTextIndex = () => {
console.log(visibleTextIndex.value)
const textElements = document.querySelectorAll('.magic-div > span'); const textElements = document.querySelectorAll('.magic-div > span');
console.log(textElements)// Selecting all <p> elements
textElements.forEach((element, index) => { textElements.forEach((element, index) => {
const bounding = element.getBoundingClientRect(); // Getting the position of each <p> element const bounding = element.getBoundingClientRect(); // Getting the position of each <p> element
if (bounding.top <= window.innerHeight - 500 && bounding.bottom >= 0) { if (bounding.top <= window.innerHeight - 500 && bounding.bottom >= 0) {

@ -6,14 +6,12 @@ import {Vue3Lottie} from "vue3-lottie";
import CopyJson from '../assets/lotties/Animation - 1714933994295.json' import CopyJson from '../assets/lotties/Animation - 1714933994295.json'
import { ref } from "vue"; import { ref } from "vue";
function openCV(){ function openCV(){
console.log('openCV')
window.open('files/cv.pdf', '_blank'); window.open('files/cv.pdf', '_blank');
} }
const copyAnimation = ref(null) const copyAnimation = ref(null)
const display = ref(false) const display = ref(false)
function copyEmail(event) { function copyEmail(event) {
console.log('copyEmail');
navigator.clipboard.writeText('delanierlucas@gmail.com'); navigator.clipboard.writeText('delanierlucas@gmail.com');
if(!display.value) { if(!display.value) {
const rect = event.target.getBoundingClientRect(); // Récupérer les coordonnées du bouton cliqué const rect = event.target.getBoundingClientRect(); // Récupérer les coordonnées du bouton cliqué

Loading…
Cancel
Save