diff --git a/.idea/modules.xml b/.idea/modules.xml index e490129..1f24386 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 701b0f4..9e1f194 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ script: deploy: provider: pages local-dir: docs - repo: TWstartups/twstartups.github.io + repo: TWstartups/twstartup.github.io skip-cleanup: true github-token: $GITHUB_TOKEN keep-history: true diff --git a/README.md b/README.md index 7f04a48..a1a8820 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@
-

TWstartups

+

TWstartup

a platform for US VCs to receive more information and reach out to asian startups like Taiwan. In the other hand, we also provide taiwanese start ups resources to expand overseas.

-[![Build Status](https://travis-ci.com/TWstartups/twstartups.svg?branch=master)](https://travis-ci.com/TWstartups/twstartups) +[![Build Status](https://travis-ci.com/TWstartups/twstartup.svg?branch=master)](https://travis-ci.com/TWstartups/twstartup) ## Initial Setup ``` -$ git clone git@github.com:TWstartups/twstartups.github.io.git -$ cd twstartups +$ git clone git@github.com:TWstartups/twstartup.github.io.git +$ cd twstartup $ ./scripts/setup.sh ``` diff --git a/client/.env.production b/client/.env.production index 5b48122..7cf96bd 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1,3 +1,3 @@ -REACT_APP_URL=https://twstartups.herokuapp.com -REACT_APP_API_URL=https://twstartups.herokuapp.com +REACT_APP_URL=https://twstartup.herokuapp.com +REACT_APP_API_URL=https://twstartup.herokuapp.com NODE_ENV=production \ No newline at end of file diff --git a/client/public/index.html b/client/public/index.html index ec78557..c1b5d1e 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -27,6 +27,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> + React App diff --git a/client/src/assets/scss/styles.scss b/client/src/assets/scss/styles.scss index 03e658e..dbd8028 100644 --- a/client/src/assets/scss/styles.scss +++ b/client/src/assets/scss/styles.scss @@ -2,7 +2,7 @@ $main-color: #54d1db; $red-color: #de624f; @import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap'); @import './form.scss'; -@import './companyDetail.scss'; + body { background-color: #FAFAFA; } diff --git a/client/src/components/company/companyDetail/CompanyIntro.js b/client/src/components/company/companyDetail/CompanyIntro.js index 02552c4..1818f5e 100644 --- a/client/src/components/company/companyDetail/CompanyIntro.js +++ b/client/src/components/company/companyDetail/CompanyIntro.js @@ -12,7 +12,7 @@ class CompanyIntro extends React.Component { return ( @@ -26,21 +26,23 @@ class CompanyIntro extends React.Component { }) } - renderList = (keyPoints) => { - return keyPoints.map(key => { - return - }) + renderList = (keyPoints = []) => { + if (keyPoints.length > 0) { + return (
+
Key points
+ {this.renderEditbtn()} + {keyPoints.map((k, i) =>
{k}
)} +
) + } else { + return
+ } } render () { return (
-
-
{this.props.company.introduction}
- {this.renderEditbtn()} -
{this.state.showIntroModal && }
diff --git a/client/src/components/company/companyDetail/Team.js b/client/src/components/company/companyDetail/Team.js index 33b1b36..b93b159 100644 --- a/client/src/components/company/companyDetail/Team.js +++ b/client/src/components/company/companyDetail/Team.js @@ -20,7 +20,7 @@ class Team extends React.Component { return ( @@ -32,26 +32,22 @@ class Team extends React.Component { if (exes && exes.length > 0) { return exes.map((exe, id) => { return ( -
+
{exe.title}
{exe.firstName}{' '} {exe.lastName}
- - executive + + {this.state.showTeamModal && }
@@ -64,8 +60,9 @@ class Team extends React.Component { const { _id, executives } = this.props.company return (
-

Executive Team{this.renderEditbtn()}

-
+

Executive Team

+ {this.renderEditbtn()} +
{this.renderExecutive(executives, _id)}
diff --git a/client/src/components/company/companyDetail/TopProfile.js b/client/src/components/company/companyDetail/TopProfile.js index f55e5d3..9454614 100644 --- a/client/src/components/company/companyDetail/TopProfile.js +++ b/client/src/components/company/companyDetail/TopProfile.js @@ -4,6 +4,14 @@ import ImageZone from '../imageZone' import ProfileModal from '../modals/ProfileModal' import { fetchComp } from '../../../actions' +// const socialLinkIcons = { +// facebook: 'facebook', +// instagram: 'instagram', +// linkedIn: 'linkedin', +// twitter: 'twitter', +// angelList: 'angellist' +// } + class TopProfile extends React.Component { state = { showProfileModal: false @@ -14,7 +22,7 @@ class TopProfile extends React.Component { return ( @@ -30,47 +38,43 @@ class TopProfile extends React.Component { render () { const { - companyEmail, companyNameEn, + introduction, + companyEmail, website, + socialLinks, logo, _id } = this.props.company + const socialLinksArr = Object.keys(socialLinks || {}) + console.log(socialLinksArr) return (
-
-
- +
+
+
-
+
+
{companyNameEn}{this.props.company && this.renderEditbtn()}
+ +
{introduction}
- {/* eslint-disable-next-line camelcase */} -
-
{companyNameEn}
-
{this.props.company && this.renderEditbtn()}
-
-
-
Happy
-
Smart
-
Insane
-
Exciting
-
-
-
-
window.open(`${website}`)} - > +
window.open(website)}> +