forked from UKSOURCE/hailearning.edu.vn
chore
This commit is contained in:
@@ -45,9 +45,9 @@ Version: 1.0.0
|
|||||||
--body: #fff;
|
--body: #fff;
|
||||||
--black: #000;
|
--black: #000;
|
||||||
--white: #fff;
|
--white: #fff;
|
||||||
--theme: #BA312E;
|
--theme: #E13833;
|
||||||
--theme-2: #071830;
|
--theme-2: #0048B4;
|
||||||
--header: #151a26;
|
--header: #151A26;
|
||||||
--text: #535761;
|
--text: #535761;
|
||||||
--text-2: #0B4E3D;
|
--text-2: #0B4E3D;
|
||||||
--border: #C9C9C9;
|
--border: #C9C9C9;
|
||||||
@@ -6525,71 +6525,26 @@ html.lenis, html.lenis body {
|
|||||||
color: var(--theme);
|
color: var(--theme);
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.preloader
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(2):before {
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(2):before {
|
|
||||||
animation-delay: 0.1s;
|
|
||||||
}
|
|
||||||
.preloader
|
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(3):before {
|
|
||||||
animation-delay: 0.2s;
|
animation-delay: 0.2s;
|
||||||
}
|
}
|
||||||
.preloader
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(3):before {
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(4):before {
|
|
||||||
animation-delay: 0.3s;
|
|
||||||
}
|
|
||||||
.preloader
|
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(5):before {
|
|
||||||
animation-delay: 0.4s;
|
animation-delay: 0.4s;
|
||||||
}
|
}
|
||||||
.preloader
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(4):before {
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(6):before {
|
|
||||||
animation-delay: 0.5s;
|
|
||||||
}
|
|
||||||
.preloader
|
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(7):before {
|
|
||||||
animation-delay: 0.6s;
|
animation-delay: 0.6s;
|
||||||
}
|
}
|
||||||
.preloader
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(5):before {
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(8):before {
|
|
||||||
animation-delay: 0.7s;
|
|
||||||
}
|
|
||||||
.preloader
|
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(8):before {
|
|
||||||
animation-delay: 0.8s;
|
animation-delay: 0.8s;
|
||||||
}
|
}
|
||||||
.preloader
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(6):before {
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(9):before {
|
|
||||||
animation-delay: 0.9s;
|
|
||||||
}
|
|
||||||
.preloader
|
|
||||||
.animation-preloader
|
|
||||||
.txt-loading
|
|
||||||
.letters-loading:nth-child(10):before {
|
|
||||||
animation-delay: 1s;
|
animation-delay: 1s;
|
||||||
}
|
}
|
||||||
.preloader
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(7):before {
|
||||||
.animation-preloader
|
animation-delay: 1.2s;
|
||||||
.txt-loading
|
}
|
||||||
.letters-loading:nth-child(11):before {
|
.preloader .animation-preloader .txt-loading .letters-loading:nth-child(8):before {
|
||||||
animation-delay: 1.1s;
|
animation-delay: 1.4s;
|
||||||
}
|
}
|
||||||
.preloader .animation-preloader .txt-loading .letters-loading::before {
|
.preloader .animation-preloader .txt-loading .letters-loading::before {
|
||||||
animation: letters-loading 4s infinite;
|
animation: letters-loading 4s infinite;
|
||||||
|
|||||||
@@ -1,43 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "=== Next.js Standalone Build ==="
|
echo "=== Next.js Standalone Build ==="
|
||||||
|
|
||||||
APP_DIR=$(pwd)
|
|
||||||
BUILD_DIR=".next"
|
|
||||||
STANDALONE_DIR=".next/standalone"
|
|
||||||
|
|
||||||
echo "1. Installing dependencies..."
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
echo "2. Building Next.js..."
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
echo "3. Preparing standalone structure..."
|
echo "Copying required files..."
|
||||||
|
|
||||||
# ensure directories exist
|
# CHỈ cần 2 dòng này
|
||||||
mkdir -p $STANDALONE_DIR/.next
|
cp -r .next/static .next/standalone/.next/
|
||||||
|
cp -r public .next/standalone/
|
||||||
|
|
||||||
# copy static assets
|
echo "Done"
|
||||||
echo "Copying static assets..."
|
|
||||||
cp -r $BUILD_DIR/static $STANDALONE_DIR/.next/ 2>/dev/null || true
|
|
||||||
|
|
||||||
# copy public folder
|
|
||||||
if [ -d "public" ]; then
|
|
||||||
echo "Copying public folder..."
|
|
||||||
cp -r public $STANDALONE_DIR/
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "4. Creating deploy package..."
|
|
||||||
|
|
||||||
tar -czf standalone-deploy.tar.gz \
|
|
||||||
-C $STANDALONE_DIR . \
|
|
||||||
-C $APP_DIR public 2>/dev/null || true
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "Build completed."
|
|
||||||
echo "Deploy file: standalone-deploy.tar.gz"
|
|
||||||
echo ""
|
|
||||||
echo "Run on server:"
|
|
||||||
echo "PORT=3005 node server.js"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user