Skip to content

Commit

Permalink
first version of project has been deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayyadd25794 committed Aug 11, 2024
1 parent 3f7aa59 commit fbe1ba9
Show file tree
Hide file tree
Showing 69 changed files with 27,049 additions and 1,552 deletions.
11 changes: 11 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
robots.txt,1720316070612,bfe106a3fb878dc83461c86818bf74fc1bdc7f28538ba613cd3e775516ce8b49
manifest.json,1722873973842,aff3449bdc238776f5d6d967f19ec491b36aed5fb7f23ccff6500736fd58494a
asset-manifest.json,1723386778432,a5bb9dcd8f3a9c68fbb3af0085ee4238200b1cd306e845490747ed8729f63ecb
static/js/main.0db7e3bb.js.LICENSE.txt,1723386778434,7845450e5511ea9a69120078ca00599b846cf5e0ead7cad96d3c23a2c44a9a66
static/css/main.d16f8633.css.map,1723386778435,a7795d2af2ffe3d20cbcedf02a0ab15a98fe6aa1c0a09fdcbe68562fcbdab0af
static/css/main.d16f8633.css,1723386778435,c27ab94a686123637e8756a946cd2551f9f99d7e835b443cf6c052710fba3432
static/media/logo.dc46dce79ffc0b376e05.png,1723386778435,6f4110889b7eced157c54d4b61ae9cb326fd1df4fb9ba5bf88e2cb29dd109641
index.html,1723386858077,b0b5bc488519185334a2196175c261978d8c2095ab9b6dbbb57debee8342c7f4
favicon.ico,1720316066988,eae62e993eb980ec8a25058c39d5a51feab118bd2100c4deebb2a9c158ec11f9
static/js/main.0db7e3bb.js,1723386778436,eca10e865d0e666101f006c77213d1f00731ad0025a1459c3cea63b5b447cd4b
static/js/main.0db7e3bb.js.map,1723386778439,30c864c61617d0725562284750a2b84fa8522f47a335237e4bde715ef0711cba
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "alchemist-2a102"
}
}
19 changes: 19 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ALCHEMIST_2A102 }}
channelId: live
projectId: alchemist-2a102
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ALCHEMIST_2A102 }}
projectId: alchemist-2a102
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"@mui/icons-material": "^5.16.0",
"@mui/material": "^5.16.0",
"firebase": "^10.12.3",
"framer-motion": "^11.3.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-lottie": "^1.2.4",
"react-redux": "^9.1.2",
"react-router-dom": "^6.24.1",
"react-scripts": "^5.0.1",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>AI Reactor</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
54 changes: 4 additions & 50 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ body {
margin-left: 0 !important;
}
}
body, html {
margin: 0;
padding: 20px;
/* body, html { */
/* margin: 0; */
/* padding: 20px; */
/* width: 100vw;
height: 100vh; */
/* overflow: hidden */
}
/* } */
/*
.container {
width: 90vw;
Expand Down Expand Up @@ -46,49 +46,3 @@ body, html {
}
} */


@keyframes fillLiquid {
0% {
height: 0;
}
100% {
height: 100%;
}
}

@keyframes fillGas {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes fillSolid {
0% {
height: 0;
}
100% {
height: 100%;
}
}

.flask {
width: 100px;
height: 200px;
position: relative;
}

.reactant.liquid {
animation: fillLiquid 2s forwards;
}

.reactant.gas {
animation: fillGas 2s forwards;
}

.reactant.solid {
animation: fillSolid 2s forwards;
}

23 changes: 17 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@ import Main from './components/Main';
import PeriodicTable from './components/PeriodicTable';
import './App.css'
import { Routes, Route } from 'react-router-dom';
import { useSelector } from 'react-redux';
import LoadingModal from './components/LoadingModal';
import ErrorSnackBar from './components/ErrorSnackBar';
import SuccessSnackBar from './components/SuccessSnackBar';

function App() {
const loadingStore = useSelector((state) => state.loading);
const reactants = useSelector(state=> state.reactions.reactants);
const { loading, error, errorMessage, success, successMessage } = loadingStore;
return (
<Routes>
<Route path='/' element={<Main />} />
<Route path='/periodic-table' element={<PeriodicTable />} />
</Routes>
// <div className='container'>
// </div>
<>
{error && <ErrorSnackBar message={errorMessage} open={error} />}
{success && <SuccessSnackBar message={successMessage} open={success} />}
<LoadingModal loading={reactants.length ? false : loading} />
<Routes>
<Route path='/' element={<Main />} />
<Route path='/periodic-table' element={<PeriodicTable />} />
</Routes>

</>
);
}

Expand Down
Binary file added src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/lotties/arrow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"nm":"Main Scene","ddd":0,"h":500,"w":759,"meta":{"g":"@lottiefiles/creator 1.22.0"},"layers":[{"ty":0,"nm":" arrow-right","sr":1,"st":0,"op":30,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[644,536]},"s":{"a":0,"k":[50,50]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[355.513,268]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"w":1400,"h":1000,"refId":"precomp_arrow-right_da01197c-164e-40b2-bcfc-3faad90ee7ef","ind":1}],"v":"5.7.0","fr":30,"op":30,"ip":0,"assets":[{"nm":"arrow-right","id":"precomp_arrow-right_da01197c-164e-40b2-bcfc-3faad90ee7ef","layers":[{"ty":4,"nm":"pointer","sr":1,"st":30,"op":30,"ip":5,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0.37599999999997635,0.40599999999994907],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[1163.875,527.6298],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[-143.187,-286.406],[143.2,0.005],[-143.2,286.406]],"o":[[-143.187,-286.406],[143.2,0.005],[-143.2,286.406]],"v":[[-143.187,-286.406],[143.2,0.005],[-143.2,286.406]]},"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":65,"ix":5},"c":{"a":0,"k":[1,0.5569,0.2275],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[49],"t":7},{"s":[100],"t":18}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[49],"t":7},{"s":[0],"t":18}],"ix":1},"m":1}],"ind":1},{"ty":4,"nm":"line","sr":1,"st":0,"op":30,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-0.3489999999999327,0.4070000000000391],"ix":1},"s":{"a":0,"k":[119.765,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[666.7502,532.907],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[-436.493,0],[436.493,0]],"o":[[-436.493,0],[436.493,0]],"v":[[-436.493,0],[436.493,0]]},"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":65,"ix":5},"c":{"a":0,"k":[1,0.5569,0.2275],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":0},{"s":[100],"t":7}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":0,"k":0,"ix":1},"m":1}],"ind":2}]}]}
Loading

0 comments on commit fbe1ba9

Please sign in to comment.