Skip to content

Commit e336e53

Browse files
authored
Merge pull request #44 from rafiattrach/contact-cta
Contact Us Call to Action
2 parents 7c34fc7 + 54daee8 commit e336e53

File tree

3 files changed

+398
-0
lines changed

3 files changed

+398
-0
lines changed

.github/workflows/deploy-webapp.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,29 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
24+
2425
- uses: actions/setup-node@v4
2526
with:
2627
node-version: "18"
2728
cache: "npm"
2829
cache-dependency-path: webapp/package-lock.json
30+
2931
- uses: actions/configure-pages@v4
32+
33+
# 🔐 Inject secret into .env
34+
- name: Create .env file
35+
run: |
36+
cat <<EOF > webapp/.env
37+
REACT_APP_FORMSPREE_FORM_ID=${{ secrets.REACT_APP_FORMSPREE_FORM_ID }}
38+
REACT_APP_CONTACT_EMAIL=${{ secrets.REACT_APP_CONTACT_EMAIL }}
39+
EOF
40+
3041
- run: npm ci
3142
working-directory: ./webapp
43+
3244
- run: npm run build
3345
working-directory: ./webapp
46+
3447
- uses: actions/upload-pages-artifact@v3
3548
with:
3649
path: ./webapp/build

webapp/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useEffect } from 'react';
22
import './App.css';
33
import Header from './components/Header';
44
import Hero from './components/Hero';
5+
import Contact from './components/Contact';
56
import Paper from './components/Paper';
67
import Demos from './components/Demos';
78
import Explanation from './components/Explanation';
@@ -96,6 +97,7 @@ function App() {
9697
<div className="App">
9798
<Header />
9899
<Hero />
100+
<Contact />
99101
<Paper />
100102
<Demos />
101103
<Explanation />

0 commit comments

Comments
 (0)