mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2024-11-09 23:39:40 +00:00
chore: changes (#4)
<!-- hint: follow the conventional commits look at CONTRIBUTING.md make sure this repo would take a PR. --> ## features
This commit is contained in:
parent
f8935fa43f
commit
ce05006b57
3 changed files with 44 additions and 19 deletions
35
.github/workflows/deploy.yml
vendored
35
.github/workflows/deploy.yml
vendored
|
@ -12,29 +12,28 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build & deploy
|
name: Build & deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set Short SHA
|
- name: Set Short SHA
|
||||||
id: short_sha
|
id: short_sha
|
||||||
run: |
|
run: |
|
||||||
echo $(pwd)
|
echo $(pwd)
|
||||||
echo $(ls)
|
echo $(ls)
|
||||||
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
- name: executing remote ssh commands using password
|
- name: executing remote ssh commands using password
|
||||||
uses: appleboy/ssh-action@v0.1.8
|
uses: appleboy/ssh-action@v0.1.8
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
script: |
|
script: |
|
||||||
cd /${{ secrets.USERNAME }}
|
cd /${{ secrets.USERNAME }}
|
||||||
export REACT_APP_BUILD_SHA=${{ steps.short_sha.outputs.short_sha }}
|
export REACT_APP_BUILD_SHA=${{ steps.short_sha.outputs.short_sha }}
|
||||||
export REACT_APP_BUILD_ID=${{ github.run_id }}
|
export REACT_APP_BUILD_ID=${{ github.run_id }}
|
||||||
|
|
8
justfile
Normal file
8
justfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
run:
|
||||||
|
yarn start
|
||||||
|
|
||||||
|
build:
|
||||||
|
yarn build
|
||||||
|
|
||||||
|
install:
|
||||||
|
yarn install
|
|
@ -1,7 +1,25 @@
|
||||||
import { mdiBullet } from '@mdi/js'
|
import { mdiBullet } from '@mdi/js'
|
||||||
import Icon from '@mdi/react'
|
import Icon from '@mdi/react'
|
||||||
|
import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
export default function AboutPage () {
|
export default function AboutPage () {
|
||||||
|
const [currentGrade, setCurrentGrade] = useState<string>("0th")
|
||||||
|
useEffect(() => {
|
||||||
|
let year:number = new Date().getFullYear()
|
||||||
|
if (year > 2027) {
|
||||||
|
let result = year - 2027
|
||||||
|
switch(result) {
|
||||||
|
case 0:
|
||||||
|
setCurrentGrade(`12th`)
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
setCurrentGrade(`Collage Student`)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
setCurrentGrade(`${Math.abs((2027 - 2024) - 13)}th`)
|
||||||
|
}
|
||||||
|
})
|
||||||
return <div className={'hero min-h-screen md:ml-0 ml-2'}>
|
return <div className={'hero min-h-screen md:ml-0 ml-2'}>
|
||||||
<div className='container'>
|
<div className='container'>
|
||||||
<h1 className='text-3xl font-bold'>
|
<h1 className='text-3xl font-bold'>
|
||||||
|
@ -13,7 +31,7 @@ Some info about <span className='text-highlight'>me</span>
|
||||||
Hi Everyone, I am{' '}
|
Hi Everyone, I am{' '}
|
||||||
<span className='text-highlight '>Saahil dutta, </span>
|
<span className='text-highlight '>Saahil dutta, </span>
|
||||||
from <span className='text-highlight '> USA </span>
|
from <span className='text-highlight '> USA </span>
|
||||||
<br />I am a 9th grader in KCD.
|
<br />I am a {currentGrade} grader in KCD.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
Apart from coding, some other activities that I love to do!
|
Apart from coding, some other activities that I love to do!
|
||||||
|
|
Loading…
Reference in a new issue