Skip to content

Commit 1035165

Browse files
committed
🚧 WIP: creating pipelines
1 parent 1543643 commit 1035165

4 files changed

Lines changed: 142 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
build-and-deploy:
17+
runs-on: ubuntu-latest
18+
concurrency: ci-${{ github.ref }}
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: '18'
28+
cache: 'npm'
29+
30+
- name: Install Dependencies
31+
run: |
32+
npm ci
33+
if [ $? -ne 0 ]; then
34+
echo "Failed to install dependencies"
35+
exit 1
36+
fi
37+
38+
- name: Build
39+
run: |
40+
npm run build
41+
if [ $? -ne 0 ]; then
42+
echo "Build failed"
43+
exit 1
44+
fi
45+
env:
46+
DEPLOY_TARGET: github
47+
NODE_ENV: production
48+
49+
- name: Deploy to GitHub Pages
50+
uses: peaceiris/actions-gh-pages@v3
51+
if: github.ref == 'refs/heads/master'
52+
with:
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
publish_dir: ./dist
55+
cname: eshanized.is-a.dev
56+
user_name: 'github-actions[bot]'
57+
user_email: 'github-actions[bot]@users.noreply.github.com'
58+
commit_message: 'Deploy to GitHub Pages'
59+
full_commit_message: 'Deploy to GitHub Pages from @ ${{ github.sha }}'

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eshanized.is-a.dev

src/index.css

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99
}
1010

11+
/* Smooth page transitions */
1112
.page-transition-enter {
1213
opacity: 0;
1314
transform: translateY(20px);
@@ -28,4 +29,78 @@
2829
opacity: 0;
2930
transform: translateY(-20px);
3031
transition: opacity 300ms, transform 300ms;
32+
}
33+
34+
/* Enhanced hover animations */
35+
.hover-lift {
36+
transition: transform 0.2s ease-in-out;
37+
}
38+
39+
.hover-lift:hover {
40+
transform: translateY(-5px);
41+
}
42+
43+
/* Parallax effect classes */
44+
.parallax {
45+
transform: translateY(var(--parallax-y, 0));
46+
transition: transform 0.1s ease-out;
47+
}
48+
49+
/* Loading animation */
50+
.loading-pulse {
51+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
52+
}
53+
54+
@keyframes pulse {
55+
0%, 100% {
56+
opacity: 1;
57+
}
58+
50% {
59+
opacity: 0.5;
60+
}
61+
}
62+
63+
/* Gradient animations */
64+
.gradient-animate {
65+
background-size: 200% 200%;
66+
animation: gradient 15s ease infinite;
67+
}
68+
69+
@keyframes gradient {
70+
0% {
71+
background-position: 0% 50%;
72+
}
73+
50% {
74+
background-position: 100% 50%;
75+
}
76+
100% {
77+
background-position: 0% 50%;
78+
}
79+
}
80+
81+
/* Smooth scrolling */
82+
html {
83+
scroll-behavior: smooth;
84+
}
85+
86+
/* Enhanced focus styles */
87+
:focus {
88+
@apply outline-none ring-2 ring-purple-500 ring-offset-2 ring-offset-white;
89+
}
90+
91+
/* Custom scrollbar */
92+
::-webkit-scrollbar {
93+
width: 10px;
94+
}
95+
96+
::-webkit-scrollbar-track {
97+
@apply bg-gray-100;
98+
}
99+
100+
::-webkit-scrollbar-thumb {
101+
@apply bg-purple-500 rounded-full;
102+
}
103+
104+
::-webkit-scrollbar-thumb:hover {
105+
@apply bg-purple-600;
31106
}

vite.config.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
33
import VitePluginSitemap from 'vite-plugin-sitemap';
44

5-
// Define your website URLs
6-
const githubUrl = 'https://eshanized.github.io';
7-
const gitlabUrl = 'https://eshanized.gitlab.io';
8-
9-
// Use the appropriate URL based on the deployment target
10-
const siteUrl = process.env.DEPLOY_TARGET === 'gitlab' ? gitlabUrl : githubUrl;
5+
// Define your website URL
6+
const siteUrl = 'https://eshanized.is-a.dev';
117

128
// Define your routes
139
const routes = [
@@ -36,16 +32,13 @@ export default defineConfig({
3632
build: {
3733
rollupOptions: {
3834
output: {
39-
entryFileNames: 'scripts.js', // JavaScript output as scripts.js
40-
chunkFileNames: 'scripts.js',
35+
entryFileNames: 'assets/[name].[hash].js',
36+
chunkFileNames: 'assets/[name].[hash].js',
4137
assetFileNames: (assetInfo) => {
42-
if (assetInfo.name === 'style.css') {
43-
return 'style.css';
44-
}
45-
if (assetInfo.name === 'robots.txt') {
46-
return 'robots.txt';
38+
if (assetInfo.name === 'index.css') {
39+
return 'assets/[name].[hash][extname]';
4740
}
48-
return '[name][extname]';
41+
return 'assets/[name].[hash][extname]';
4942
}
5043
}
5144
}

0 commit comments

Comments
 (0)