-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/istenith/prody2k24_frontEnd
- Loading branch information
Showing
44 changed files
with
1,189 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,29 @@ | ||
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy | ||
# More GitHub Actions for Azure: https://github.com/Azure/actions | ||
|
||
name: Build and deploy Node.js app to Azure Web App - prody-frontend | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
test_and_deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js version | ||
uses: actions/setup-node@v3 | ||
- name: Set up SSH | ||
uses: webfactory/ssh-agent@v0.5.1 | ||
with: | ||
node-version: '21.x' | ||
ssh-private-key: ${{ secrets.SSH_KEY_ACCESS }} | ||
|
||
- name: npm install, build, and test | ||
- name: Deploying to Server | ||
run: | | ||
npm install | ||
npm run build --if-present | ||
npm run test --if-present | ||
- name: Zip artifact for deployment | ||
run: zip release.zip ./* -r | ||
|
||
- name: Upload artifact for deployment job | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: node-app | ||
path: release.zip | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: 'Production' | ||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | ||
|
||
steps: | ||
- name: Download artifact from build job | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: node-app | ||
|
||
- name: Unzip artifact for deployment | ||
run: unzip release.zip | ||
|
||
- name: 'Deploy to Azure Web App' | ||
id: deploy-to-webapp | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: 'prody-frontend' | ||
slot-name: 'Production' | ||
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DDB9B781EEC74B5A904F2F66B0C3E1D3 }} | ||
package: . | ||
ssh -o StrictHostKeyChecking=no lucifer@prody.istenith.com << EOF | ||
cd prody-frontend | ||
git config pull.rebase false | ||
git pull origin master | ||
npm run build | ||
sudo systemctl restart prody-frontend.service | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { useProgress } from "@react-three/drei"; | ||
import { useEffect, useState } from "react"; | ||
export const LoadingScreen=(props)=>{ | ||
|
||
const [started,setStarted]=useState(false) | ||
const {progress,total,loaded,item}=useProgress(); | ||
|
||
useEffect(()=>{ | ||
if(progress===100){ | ||
setTimeout (()=>{ | ||
setStarted(true); | ||
},2000); | ||
|
||
} | ||
},[progress,total,loaded,item]) | ||
return( | ||
|
||
<div className={`bg-blue-800 fixed top-0 left-0 w-full h-full z-50 transition-opacity duration-1000 pointer-events-none | ||
flex items-center justify-center bg-indigo-50 | ||
${started?"opacity-0":"opacity-100"}`} | ||
> | ||
|
||
<div className="text-4xl md:text-9xl font-bold text-black relative"> | ||
<div | ||
className="absolute left-0 top-0 overflow-hidden truncate text-clip transition-all duration-500" | ||
style={{ | ||
width:`${progress}%`, | ||
}}> | ||
PRODYOGIKI | ||
</div> | ||
<div className="opacity-10">PRODYOGIKI</div> | ||
</div> | ||
</div> | ||
) | ||
}; | ||
|
||
export default LoadingScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.contactCard { | ||
background: rgba(255, 255, 255, 0.1); | ||
border-radius: 15px; | ||
padding: 20px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
transition: all 0.3s ease; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
color: #fff; | ||
height: 270px; | ||
width: 220px; | ||
/* max-height: 400px; */ | ||
overflow: auto; /* Adds scrollbar if content overflows */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
.footerContainer { | ||
animation: fadeInUp 1s ease-in-out; | ||
background-color: transparent; | ||
} | ||
|
||
|
||
@keyframes fadeInUp { | ||
from { | ||
opacity: 0; | ||
transform: translateY(20px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} | ||
|
Oops, something went wrong.