Skip to content

Commit 533b1a0

Browse files
authored
Merge pull request #65 from NeuroJSON/dev-fan
Bug fixes for reset previous rendering and show spinner before loading new preview
2 parents f24e270 + faec447 commit 533b1a0

File tree

15 files changed

+2037
-1188
lines changed

15 files changed

+2037
-1188
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# name: Deploy to Production
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - staging
7+
8+
# jobs:
9+
# deploy:
10+
# runs-on: ubuntu-22.04
11+
# env:
12+
# CI: false
13+
14+
# steps:
15+
# - name: Check out the repository
16+
# uses: actions/checkout@v3
17+
18+
# - name: Install dependencies
19+
# run: yarn install --frozen-lockfile
20+
21+
# - name: Build React App for production
22+
# run: |
23+
# echo "Building for production at root /"
24+
# PUBLIC_URL="/" yarn build
25+
26+
# - name: Copy JS libraries
27+
# run: |
28+
# mkdir -p build/js
29+
# cp -r public/js/* build/js/
30+
31+
# - name: Deploy to neurojson.io
32+
# uses: NeuroJSON/[email protected]
33+
# with:
34+
# server: ${{ secrets.NEUROJ_IO_SERVER }}
35+
# username: ${{ secrets.NEUROJ_SERVER_USER }}
36+
# ssh_private_key: ${{ secrets.NEUROJ_SERVER_SSH_KEY }}
37+
# local_path: "./build/*"
38+
# remote_path: "${{ secrets.NEUROJ_CI_PATH }}"

.github/workflows/build-deploy-zodiac.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ jobs:
2626
id: get_branch
2727
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2828

29+
- name: Print GitHub Runner Public IP
30+
run: |
31+
echo "GitHub runner public IP:"
32+
curl https://api.ipify.org
33+
2934
- name: Build React App with Dynamic PUBLIC_URL
3035
run: |
3136
echo "Building for /dev/${{ env.BRANCH_NAME }}/"
3237
PUBLIC_URL="/dev/${{ env.BRANCH_NAME }}/" yarn build
33-
38+
3439
- name: Copy JS libraries (jdata, bjdata etc.)
3540
run: |
3641
mkdir -p build/js
Loading

src/components/HomePageComponents/Section1.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ArrowCircleDownIcon from "@mui/icons-material/ArrowCircleDown";
2-
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
2+
// import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
33
import SearchIcon from "@mui/icons-material/Search";
44
import {
55
Typography,
@@ -94,8 +94,7 @@ const Section1: React.FC<Section1Props> = ({ scrollToNext }) => {
9494
},
9595
}}
9696
>
97-
Efficiently manage and explore your databases and datasets with
98-
ease.
97+
Search Findable, Accessible, Interoperable, and Reusable datasets
9998
</Typography>
10099
</Box>
101100
</Grid>
@@ -128,6 +127,7 @@ const Section1: React.FC<Section1Props> = ({ scrollToNext }) => {
128127
"& label.Mui-focused": {
129128
color: Colors.darkGreen, // label color when focused
130129
fontWeight: "bold",
130+
transform: "translate(12px, -22px) scale(0.75)", // translate(x, y) move label further up
131131
padding: "5px",
132132
borderRadius: "5px",
133133
},

src/components/HomePageComponents/Section3.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ const Section3: React.FC<Section3Props> = ({ scrollToNext }) => {
8989
onClick={handleOpen}
9090
>
9191
<img
92-
src={`${process.env.PUBLIC_URL}/img/3cards_vertical.png`}
92+
src={`${process.env.PUBLIC_URL}/img/section3_cards.png`}
9393
alt="rendering feature info cards"
9494
style={{
95-
width: "100%",
95+
width: "70%",
9696
height: "auto",
9797
}}
9898
></img>
@@ -115,10 +115,11 @@ const Section3: React.FC<Section3Props> = ({ scrollToNext }) => {
115115
</IconButton>
116116

117117
<video controls style={{ width: "100%", borderRadius: "4px" }}>
118-
<source
118+
{/* <source
119119
src="https://neurojson.org/tutorials/overview/neurojsonio_volume_render_short.mp4"
120120
type="video/mp4"
121-
/>
121+
/> */}
122+
<source src="/video/preview_video.mp4" type="video/mp4" />
122123
Your browser does not support the video tag.
123124
</video>
124125
</Box>

src/components/NavBar/NavItems.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ const NavItems: React.FC = () => {
8787
sx={{ mb: { xs: 1 } }}
8888
>
8989
{[
90-
{ text: "ABOUT", url: "https://neurojson.org/Doc/Start" },
90+
// { text: "ABOUT", url: "https://neurojson.org/Doc/Start" },
91+
{ text: "ABOUT", url: RoutesEnum.ABOUT },
9192
{ text: "WIKI", url: "https://neurojson.org/Wiki" },
9293
{ text: "SEARCH", url: RoutesEnum.SEARCH },
9394
{ text: "DATABASES", url: RoutesEnum.DATABASES },

0 commit comments

Comments
 (0)