Skip to content

Commit

Permalink
switch deploy platform to firebase due to github cannot use browserRo…
Browse files Browse the repository at this point in the history
…uter
  • Loading branch information
vaclisinc committed Sep 3, 2024
1 parent c5f31cb commit 580e3df
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 119 deletions.
1 change: 1 addition & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.html,1725354063959,96d363a61670611db7a98e007334142caa62b3d0cbc059dbc729c42741bbb120
40 changes: 40 additions & 0 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
vite.svg,1725355447062,d3bbbc44b3ea71906a72bf2ec1a4716903e2e3d9f85a5007205a65d1f12e2923
locales/zh-TW/translation.json,1725355447062,5ee30f80971e9793a99772845af2cc5a6563607117bddb45c91f8b91688524d7
index.html,1725355447149,8693561aaf35e3f0cb95248220f6388d15486d0597cb431979f2f5a218e6173f
locales/zh-CN/translation.json,1725355447062,34bcad8909c70e7b1076cef3419c2bf40d55bdb242185bb2ad888f48aa059d8e
locales/en/translation.json,1725355447061,411072e565628bad9bb612ecbe4867009167db4ff38825c0cb72a09bae523bac
assets/yourlogo-C6EMCCmQ.svg,1725355447146,d8b6a104fe9941aa9f967a0a743aced3d75fbcd2aef851f69c65204ad561152a
assets/protopie-R4iJxyNF.png,1725355447144,12b1b26f50322bae61b9a6133456c1077d68aef6d2dc846487b549829b3d07e7
assets/loading-CllQEGx_.png,1725355447144,9f6e0514ceea71034b7a6c60d74383bfc8185974cf76822926637a5280e3f248
assets/index-lFKLuJSo.css,1725355447149,e7d63a93e7cd4319e9a138f709dd7e5f8925cb398f9b35a8e8deef5e42b79469
assets/image-1-CTP7EhT0.png,1725355447145,fbe5b8c137637c5221ba53edc9c8149d5b73115aa0c4b3a1a5c3b1dd0f6341d9
assets/framer-DIttm_fk.png,1725355447144,2f320259b2713c98b927db76a76a57bd3654cdc6204c4bf5428c961a853181b7
assets/brainwave-DM3_Zh2I.svg,1725355447146,2427e58c51fa60b683a484602a6a28957f284713b2d1a618bbbf865e49f4c480
assets/image-3-DdFPxP8s.png,1725355447144,439cde9bbe7b598c40283745524776ca0b3f3984594f6f37c6c0bf8615481b96
assets/curve-DplsLMf8.png,1725355447144,19e2baec62086f55e5b2a465be6f9be82bdea8da41235d4ade37e4d254112cd4
assets/image-5-Bs72qwTf.png,1725355447146,bb15638e0cecb6369b1746c03aa4fa2c44b8bcafeda5d0f06686bff6cc848ffc
assets/coins-BpMsvKTd.png,1725355447144,d64a522f57174d52ea7df6a045dba85766188a91c27b4bf6426e05fb24605211
assets/grid-coKqRXJ5.png,1725355447143,3e0f1a04e29cafddac382ad101ddab4ec9e58711691404c5b1673ba7ddc3d810
assets/inningiq-D5lTWWsp.png,1725355447143,d8008a55e49b3735bb6b9f363315f0f08393ffeca84bf08d174004bb4a17b4ae
assets/image-1-BL_C2sN6.png,1725355447144,c6ebbed7df81ce5a56a0ad37e24332ec6b3f752e9962d66d7b12486da943d2f8
assets/4-small-Dl1zRJyK.png,1725355447143,cfc3fa7f98cc463efb9bc3b85e07b0f0bd6adaf5d8b83372fa8b6e83d695d5c4
assets/image-2-DcEz8rfp.png,1725355447144,26f73204c88eeae3fe104d6381c514cd9595d699f5343698ba9d665dcdc2db57
assets/image-4-COTy8NO4.png,1725355447145,ec597c1fa32467e4164eb06db8d006955b2a5aa14fe75374e8efb4977859fef9
assets/image-4-Cbi5cq1J.png,1725355447148,0f93d0c0913d810acfd89e557c74a8fff04f9defff8adc31fb38cce9d3e4ef08
assets/index-7ncE8eth.js,1725355447149,391b69c9c5dbdd081b827b692bb314d8f21b669653074a5c1034dc940aef7cc2
assets/image-3-DL8wGSR2.png,1725355447146,06c35a07a8e977241a51d31709868beb61c307872eb468b4cbc2cd921b02cca0
assets/image-2-C8poHMFX.png,1725355447146,cc6f95fe772c044212a895013727ec5d62696d1df735c5080adadd9ae257b676
assets/jyBaseball-preview-P3dsyMAC.png,1725355447144,cc9c5e5620bd0c45101128031028580e0e93e327718cc2b348188567fd999ccf
assets/image-2-DhSZK1Xt.png,1725355447146,4a4629aaea0962ab8a75d4af828dde4c838c4a8e21d7b56eb08d782941be9458
assets/hero-CRNpLEAx.png,1725355447144,906d1f56c4aede79f2766e0b843f6ea560b6bc84b5fcea9b3067650780020305
assets/robot-idimR07Z.jpg,1725355447147,74c2e07c47210c04950fb139a4079f764077370ce71266db5960c2b7a3ff51f8
assets/service-3-CruucQ7U.png,1725355447144,72c1b087355aa42420e5999cd315a64c2f9c5d8cacf002e39e69cc262807a177
assets/logo_background-DW_OuETr.png,1725355447144,480945e52f473877fd2d8838e818b4422254e436934b6bc39e7690cc76adb447
assets/background-BF0zYYBx.jpg,1725355447145,44cee66b10e520d9148005f6fcc0db955c6c134ef07c82beb116ccce99cd595a
assets/hero-background-DUbyVUlq.jpg,1725355447144,ef988295ef77ecdee74fc089364ec092f2c88621b6d3354bc4d7376453bdda73
assets/logo_small-BTX8LFUh.png,1725355447145,34a1a8d0af83e0032f99a737e50b33071b3600b37db2106429f666b9d781fa94
assets/service-2-C-pPDQl7.png,1725355447149,8f0386032498ea49a057273abdab9a1e86b8cb36947f77286951613f0c4e66b7
assets/service-1-bvSONSha.png,1725355447149,3ef725423472b70f55f013c4e3221c9284ecd46de9d0f25b7f0282811755f56d
assets/home-background-DkQfXWEG.png,1725355447145,03a09a2d1e3f5e7d8b4500c7c67709d3cf3b5d9a4ceb2f13e353efe3816b65b7
assets/gradient-BMjsV91j.png,1725355447145,5506f8e2d6949b59eaef766c1ea2218c3909e19c309b14e0fc5dd1008d5618cc
assets/home_bg-B401Pr-m.png,1725355447172,ffeedc29020db6c54187d30076236fff8d999d7138b48013882ac94bd590eded
6 changes: 6 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
vite.svg,1725089239061,d3bbbc44b3ea71906a72bf2ec1a4716903e2e3d9f85a5007205a65d1f12e2923
index.html,1725353575896,96d363a61670611db7a98e007334142caa62b3d0cbc059dbc729c42741bbb120
404.html,1725353575855,05cbc6f94d7a69ce2e29646eab13be2c884e61ba93e3094df5028866876d18b3
locales/zh-CN/translation.json,1725343689897,34bcad8909c70e7b1076cef3419c2bf40d55bdb242185bb2ad888f48aa059d8e
locales/zh-TW/translation.json,1725343682690,5ee30f80971e9793a99772845af2cc5a6563607117bddb45c91f8b91688524d7
locales/en/translation.json,1725343694636,411072e565628bad9bb612ecbe4867009167db4ff38825c0cb72a09bae523bac
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "inningiq"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.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 merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: "\t"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_INNINGIQ }}
channelId: live
projectId: inningiq
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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
- run: "\t"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_INNINGIQ }}
projectId: inningiq
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# InningIQ - AI-Powered Baseball Analysis Assistant
# [InningIQ](https://inningiq.web.app) - AI-Powered Baseball Analysis Assistant

