-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'moh-kenya:dev' into dev
- Loading branch information
Showing
98 changed files
with
7,263 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NEXT_PUBLIC_API_URL=http://41.89.92.186:8000 | ||
APP_DEBUG=true | ||
USE_MOCK_API=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
branches: [ "dev" ] | ||
|
||
jobs: | ||
build_and_deploy: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
@@ -19,21 +19,27 @@ jobs: | |
- name: Use Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
node-version: '18.17.0' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: copy file via ssh password | ||
uses: appleboy/[email protected] | ||
|
||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
needs: build | ||
|
||
steps: | ||
- name: executing remote ssh commands using password | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
port: ${{ secrets.PORT }} | ||
source: .next/* | ||
target: /usr/knhts/moh-knhts-web | ||
script: cd /usr/knhts/moh-knhts-web && sh deploy.sh &>/dev/null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ yarn-error.log* | |
|
||
# local env files | ||
.env*.local | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Typography, Link } from "@mui/material" | ||
function Copyright(props) { | ||
return( | ||
<Typography variant='body2' color="text.secondary" align='center' {...props}> | ||
{'Copyright © '}{' '}{new Date().getFullYear()}{'. '} | ||
<Link color="inherit" href="https://www.health.go.ke/"> | ||
Ministry of Health | ||
</Link> | ||
</Typography> | ||
) | ||
} | ||
export default Copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
function Title(props) { | ||
return ( | ||
<Typography component="h2" variant="h6" color="primary" gutterBottom> | ||
{props.children} | ||
</Typography> | ||
); | ||
} | ||
|
||
Title.propTypes = { | ||
children: PropTypes.node, | ||
}; | ||
|
||
export default Title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import Link from 'next/link'; | ||
|
||
export default function Footer() { | ||
return ( | ||
<Box | ||
component="footer" | ||
sx={{ | ||
backgroundColor: "#fcfcfc", | ||
width: "100%", | ||
height: "80px", | ||
position: "absolute", | ||
display: "flex", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
zIndex: 1000, | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
gap: 2, | ||
}} | ||
> | ||
<Link | ||
style={{ | ||
fontWeight: "500", | ||
textDecoration: "none", | ||
color: "#334", | ||
fontSize: "1.1em", | ||
}} | ||
href={"/about"} | ||
> | ||
About | ||
</Link> | ||
<Link | ||
style={{ | ||
fontWeight: "500", | ||
textDecoration: "none", | ||
color: "#334", | ||
fontSize: "1.1em", | ||
}} | ||
href={"/resources"} | ||
> | ||
Resources | ||
</Link> | ||
<Link | ||
style={{ | ||
fontWeight: "500", | ||
textDecoration: "none", | ||
color: "#334", | ||
fontSize: "1.1em", | ||
}} | ||
href={"/knowledgebase"} | ||
> | ||
Knowledge base | ||
</Link> | ||
<Link | ||
style={{ | ||
fontWeight: "500", | ||
textDecoration: "none", | ||
color: "#334", | ||
fontSize: "1.1em", | ||
}} | ||
href={"/help"} | ||
> | ||
Help & guides | ||
</Link> | ||
</Box> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.