InningIQ [(old jyBaseball plan)](https://github.com/vaclisinc/jyBaseball) is an AI-driven platform designed to lower the barriers to baseball data analysis. By integrating powerful language models, InningIQ provides a conversational interface that allows users to effortlessly interact with data, visualize insights, and generate custom web scraping code. Whether you're a baseball YouTuber, analyst, or amateur team coach, InningIQ simplifies the entire process, saving you time and effort.
[InningIQ](https://inningiq.web.app) [(old jyBaseball plan)](https://github.com/vaclisinc/jyBaseball) is an AI-driven platform designed to lower the barriers to baseball data analysis. By integrating powerful language models, InningIQ provides a conversational interface that allows users to effortlessly interact with data, visualize insights, and generate custom web scraping code. Whether you're a baseball YouTuber, analyst, or amateur team coach, InningIQ simplifies the entire process, saving you time and effort.

## Features

Expand Down
12 changes: 12 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"hosting": {
"public": "dist",
"ignore": [],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const App = () => {
}, [i18n]);

return (
<Router basename="/InningIQ">
<Router>
<div className="pt-[4.75rem] lg:pt-[5.25rem] overflow-hidden">
<Header />
<Routes>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Services.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useTranslation } from "react-i18next";

import { features } from "../constants/index.jsx";
const ServicesDropdown = () => {
const { t } = useTranslation();

Expand All @@ -10,13 +10,13 @@ const ServicesDropdown = () => {

return (
<div className="flex flex-col flex-wrap justify-center lg:justify-start gap-2 mt-6 bg-n-8 rounded-lg p-4">
{services.map((service, index) => (
{features.map((service, index) => (
<a
key={index}
href={service.url}
className="justify-center px-4 py-2 text-sm lg:text-base transition-colors whitespace-nowrap text-n-1 hover:text-color-1"
>
{t(service.name)}
{t(service.title)}
</a>
))}
</div>
Expand Down
200 changes: 88 additions & 112 deletions src/constants/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ export const navigation = [
{
id: "0",
title: "features",
url: "/InningIQ/#features",
url: "#features",
},
{
id: "1",
title: "howToUse",
url: "/InningIQ/#features",
url: "#features",
},
{
id: "2",
title: "roadmap",
url: "/InningIQ/#roadmap",
url: "#roadmap",
},
{
id: "3",
Expand All @@ -78,37 +78,17 @@ export const navigation = [
{
id: "5",
title: "signUp",
url: "/InningIQ/#signup",
url: "#signup",
onlyMobile: true,
},
{
id: "6",
title: "signIn",
url: "/InningIQ/#signin",
url: "#signin",
onlyMobile: true,
},
];

export const heroIcons = [homeSmile, file02, searchMd, plusSquare];

export const notificationImages = [notification4, notification3, notification2];

export const companyLogos = [logo, logo_bg, inningiq];

export const brainwaveServices = [
"Photo generating",
"Photo enhance",
"Seamless Integration",
];

export const brainwaveServicesIcons = [
recording03,
recording01,
disc02,
chromecast,
sliders04,
];

export const roadmap = [
{
id: "0",
Expand Down Expand Up @@ -154,6 +134,89 @@ export const roadmap = [
},
];

export const features = [
{
id: "0",
title: "features1_title",
text: "features1_description",
backgroundUrl: "./assets/benefits/card-1.svg",
iconUrl: benefitIcon1,
imageUrl: benefitImage2,
available: true,
url: "/InningIQAssistant"
},
{
id: "1",
title: "features2_title",
text: "features2_description",
backgroundUrl: "./assets/benefits/card-2.svg",
iconUrl: benefitIcon2,
imageUrl: benefitImage2,
light: true,
available: false,
url: "/"
},
{
id: "2",
title: "features3_title",
text: "features3_description",
backgroundUrl: "./assets/benefits/card-3.svg",
iconUrl: benefitIcon3,
imageUrl: benefitImage2,
available: true,
url:"https://vaclisinc.github.io/jyBaseball"
}
];

export const socials = [
{
id: "0",
title: "Mail",
iconUrl: mail,
url: "mailto:[email protected]",
},
{
id: "1",
title: "Youtube",
iconUrl: youtube,
url: "https://www.youtube.com/@vaclis_daily",
},
{
id: "2",
title: "Github",
iconUrl: github,
url: "https://github.com/vaclisinc",
},
{
id: "3",
title: "Linkedin",
iconUrl: linkedin,
url: "https://www.linkedin.com/in/vaclis/",
},
];


export const heroIcons = [homeSmile, file02, searchMd, plusSquare];

export const notificationImages = [notification4, notification3, notification2];

export const companyLogos = [logo, logo_bg, inningiq];

export const brainwaveServices = [
"Photo generating",
"Photo enhance",
"Seamless Integration",
];

export const brainwaveServicesIcons = [
recording03,
recording01,
disc02,
chromecast,
sliders04,
];


export const collabText =
"With smart automation and top-notch security, it's the perfect solution for teams looking to work smarter.";

Expand Down Expand Up @@ -267,90 +330,3 @@ export const pricing = [
],
},
];

export const features = [
{
id: "0",
title: "features1_title",
text: "features1_description",
backgroundUrl: "./assets/benefits/card-1.svg",
iconUrl: benefitIcon1,
imageUrl: benefitImage2,
available: true,
url: "/InningIQ/InningIQAssistant"
},
{
id: "1",
title: "features2_title",
text: "features2_description",
backgroundUrl: "./assets/benefits/card-2.svg",
iconUrl: benefitIcon2,
imageUrl: benefitImage2,
light: true,
available: false,
url: "/"
},
{
id: "2",
title: "features3_title",
text: "features3_description",
backgroundUrl: "./assets/benefits/card-3.svg",
iconUrl: benefitIcon3,
imageUrl: benefitImage2,
available: true,
url:"https://vaclisinc.github.io/jyBaseball"
}
// ,
// {
// id: "3",
// title: "Fast responding",
// text: "Lets users quickly find answers to their questions without having to search through multiple sources.",
// backgroundUrl: "assets/benefits/card-4.svg",
// iconUrl: benefitIcon4,
// imageUrl: benefitImage2,
// light: true,
// },
// {
// id: "4",
// title: "Ask anything",
// text: "Lets users quickly find answers to their questions without having to search through multiple sources.",
// backgroundUrl: "assets/benefits/card-5.svg",
// iconUrl: benefitIcon1,
// imageUrl: benefitImage2,
// },
// {
// id: "5",
// title: "Improve everyday",
// text: "The app uses natural language processing to understand user queries and provide accurate and relevant responses.",
// backgroundUrl: "assets/benefits/card-6.svg",
// iconUrl: benefitIcon2,
// imageUrl: benefitImage2,
// },
];

export const socials = [
{
id: "0",
title: "Mail",
iconUrl: mail,
url: "mailto:[email protected]",
},
{
id: "1",
title: "Youtube",
iconUrl: youtube,
url: "https://www.youtube.com/@vaclis_daily",
},
{
id: "2",
title: "Github",
iconUrl: github,
url: "https://github.com/vaclisinc",
},
{
id: "3",
title: "Linkedin",
iconUrl: linkedin,
url: "https://www.linkedin.com/in/vaclis/",
},
];
Loading

0 comments on commit 580e3df

Please sign in to comment.