Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 28ae59b7e4 | |||
| 65b6a9b9dc | |||
| d0ce6516dc | |||
| 12c3b2e1cd | |||
| 3fc5bc6424 | |||
| f0fe21a14e | |||
| 9c19993bcc | |||
| 00fdb164af | |||
| 6e6ac8e440 | |||
| 8259112aac | |||
| b0f66eb9fd | |||
| c08f3db680 | |||
| de1a56285d | |||
| 1e78256886 | |||
| 37c54c4dd0 | |||
| 21c61e6128 | |||
| 32e3826c27 | |||
| 9d647525b3 | |||
| ed19b99bba | |||
| 9c38c8c03d | |||
| f200235ced | |||
| 92a93452bb | |||
| 5626e2d592 | |||
| a52c855ec2 | |||
| 16e5218f16 | |||
| 68e5abb088 | |||
| b52f05002b | |||
| e1bb5de959 | |||
| aaf1226ea0 | |||
| e06cb60bfb | |||
| 11eedf3a8b | |||
| f9a8b598da | |||
| b488e3399c | |||
| c82cd3be1e | |||
| fed0d99e64 | |||
| 24e05ff7fc | |||
| 9af90d3fd0 | |||
| 0b3d5c9ebb | |||
| c3f4832b30 | |||
| 4bd6e8c580 | |||
| 8e896114bf | |||
| f757997392 |
@@ -5,9 +5,6 @@ import {
|
||||
UPLOAD_MEDIA_PRES_REQUEST,
|
||||
UPLOAD_MEDIA_PRES_FAILURE,
|
||||
UPLOAD_MEDIA_PRES_SUCCESS,
|
||||
UPLOAD_MEDIA_CV_REQUEST,
|
||||
UPLOAD_MEDIA_CV_FAILURE,
|
||||
UPLOAD_MEDIA_CV_SUCCESS,
|
||||
|
||||
} from "../types";
|
||||
|
||||
@@ -41,19 +38,6 @@ import {
|
||||
res
|
||||
});
|
||||
|
||||
export const uploadMediaCv = payload => ({
|
||||
type: UPLOAD_MEDIA_CV_REQUEST,
|
||||
payload
|
||||
});
|
||||
|
||||
export const uploadMediaCvFailure = errors => ({
|
||||
type: UPLOAD_MEDIA_CV_FAILURE,
|
||||
errors
|
||||
});
|
||||
|
||||
export const uploadMediaCvSuccess = res => ({
|
||||
type: UPLOAD_MEDIA_CV_SUCCESS,
|
||||
res
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import {
|
||||
UPLOAD_MEDIA_CV_REQUEST,
|
||||
UPLOAD_MEDIA_CV_FAILURE,
|
||||
UPLOAD_MEDIA_CV_SUCCESS,
|
||||
|
||||
} from "../types";
|
||||
|
||||
|
||||
|
||||
export const uploadMediaCv = payload => ({
|
||||
type: UPLOAD_MEDIA_CV_REQUEST,
|
||||
payload
|
||||
});
|
||||
|
||||
export const uploadMediaCvFailure = errors => ({
|
||||
type: UPLOAD_MEDIA_CV_FAILURE,
|
||||
errors
|
||||
});
|
||||
|
||||
export const uploadMediaCvSuccess = res => ({
|
||||
type: UPLOAD_MEDIA_CV_SUCCESS,
|
||||
res
|
||||
});
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ import Business from '@material-ui/icons/Business';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import WatchLater from '@material-ui/icons/WatchLater';
|
||||
import Home from '@material-ui/icons/Home';
|
||||
import People from '@material-ui/icons/People';
|
||||
|
||||
const variantIcon = {
|
||||
assignment: AssignmentIcon,
|
||||
@@ -19,6 +20,7 @@ const variantIcon = {
|
||||
business: Business,
|
||||
watch_later: WatchLater,
|
||||
home: Home,
|
||||
people: People,
|
||||
};
|
||||
|
||||
const styles = theme => ({
|
||||
|
||||
@@ -7,6 +7,7 @@ import LocationOnIcon from '@material-ui/icons/LocationOn';
|
||||
import HomeOnIcon from '@material-ui/icons/Home';
|
||||
import WatchLater from '@material-ui/icons/WatchLater';
|
||||
import BusinessCenterIcon from '@material-ui/icons/BusinessCenter';
|
||||
import People from '@material-ui/icons/People';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import Business from '@material-ui/icons/Business';
|
||||
|
||||
@@ -18,6 +19,7 @@ const variantIcon = {
|
||||
watch_later: WatchLater,
|
||||
business_center: BusinessCenterIcon,
|
||||
business: Business,
|
||||
people: People,
|
||||
};
|
||||
|
||||
const styles = theme => ({
|
||||
|
||||
@@ -6,12 +6,13 @@ const OgHead = props => {
|
||||
return (
|
||||
<Head>
|
||||
<title key="title">{props.seo_title}</title>
|
||||
<meta name="robots" content="noindex, nofollow"></meta>
|
||||
|
||||
<meta name="description" kenoindexy="description" content={props.seo_description} />
|
||||
<meta name="keywords" content={props.seo_key}/>
|
||||
<meta key="og:url" property="og:url" content={props.seo_url} />
|
||||
<meta key="og:type" property="og:type" content="article" />
|
||||
<meta key="og:title" property="og:title" content={props.seo_title} />
|
||||
<meta property="fb:app_id" content="1800752833559014" data-react-helmet="true"></meta>
|
||||
<meta
|
||||
key="og:description"
|
||||
property="og:description"
|
||||
@@ -19,11 +20,14 @@ const OgHead = props => {
|
||||
/>
|
||||
<meta name="keywords" content={props.seo_key}/>
|
||||
<meta key="og:image" property="og:image" content={props.image} />
|
||||
<meta key="og:image:width" property="og:image:width" content="355" />
|
||||
<meta key="og:image:height" property="og:image:height" content="200" />
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:site" content="@TalentsTube"/>
|
||||
<meta name="twitter:title" content={props.seo_title}/>
|
||||
<meta name="twitter:description" content={props.seo_description}/>
|
||||
<meta name="twitter:image" content={props.image}/>
|
||||
<meta name="robots" content="noindex, nofollow"></meta>
|
||||
{/* <meta httpEquiv='cache-control' content='no-store,no-cache'></meta>
|
||||
<meta httpEquiv='expires' content='0'></meta>
|
||||
<meta httpEquiv='pragma' content='no-cache'></meta> */}
|
||||
|
||||
@@ -24,8 +24,8 @@ const theme = createMuiTheme({
|
||||
},
|
||||
offerlistitem: {
|
||||
title: '#1E2327',
|
||||
icon: '#BBBCBD',
|
||||
text: '#787B7D',
|
||||
icon: '#1E2327',
|
||||
text: '#1E2327',
|
||||
},
|
||||
answer: {
|
||||
main: '#E8E8E8',
|
||||
|
||||
@@ -368,7 +368,7 @@ class AccountEtape1 extends Component {
|
||||
className={classes.textField}
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
value={this.state.currentJob ? this.state.currentJob : ''}
|
||||
value={this.state.currentJob =='null' || this.state.currentJob =='' ? '' :this.state.currentJob}
|
||||
onChange={this.handleChange}
|
||||
onBlur={this.onBlur}
|
||||
/>
|
||||
@@ -442,7 +442,7 @@ class AccountEtape1 extends Component {
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
placeholder="http://www.linkedin.com/in/"
|
||||
value={this.state.linkedin ? this.state.linkedin : ''}
|
||||
value={this.state.linkedin =='null' || this.state.linkedin =='' ? '' :this.state.linkedin}
|
||||
onChange={this.handleChange}
|
||||
onBlur={this.onBlur}
|
||||
|
||||
@@ -456,7 +456,7 @@ class AccountEtape1 extends Component {
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
placeholder="http://twitter.com/.."
|
||||
value={this.state.twitter ? this.state.twitter : ''}
|
||||
value={this.state.twitter =='null' || this.state.twitter =='' ? '' :this.state.twitter}
|
||||
onChange={this.handleChange}
|
||||
onBlur={this.onBlur}
|
||||
/>
|
||||
@@ -469,7 +469,7 @@ class AccountEtape1 extends Component {
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
placeholder="http://monsite.fr"
|
||||
value={this.state.website ? this.state.website : ''}
|
||||
value={this.state.website =='null' || this.state.website =='' ? '' :this.state.website}
|
||||
onChange={this.handleChange}
|
||||
onBlur={this.onBlur}
|
||||
/>
|
||||
|
||||
@@ -104,6 +104,9 @@ const styles = theme => ({
|
||||
fontSize: '2.5em',
|
||||
color: "#1689FB",
|
||||
textAlign: "right"
|
||||
},
|
||||
buttons :{
|
||||
display: "inline-table",
|
||||
}
|
||||
});
|
||||
const Recorder = dynamic(() => import ('../organisms/Recorder'), {ssr: false})
|
||||
@@ -207,7 +210,7 @@ class Etape2 extends React.Component {
|
||||
<section className={classes.container}>
|
||||
<Fragment>
|
||||
{this.AfficherSuccess()}
|
||||
{ loading ? <LoaderVideo/> : <div></div> }
|
||||
{ loading ? <LoaderVideo textePrincipal="Votre vidéo est en cours d’envoi..." texteSecondaire="Veuillez rester sur la page pendant le chargement qui peut durer plusieurs minutes."/> : <div></div> }
|
||||
|
||||
<div className={classes.root}>
|
||||
<Hidden xsUp>
|
||||
@@ -218,14 +221,15 @@ class Etape2 extends React.Component {
|
||||
<Grid container
|
||||
justify="center"
|
||||
alignItems="center"
|
||||
spacing={2}>
|
||||
spacing={2}
|
||||
className={classes.buttons}>
|
||||
<Grid item xs={12} sm={12} md={12} lg={6} lg={6}>
|
||||
|
||||
|
||||
|
||||
{ /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ?
|
||||
(
|
||||
<Fragment>
|
||||
<Fragment >
|
||||
<input
|
||||
type="file" accept="video/*" capture="camcorder"
|
||||
className={classes.input}
|
||||
|
||||
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
|
||||
import { connect } from "react-redux";
|
||||
import { fetchCurrentUserRequest } from '../../actions/user'
|
||||
import { fetchCompanyRequest } from '../../actions/companies'
|
||||
import { uploadMediaCv } from '../../actions/media'
|
||||
import { uploadMediaCv } from '../../actions/mediaCv'
|
||||
import { withStyles } from '@material-ui/core/styles'
|
||||
import { makeStyles } from '@material-ui/styles';
|
||||
import { Button, Typography, Divider, Hidden } from '@material-ui/core';
|
||||
@@ -191,7 +191,7 @@ class Etape3 extends React.Component {
|
||||
return (
|
||||
<Fragment>
|
||||
{ loading ?
|
||||
<LoaderVideo /> :
|
||||
<LoaderVideo textePrincipal="Votre candidature vidéo est en cours d’envoi..." texteSecondaire="Veuillez rester sur la page pendant le chargement qui peut durer plusieurs minutes."/> :
|
||||
<Fragment>
|
||||
{this.AfficherSuccess()}
|
||||
|
||||
@@ -246,7 +246,7 @@ function mapStateToProps(state) {
|
||||
// console.log(state.media.message)
|
||||
return {
|
||||
user: state.user ,
|
||||
cvLink : state.media.message,
|
||||
cvLink : state.mediaCv.message,
|
||||
loading: !!state.media.loading,
|
||||
cv : true,
|
||||
//errors: errorMessageSelector(state),
|
||||
|
||||
@@ -119,7 +119,47 @@ const useStyles = makeStyles(theme => ({
|
||||
},
|
||||
resetContainer: {
|
||||
padding: theme.spacing(3)
|
||||
}
|
||||
},
|
||||
iconButton:{
|
||||
marginTop: "50px",
|
||||
|
||||
[theme.breakpoints.down('md')]: {
|
||||
marginTop: "50px",
|
||||
|
||||
},
|
||||
},
|
||||
button: {
|
||||
textTransform: 'inherit',
|
||||
marginTop: theme.spacing(4),
|
||||
marginBottom: theme.spacing(2),
|
||||
padding: theme.spacing(1.2, 1),
|
||||
borderRadius: '3px',
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.important,
|
||||
},
|
||||
title:{
|
||||
fontFamily: 'Roboto',
|
||||
fontSize: '1.625em',
|
||||
fontWeight: '600',
|
||||
padding: theme.spacing(3, 0),
|
||||
},
|
||||
texteEtape:{
|
||||
fontSize: '1em',
|
||||
fontWeight: '300',
|
||||
|
||||
},
|
||||
conteneur:{
|
||||
width:'400px',
|
||||
},
|
||||
tabContainer:{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems:'center',
|
||||
textAlign:'center',
|
||||
align:'center',
|
||||
alignSelf:'center',
|
||||
},
|
||||
|
||||
}));
|
||||
|
||||
const AccountProfile = props => {
|
||||
@@ -136,70 +176,118 @@ const AccountProfile = props => {
|
||||
const {publicRuntimeConfig} = getConfig()
|
||||
|
||||
return (
|
||||
<Grid
|
||||
container
|
||||
spacing={4}
|
||||
direction="row"
|
||||
justify="space-between"
|
||||
alignItems="flex-start">
|
||||
<Fragment >
|
||||
<div className={classes.tabContainer}>
|
||||
<div className={classes.conteneur}>
|
||||
<Typography gutterBottom align="center" >
|
||||
<span className={classes.title}>
|
||||
<img
|
||||
alt="talents-tube"
|
||||
src='/statique/images/inscription/candidature-video-envoyee.svg'
|
||||
className={classes.iconButton}/>
|
||||
</span>
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" >
|
||||
<span className={classes.title}>Bravo !<br></br>
|
||||
Votre candidature a été envoyée
|
||||
</span>
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" className={classes.conteneur}>
|
||||
<div className={classes.texteEtape}>
|
||||
Pour suivre l’état d’avancement de vos candidatures, rendez-vous sur votre espace <b>Mon compte</b>.
|
||||
</div>
|
||||
</Typography>
|
||||
|
||||
|
||||
<Typography gutterBottom align="center" className={classes.text}>
|
||||
|
||||
<Button
|
||||
variant="contained"
|
||||
className={classes.button}
|
||||
classes={{ root: classes.rootButton }}
|
||||
onClick={() => Router.push('/Candidatures')}
|
||||
>
|
||||
Accéder à Mon compte
|
||||
</Button>
|
||||
|
||||
</Typography>
|
||||
{/* <section className={classes.bottomContainer}>
|
||||
<Button
|
||||
variant="contained"
|
||||
className={classes.button}
|
||||
classes={{ root: classes.rootButton }}
|
||||
onClick={() => Router.push('/Login')}
|
||||
>
|
||||
Connexion
|
||||
</Button>
|
||||
</section> */}
|
||||
</div>
|
||||
</div>
|
||||
</Fragment>
|
||||
// <Grid
|
||||
// container
|
||||
// spacing={4}
|
||||
// direction="row"
|
||||
// justify="space-between"
|
||||
// alignItems="flex-start">
|
||||
|
||||
<Grid item lg={9} md={6} xl={8} xs={12}>
|
||||
<Fragment>
|
||||
<Hidden> </Hidden>
|
||||
<Hidden> </Hidden>
|
||||
// <Grid item lg={9} md={6} xl={8} xs={12}>
|
||||
// <Fragment>
|
||||
// <Hidden> </Hidden>
|
||||
// <Hidden> </Hidden>
|
||||
|
||||
<Card
|
||||
variant="outlined"
|
||||
style={{
|
||||
width: 420 + "px",
|
||||
textAlign:"center"
|
||||
}}>
|
||||
<CardActions></CardActions>
|
||||
<CardContent>
|
||||
<Typography>
|
||||
Tu n'as pas tout dit dans ta vidéo?<br/>
|
||||
Pour mettre toutes les chances de ton côté,
|
||||
<b> dépose ton CV old school (format pdf, word)!</b>
|
||||
</Typography>
|
||||
</CardContent>
|
||||
// <Card
|
||||
// variant="outlined"
|
||||
// style={{
|
||||
// width: 420 + "px",
|
||||
// textAlign:"center"
|
||||
// }}>
|
||||
// <CardActions></CardActions>
|
||||
// <CardContent>
|
||||
// <Typography>
|
||||
// Tu n'as pas tout dit dans ta vidéo?<br/>
|
||||
// Pour mettre toutes les chances de ton côté,
|
||||
// <b> dépose ton CV old school (format pdf, word)!</b>
|
||||
// </Typography>
|
||||
// </CardContent>
|
||||
|
||||
</Card>
|
||||
<Hidden> </Hidden>
|
||||
<Card
|
||||
variant="outlined"
|
||||
style={{
|
||||
width: 420 + "px",
|
||||
textAlign:"center"
|
||||
}}>
|
||||
<CardContent>
|
||||
<AccountEtape3></AccountEtape3>
|
||||
</CardContent>
|
||||
</Card>
|
||||
<Hidden> </Hidden>
|
||||
<Hidden> </Hidden>
|
||||
<Card
|
||||
variant="outlined"
|
||||
style={{
|
||||
width: 420 + "px",
|
||||
textAlign:"center"
|
||||
}}>
|
||||
<CardContent>
|
||||
// </Card>
|
||||
// <Hidden> </Hidden>
|
||||
// <Card
|
||||
// variant="outlined"
|
||||
// style={{
|
||||
// width: 420 + "px",
|
||||
// textAlign:"center"
|
||||
// }}>
|
||||
// <CardContent>
|
||||
// <AccountEtape3></AccountEtape3>
|
||||
// </CardContent>
|
||||
// </Card>
|
||||
// <Hidden> </Hidden>
|
||||
// <Hidden> </Hidden>
|
||||
// <Card
|
||||
// variant="outlined"
|
||||
// style={{
|
||||
// width: 420 + "px",
|
||||
// textAlign:"center"
|
||||
// }}>
|
||||
// <CardContent>
|
||||
|
||||
<Button
|
||||
variant="contained"
|
||||
color="primary"
|
||||
onClick={() => Router.push(`/Candidatures`)}
|
||||
className={classes.button}>
|
||||
Voir mes candidatures
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Fragment>
|
||||
// <Button
|
||||
// variant="contained"
|
||||
// color="primary"
|
||||
// onClick={() => Router.push(`/Candidatures`)}
|
||||
// className={classes.button}>
|
||||
// Voir mes candidatures
|
||||
// </Button>
|
||||
// </CardContent>
|
||||
// </Card>
|
||||
// </Fragment>
|
||||
|
||||
</Grid>
|
||||
<Grid item lg={3} md={6} xl={4} xs={12}></Grid>
|
||||
// </Grid>
|
||||
// <Grid item lg={3} md={6} xl={4} xs={12}></Grid>
|
||||
|
||||
</Grid>
|
||||
// </Grid>
|
||||
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { Component, Fragment, useState } from 'react'
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
import { Button, Typography } from '@material-ui/core';
|
||||
import { Button, Typography, Divider, Hidden } from '@material-ui/core';
|
||||
import TextField from '@material-ui/core/TextField';
|
||||
import Input from '@material-ui/core/Input';
|
||||
import { connect } from 'react-redux'
|
||||
@@ -12,6 +12,7 @@ import Loader from './../templates/loader'
|
||||
import getConfig from 'next/config'
|
||||
import 'video-react/dist/video-react.css';
|
||||
import { Player } from 'video-react';
|
||||
import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';
|
||||
import GooglePlaceAutocomplete from 'mui-places-autocomplete'
|
||||
import { geocodeByAddress } from 'react-places-autocomplete'
|
||||
import FormControl from '@material-ui/core/FormControl'
|
||||
@@ -20,6 +21,8 @@ import DialogActions from '@material-ui/core/DialogActions';
|
||||
import DialogContent from '@material-ui/core/DialogContent';
|
||||
import DialogContentText from '@material-ui/core/DialogContentText';
|
||||
import DialogTitle from '@material-ui/core/DialogTitle';
|
||||
import { uploadMediaCv } from '../../actions/mediaCv'
|
||||
import GetApp from '@material-ui/icons/GetApp';
|
||||
// import PlacesAutocomplete from 'react-places-autocomplete';
|
||||
// import {
|
||||
// geocodeByAddress,
|
||||
@@ -28,6 +31,8 @@ import DialogTitle from '@material-ui/core/DialogTitle';
|
||||
// } from 'react-places-autocomplete';
|
||||
// import GoogleAutoComplete from 'react-google-autocomplete-address-fields';
|
||||
|
||||
|
||||
|
||||
const styles = theme => ({
|
||||
container: {
|
||||
width: '100%',
|
||||
@@ -78,10 +83,7 @@ const styles = theme => ({
|
||||
},
|
||||
rootButton: {
|
||||
textTransform: 'inherit',
|
||||
border: '1px solid',
|
||||
'&:hover': {
|
||||
border: '1px solid',
|
||||
},
|
||||
|
||||
},
|
||||
button: {
|
||||
textTransform: 'inherit',
|
||||
@@ -91,20 +93,25 @@ const styles = theme => ({
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.important,
|
||||
},
|
||||
|
||||
containerImport:{
|
||||
width:"100%",
|
||||
textAlign:"left",
|
||||
align:"left",
|
||||
alignItems:"flex-start",
|
||||
border: 0,
|
||||
margin: 0,
|
||||
display: "inline-flex",
|
||||
padding: 0,
|
||||
position: "relative",
|
||||
flexDirection: "column",
|
||||
verticalAlign: "top",
|
||||
marginBottom:"20px !important"
|
||||
},
|
||||
importButton: {
|
||||
color: theme.palette.primary.main,
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
padding: theme.spacing(3, 2),
|
||||
margin: theme.spacing(1),
|
||||
boxShadow: '0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.14)',
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
},
|
||||
InputKeyboardArrowRightIcon: {
|
||||
fontSize: '2.5em',
|
||||
color: theme.palette.secondary.main,
|
||||
},
|
||||
padding: '4px 8px',
|
||||
textTransform: 'inherit',
|
||||
border: '2px solid #1E2327',
|
||||
color: '#1E2327',
|
||||
},
|
||||
remplacerButton: {
|
||||
color: '#1E2327',
|
||||
@@ -114,6 +121,11 @@ const styles = theme => ({
|
||||
margin:'15px 0px 25px 0px',
|
||||
textTransform: 'inherit',
|
||||
},
|
||||
popup: {
|
||||
fontFamily: '"Roboto", "Helvetica", "Arial", "sans-serif"',
|
||||
fontWeight: '400',
|
||||
color: '#8E9092'
|
||||
},
|
||||
player:{
|
||||
width:"100px"
|
||||
}
|
||||
@@ -147,11 +159,147 @@ class Answer extends Component {
|
||||
this.onChange = this.onChange.bind(this);
|
||||
|
||||
}
|
||||
|
||||
|
||||
state = {
|
||||
open: false
|
||||
};
|
||||
file: null,
|
||||
firstname: '',
|
||||
lastname: '',
|
||||
phone: '',
|
||||
currentJob: '',
|
||||
linkedin: '',
|
||||
twitter: '',
|
||||
website: '',
|
||||
mediaId: null,
|
||||
mediaUrl: null,
|
||||
thumbnails:null,
|
||||
heure: null,
|
||||
companyId: null,
|
||||
address:'',
|
||||
errorMessage:'',
|
||||
open: false,
|
||||
loading: true,
|
||||
openSnack: false,
|
||||
cv:false,
|
||||
};
|
||||
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({
|
||||
firstname: this.state.firstname,
|
||||
lastname: this.state.lastname,
|
||||
phone: this.state.phone,
|
||||
currentJob: this.state.currentJob,
|
||||
linkedin: this.state.linkedin,
|
||||
twitter: this.state.twitter,
|
||||
website: this.state.website,
|
||||
mediaId: nextProps.mediaId,
|
||||
mediaUrl: nextProps.mediaUrl,
|
||||
thumbnails: nextProps.thumbnails,
|
||||
heure: nextProps.heure,
|
||||
companyId: nextProps.companyId,
|
||||
cvLink: nextProps.cvLink,
|
||||
loading: nextProps.loading,
|
||||
openSnack: !!!_.isEmpty(nextProps.errors),
|
||||
})
|
||||
if (nextProps.loading) {
|
||||
const success = {};
|
||||
success.message ="CV mis à jour";
|
||||
console.log("CV mis à jour!!!")
|
||||
this.setState({ success });
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
console.log("ANSWER ! ");
|
||||
console.log(this.props);
|
||||
this.setState({
|
||||
firstname: this.props.user.firstname,
|
||||
lastname: this.props.user.lastname,
|
||||
phone: this.props.user.phone,
|
||||
currentJob: this.props.user.currentJob,
|
||||
linkedin: this.props.user.linkedin,
|
||||
twitter: this.props.user.twitter,
|
||||
website: this.props.user.website,
|
||||
video: this.props.answer,
|
||||
mediaUrl : this.props.mediaUrl,
|
||||
thumbnails : this.props.thumbnails,
|
||||
heure : this.props.heure,
|
||||
loading: false,
|
||||
cvLink: this.props.user.cv
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
inputFilesystemChange = (e) => {
|
||||
this.uploadMediaCv(e)
|
||||
}
|
||||
|
||||
uploadMediaCv = (e) => {
|
||||
var file = e.target.files[0]
|
||||
|
||||
const data = new FormData()
|
||||
data.append('upload', file)
|
||||
this.props.uploadMediaCv(data)
|
||||
}
|
||||
|
||||
AfficherSuccess() {
|
||||
if (!this.state.success || !this.state.success.message) {
|
||||
console.log("Erreur Upload CV");
|
||||
return "";
|
||||
} else if (this.state.success.length != 0 && this.state.success.message != "") {
|
||||
return (
|
||||
<Snackbar open={open} autoHideDuration={1000} onClose={() => this.setState({open: false})}>
|
||||
<Alert onClose={() => this.setState({open: false})} severity="success">
|
||||
{ReactHtmlParser(this.state.success.message)}
|
||||
</Alert>
|
||||
</Snackbar>
|
||||
);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
AfficherLienCv() {
|
||||
console.log("afficher lien");
|
||||
if (this.state.cvLink !="") {
|
||||
|
||||
return (
|
||||
|
||||
<Fragment>
|
||||
|
||||
<Typography >
|
||||
<a href={publicRuntimeConfig.symphonyUrl + publicRuntimeConfig.postedContentCv + this.state.cvLink}
|
||||
target="_blank"
|
||||
style={{
|
||||
color:'#1E2327',
|
||||
'&:hover': {
|
||||
color: '#1E2327',
|
||||
},
|
||||
backgroundColor: '#F3F3F4',
|
||||
width:'100%',
|
||||
fontWeight: '500',
|
||||
fontSize: '1em',
|
||||
padding:'15px',
|
||||
margin:'20px 0',
|
||||
|
||||
}}
|
||||
>
|
||||
Visualiser mon CV
|
||||
</a>
|
||||
<br />
|
||||
|
||||
</Typography>
|
||||
|
||||
</Fragment>
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
openDialog() {
|
||||
this.setState({ open: true });
|
||||
}
|
||||
@@ -207,9 +355,9 @@ class Answer extends Component {
|
||||
const className = suggestion.active ? 'suggestion-item--active' : 'suggestion-item';
|
||||
const style = suggestion.active
|
||||
? { backgroundColor: 'red', cursor: 'pointer',border: '1px solid' }
|
||||
: { backgroundColor: '#ffffff', cursor: 'pointer',border: '1px solid' };
|
||||
: { backgroundColor: '#123456', cursor: 'pointer',border: '1px solid' };
|
||||
return (<div {...getSuggestionItemProps(suggestion,{className,style})}>
|
||||
<span>{suggestion.description}</span>
|
||||
<span >{suggestion.description}</span>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
@@ -222,70 +370,22 @@ class Answer extends Component {
|
||||
//You can use the address data, passed by autocomplete as you want.
|
||||
}
|
||||
|
||||
state = {
|
||||
file: null,
|
||||
firstname: '',
|
||||
lastname: '',
|
||||
phone: '',
|
||||
currentJob: '',
|
||||
linkedin: '',
|
||||
twitter: '',
|
||||
website: '',
|
||||
mediaId: null,
|
||||
mediaUrl: null,
|
||||
thumbnails:null,
|
||||
heure: null,
|
||||
companyId: null,
|
||||
address:'',
|
||||
errorMessage:''
|
||||
};
|
||||
|
||||
|
||||
handleChange = (e) => {
|
||||
this.setState({ [e.target.name]: e.target.value })
|
||||
}
|
||||
|
||||
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({
|
||||
firstname: nextProps.user.firstname,
|
||||
lastname: nextProps.user.lastname,
|
||||
phone: nextProps.user.phone,
|
||||
currentJob: nextProps.user.currentJob,
|
||||
linkedin: nextProps.user.linkedin,
|
||||
twitter: nextProps.user.twitter,
|
||||
website: nextProps.user.website,
|
||||
mediaId: nextProps.mediaId,
|
||||
mediaUrl: nextProps.mediaUrl,
|
||||
thumbnails: nextProps.thumbnails,
|
||||
heure: nextProps.heure,
|
||||
companyId: nextProps.companyId,
|
||||
})
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
console.log("ANSWER !!!!!!! !!!!!! !!!!!! ");
|
||||
console.log(this.props);
|
||||
this.setState({
|
||||
firstname: this.props.user.firstname,
|
||||
lastname: this.props.user.lastname,
|
||||
phone: this.props.user.phone,
|
||||
currentJob: this.props.user.currentJob,
|
||||
linkedin: this.props.user.linkedin,
|
||||
twitter: this.props.user.twitter,
|
||||
website: this.props.user.website,
|
||||
video: this.props.answer,
|
||||
mediaUrl : this.props.mediaUrl,
|
||||
thumbnails : this.props.thumbnails,
|
||||
heure : this.props.heure
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
onSubmit = (e) => {
|
||||
e.preventDefault()
|
||||
|
||||
//TODO : Vérifier si le nom et prénom sont renseignés
|
||||
console.log("firstname")
|
||||
console.log(this.state.firstname)
|
||||
const data = new FormData()
|
||||
|
||||
|
||||
data.append('firstname', this.state.firstname)
|
||||
data.append('lastname', this.state.lastname)
|
||||
data.append('phone', this.state.phone)
|
||||
@@ -302,6 +402,9 @@ class Answer extends Component {
|
||||
// //TODO Envoyer un mail a chaque user
|
||||
// console.log(user.email)
|
||||
// )
|
||||
// US 471 : TODO envoyer le lien du cv pour le mettre dans la candidature (this.state.cvLink)
|
||||
|
||||
console.log(this.state.cvLink, "lien CV")
|
||||
this.props.postAdAnswerRequest(
|
||||
{
|
||||
adId: this.props.adId,
|
||||
@@ -313,26 +416,26 @@ class Answer extends Component {
|
||||
})
|
||||
}
|
||||
|
||||
inputFilesystemChange = (e) => {
|
||||
// inputFilesystemChange = (e) => {
|
||||
|
||||
console.log("inputFilesystemChange");
|
||||
var file = e.target.files[0]
|
||||
this.setState({ picture: file })
|
||||
// console.log("inputFilesystemChange");
|
||||
// var file = e.target.files[0]
|
||||
// this.setState({ picture: file })
|
||||
|
||||
const data = new FormData()
|
||||
data.append('file', file)
|
||||
this.props.updateUserPictureRequest(data)
|
||||
}
|
||||
// recupererAdresse =()=>{
|
||||
// geocodeByAddress('1 rue de la laine, Questembert')
|
||||
// .then(results => getLatLng(results[0]))
|
||||
// .then(({ lat, lng }) =>
|
||||
// console.log('Successfully got latitude and longitude', { lat, lng })
|
||||
// )
|
||||
// geocodeByAddress('1 rue de la laine, Questembert')
|
||||
// .then(results => console.log(results))
|
||||
// .catch(error => console.error(error));
|
||||
// const data = new FormData()
|
||||
// data.append('file', file)
|
||||
// this.props.updateUserPictureRequest(data)
|
||||
// }
|
||||
recupererAdresse =()=>{
|
||||
geocodeByAddress('1 rue de la laine, Questembert')
|
||||
.then(results => getLatLng(results[0]))
|
||||
.then(({ lat, lng }) =>
|
||||
console.log('Successfully got latitude and longitude', { lat, lng })
|
||||
)
|
||||
geocodeByAddress('1 rue de la laine, Questembert')
|
||||
.then(results => console.log(results))
|
||||
.catch(error => console.error(error));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -340,6 +443,7 @@ class Answer extends Component {
|
||||
render() {
|
||||
const { classes, user } = this.props
|
||||
const logoUrl = user.picture;
|
||||
const { loading } = this.state;
|
||||
const inputProps = {
|
||||
value: this.state.address,
|
||||
onChange: this.onChange,
|
||||
@@ -353,8 +457,8 @@ class Answer extends Component {
|
||||
classes={{ img: classes.MuiAvatarImg }}
|
||||
src={publicRuntimeConfig.symphonyUrl + publicRuntimeConfig.postedContentUrl + logoUrl} alt="candidatLogo" />}
|
||||
|
||||
{!!user.pictureLoading && <Loader />}
|
||||
{!!!user.pictureLoading && !!!logoUrl &&
|
||||
{/* {!!user.pictureLoading && <Loader />} */}
|
||||
{/* {!!!user.pictureLoading && !!!logoUrl &&
|
||||
(<Fragment><input
|
||||
type="file" accept="image/*" capture="filesystem"
|
||||
className={classes.input}
|
||||
@@ -374,28 +478,21 @@ class Answer extends Component {
|
||||
<KeyboardArrowRightIcon className={classes.InputKeyboardArrowRightIcon} />
|
||||
</Button>
|
||||
</label></Fragment>)
|
||||
}
|
||||
<Player fluid={false} width={450}
|
||||
} */}
|
||||
<Player fluid={false} width={"75%"} height={350}
|
||||
playsInline className={classes.player}
|
||||
src={publicRuntimeConfig.symphonyUrl + "uploads/videos/"+this.state.mediaUrl}
|
||||
//src={this.state.mediaUrl}
|
||||
// src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4"
|
||||
/>
|
||||
|
||||
{/* <GooglePlaceAutocomplete
|
||||
name="location"
|
||||
label="Location"
|
||||
onSuggestionSelected={this.onSuggestionSelected}
|
||||
textFieldProps={{ onChange: (e) => this.onChange(e), value: this.state.value, placeholder: 'Search for a place'}}
|
||||
types={['(regions)']}
|
||||
renderTarget={() => (<div />)}
|
||||
/> */}
|
||||
|
||||
<Button className={classes.remplacerButton} onClick={this.openDialog.bind(this)}>
|
||||
Remplacer ma vidéo
|
||||
</Button>
|
||||
<Dialog open={this.state.open} onEnter={console.log("Hey.")}>
|
||||
<DialogTitle> Souhaitez-vous remplacer votre vidéo de réponse ?</DialogTitle>
|
||||
<DialogContent> Cette vidéo sera définitivement supprimée. Vous pourrez importer ou réaliser une nouvelle video de réponse. </DialogContent>
|
||||
<DialogContent className={classes.popup}> Cette vidéo et tous les éléments de votre candidature seront définitivement supprimés. Vous pourrez importer ou réaliser une nouvelle vidéo de réponse. </DialogContent>
|
||||
<DialogActions>
|
||||
|
||||
<Button onClick={this.closeDialog.bind(this)} autoFocus>
|
||||
@@ -418,8 +515,31 @@ class Answer extends Component {
|
||||
variant="outlined"
|
||||
value={this.state.lastname}
|
||||
onChange={this.handleChange}
|
||||
error={!!_.isEmpty(this.state.lastname)}
|
||||
helperText={!!_.isEmpty(this.state.lastname) && "Veuillez saisir votre nom"}
|
||||
required
|
||||
/>
|
||||
|
||||
<div style={{ position: 'relative' }}>
|
||||
<GooglePlaceAutocomplete
|
||||
style={{ left: 0, right: 0, zIndex: 1, width: 800 }}
|
||||
name="location"
|
||||
label="Location"
|
||||
onSuggestionSelected={this.onSuggestionSelected}
|
||||
textFieldProps={{ onChange: (e) => this.onChange(e), value: this.state.value, placeholder: 'Chercher votre adresse', fullWidth: true}}
|
||||
types={['(regions)']}
|
||||
renderTarget={() => (
|
||||
<div
|
||||
style={{
|
||||
|
||||
width:'600px',
|
||||
zIndex:1
|
||||
}}
|
||||
>
|
||||
|
||||
</div>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<TextField
|
||||
name="firstname"
|
||||
required
|
||||
@@ -430,6 +550,8 @@ class Answer extends Component {
|
||||
variant="outlined"
|
||||
value={this.state.firstname}
|
||||
onChange={this.handleChange}
|
||||
error={!!_.isEmpty(this.state.firstname)}
|
||||
helperText={!!_.isEmpty(this.state.firstname) && "Veuillez saisir votre prénom"}
|
||||
/>
|
||||
|
||||
<TextField
|
||||
@@ -442,6 +564,7 @@ class Answer extends Component {
|
||||
value={this.state.phone}
|
||||
onChange={this.handleChange}
|
||||
type="tel"
|
||||
helperText="Renseignez votre numéro de téléphone pour permettre au recruteur de vous contacter"
|
||||
/>
|
||||
|
||||
<TextField
|
||||
@@ -461,10 +584,33 @@ class Answer extends Component {
|
||||
className={classes.textField}
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
value={this.state.currentJob}
|
||||
value={this.state.currentJob =='null' || this.state.currentJob =='' ? '' :this.state.currentJob}
|
||||
onChange={this.handleChange}
|
||||
/>
|
||||
|
||||
{this.AfficherSuccess()}
|
||||
<div className={classes.containerImport}>
|
||||
<input
|
||||
type="file"
|
||||
accept=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document, .pdf, .odt"
|
||||
className={classes.input+' cypButtonImportVid'}
|
||||
style={{ display: 'none' }}
|
||||
id="import-button-file"
|
||||
onChange={this.inputFilesystemChange}
|
||||
/>
|
||||
<label htmlFor="import-button-file">
|
||||
<Button component="span" className={classes.importButton} classes={{ root: classes.rootButton }}>
|
||||
|
||||
|
||||
<GetApp className={classes.icon} /> Importer mon CV
|
||||
|
||||
|
||||
</Button>
|
||||
|
||||
</label>
|
||||
<Hidden> </Hidden>
|
||||
{this.AfficherLienCv()}
|
||||
</div>
|
||||
<TextField
|
||||
name="linkedin"
|
||||
id="outlined"
|
||||
@@ -473,7 +619,7 @@ class Answer extends Component {
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
placeholder="http://www.linkedin.com/in/"
|
||||
value={this.state.linkedin}
|
||||
value={this.state.linkedin =='null' || this.state.linkedin =='' ? '' :this.state.linkedin}
|
||||
onChange={this.handleChange}
|
||||
|
||||
/>
|
||||
@@ -486,7 +632,7 @@ class Answer extends Component {
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
placeholder="http://twitter.com/.."
|
||||
value={this.state.twitter}
|
||||
value={this.state.twitter =='null' || this.state.twitter =='' ? '' :this.state.twitter}
|
||||
onChange={this.handleChange}
|
||||
/>
|
||||
|
||||
@@ -498,7 +644,7 @@ class Answer extends Component {
|
||||
classes={{ root: classes.rootTextfield }}
|
||||
variant="outlined"
|
||||
placeholder="http://monsite.fr"
|
||||
value={this.state.website}
|
||||
value={this.state.website =='null' || this.state.website =='' ? '' :this.state.website}
|
||||
onChange={this.handleChange}
|
||||
/>
|
||||
|
||||
@@ -514,8 +660,12 @@ class Answer extends Component {
|
||||
function mapStateToProps(state, ownProps) {
|
||||
// console.log(state.media.message.heure);
|
||||
return {
|
||||
user: state.user ,
|
||||
cvLink : state.mediaCv.message,
|
||||
loading: !!state.media.loading,
|
||||
cv : true,
|
||||
user: state.user,
|
||||
loading: !!state.user.loading,
|
||||
// loading: !!state.user.loading,
|
||||
pictureLoading: !!state.user.pictureLoading,
|
||||
errors: state.user.errors || ownProps.errors,
|
||||
mediaId: state.media.message && state.media.message.mediaId,
|
||||
@@ -528,4 +678,4 @@ function mapStateToProps(state, ownProps) {
|
||||
|
||||
}
|
||||
|
||||
export default withStyles(styles)(connect(mapStateToProps, { postAdAnswerRequest, updateUserRequest, updateUserPictureRequest })(Answer))
|
||||
export default withStyles(styles)(connect(mapStateToProps, { postAdAnswerRequest, updateUserRequest, updateUserPictureRequest, uploadMediaCv })(Answer))
|
||||
@@ -139,7 +139,7 @@ class CompanyRowComponent extends React.Component {
|
||||
render() {
|
||||
const { classes, theme, rowData } = this.props;
|
||||
|
||||
const imgDefaultUrl = "/static/images/default/default_picture_company.svg"
|
||||
const imgDefaultUrl = "https://blog.talentstube.com/wp-content/uploads/2021/01/default_picture_company.jpg"
|
||||
|
||||
const imgUrl = (rowData.presentation_video && rowData.presentation_video.thumbnails[0] && rowData.presentation_video.thumbnails[0].sizes[4]) ? rowData.presentation_video.thumbnails[0].sizes[4].link : imgDefaultUrl
|
||||
const logoUrl = publicRuntimeConfig.symphonyUrl + publicRuntimeConfig.cachedMediaUrl + rowData.logo
|
||||
|
||||
@@ -41,6 +41,7 @@ import axios from 'axios';
|
||||
import setAuthorizationHeader from "../../data/setAuthorizationHeader";
|
||||
import getConfig from 'next/config'
|
||||
import Router from 'next/router'
|
||||
|
||||
const styles = theme => ({
|
||||
root: {
|
||||
width: '100%',
|
||||
@@ -224,6 +225,9 @@ const styles = theme => ({
|
||||
justifyContent: 'space-between',
|
||||
padding: 0,
|
||||
},
|
||||
appBar:{
|
||||
position:'fixed'
|
||||
},
|
||||
appBarDesktopSection: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
@@ -302,11 +306,11 @@ class Header extends React.Component {
|
||||
left: false,
|
||||
bottom: false,
|
||||
right: false,
|
||||
toggle: true
|
||||
toggle: true,
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
@@ -333,11 +337,20 @@ class Header extends React.Component {
|
||||
sessionStorage.setItem(type+'_currentPage',1);
|
||||
|
||||
}
|
||||
|
||||
redirectionrecruteur=(props) => {
|
||||
console.log("redirection recruteur")
|
||||
localStorage.removeItem("ttJWT");
|
||||
//this.openDialog()
|
||||
props.requestLogout();
|
||||
window.location.href = "https://recruteur.talentstube.com/";
|
||||
}
|
||||
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
const { publicRuntimeConfig } = getConfig();
|
||||
|
||||
|
||||
console.log("user",this.props.user)
|
||||
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
<Drawer anchor="left" open={this.state.left} onClose={this.toggleDrawer('left', false)}>
|
||||
@@ -359,6 +372,7 @@ class Header extends React.Component {
|
||||
|
||||
<Divider />
|
||||
<div className={classes.links}>
|
||||
{/* Menu Accueil /Offres Entreprises */}
|
||||
<div className={classes.linkGroup}>
|
||||
<ActiveLink activeClassName={classes.active} href="/" >
|
||||
<a className={classes.darkMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
@@ -398,6 +412,8 @@ class Header extends React.Component {
|
||||
</a>
|
||||
|
||||
</div>
|
||||
{/* FIN Menu Accueil /Offres Entreprises */}
|
||||
{/* Menu recruteur */}
|
||||
<div>
|
||||
{/* <div className={classes.blogLinkGroup}>
|
||||
<a href={publicRuntimeConfig.blogUrl} className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
@@ -415,6 +431,7 @@ class Header extends React.Component {
|
||||
</ListItem></a>
|
||||
</div>
|
||||
</div>
|
||||
{/* FIN Menu recruteur*/}
|
||||
|
||||
</div>
|
||||
</List>
|
||||
@@ -429,9 +446,11 @@ class Header extends React.Component {
|
||||
role="button"
|
||||
onClick={this.toggleDrawer('right', false)}
|
||||
onKeyDown={this.toggleDrawer('right', false)}
|
||||
>{!!this.props.loading &&
|
||||
>
|
||||
{!!this.props.loading &&
|
||||
(<Loader />
|
||||
)}
|
||||
)
|
||||
}
|
||||
{!!!this.props.loading && !!!this.props.fetched
|
||||
&&
|
||||
<div className={classes.fullList + ' ' + classes.darkFullList}>
|
||||
@@ -474,14 +493,16 @@ class Header extends React.Component {
|
||||
</a>
|
||||
</div>
|
||||
</List>
|
||||
</div>}
|
||||
{!!!this.props.loading && !!this.props.fetched &&
|
||||
</div>
|
||||
}
|
||||
{!!!this.props.loading && !!this.props.fetched &&
|
||||
<Fragment>
|
||||
{this.props.user.picture ?
|
||||
<img alt="talents-tube" src={publicRuntimeConfig.symphonyUrl +publicRuntimeConfig.postedContentUrl+ this.props.user.picture} className={classes.menuAvatar} />
|
||||
:
|
||||
<img alt="talents-tube" src='/static/images/default/account-avatar-default.svg' className={classes.menuAvatar} />
|
||||
}
|
||||
|
||||
<ListItem classes={{ root: classes.rootListItem }} className={classes.ListItemUserConnected}>
|
||||
<Typography gutterBottom component="h1" className={classes.menuUserName}>
|
||||
{this.props.user.firstname + " " + this.props.user.lastname}
|
||||
@@ -494,29 +515,51 @@ class Header extends React.Component {
|
||||
|
||||
<Divider className={classes.darkDivider} />
|
||||
|
||||
{/* TODO:real links */}
|
||||
<Link href="/Candidatures" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<FolderSharedIcon className={classes.icon} />
|
||||
<ListItemText primary='Mes candidatures'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
<Link href="/profileStep" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<AccountCircleIcon className={classes.icon} />
|
||||
<ListItemText primary='Mon compte'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
|
||||
<Link href="/Parametres" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<SettingsIcon className={classes.icon} />
|
||||
<ListItemText primary='Paramètres de notification'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
{this.props.user.type=="TALENT"
|
||||
?
|
||||
<div>
|
||||
<Link href="/Candidatures" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<FolderSharedIcon className={classes.icon} />
|
||||
<ListItemText primary='Mes candidatures'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
<Link href="/profileStep" >
|
||||
<a className={classes.lightMenuItem}>
|
||||
<ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<AccountCircleIcon className={classes.icon} />
|
||||
<ListItemText primary='Mon compte'>
|
||||
</ListItemText>
|
||||
</ListItem>
|
||||
</a>
|
||||
</Link>
|
||||
|
||||
<Link href="/Parametres" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<SettingsIcon className={classes.icon} />
|
||||
<ListItemText primary='Paramètres de notification'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
</div>
|
||||
:
|
||||
this.redirectionrecruteur(this.props)
|
||||
|
||||
// <div>
|
||||
|
||||
// <a href={publicRuntimeConfig.symphonyUrl + "/"} className={classes.lightMenuItem}>
|
||||
// <ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
// <SettingsIcon className={classes.icon} />
|
||||
// <ListItemText primary='Espace recruteur'>
|
||||
// </ListItemText>
|
||||
// </ListItem></a>
|
||||
|
||||
// </div>
|
||||
|
||||
}
|
||||
|
||||
|
||||
<Link href="/" >
|
||||
<a onClick={() => {
|
||||
localStorage.removeItem("ttJWT");
|
||||
@@ -581,7 +624,7 @@ class Header extends React.Component {
|
||||
<div>
|
||||
{!!!this.props.loading && !!!this.props.fetched &&
|
||||
<Fragment>
|
||||
<Link href="Inscription" >
|
||||
<Link href="/Inscription" >
|
||||
<a className={classes.desktopMenuItem}>
|
||||
<ListItem classes={{ root: classes.rootListItemDesktop }}>
|
||||
<Button
|
||||
@@ -608,7 +651,7 @@ class Header extends React.Component {
|
||||
</Link>
|
||||
</Fragment>
|
||||
}
|
||||
{!!!this.props.loading && !!this.props.fetched &&
|
||||
{!!!this.props.loading && !!this.props.fetched &&
|
||||
<IconButton
|
||||
edge="end"
|
||||
aria-label="Profile"
|
||||
|
||||
@@ -227,6 +227,9 @@ const styles = theme => ({
|
||||
justifyContent: 'space-between',
|
||||
padding: 0,
|
||||
},
|
||||
appBar:{
|
||||
position:'fixed'
|
||||
},
|
||||
appBarDesktopSection: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
@@ -296,13 +299,10 @@ const styles = theme => ({
|
||||
paddingRight: 0,
|
||||
},
|
||||
},
|
||||
loadingBar:{
|
||||
top:'100px'
|
||||
}
|
||||
});
|
||||
let urlEnv;
|
||||
|
||||
class HeaderOffre extends React.Component {
|
||||
class HeaderPersonnalise extends React.Component {
|
||||
state = {
|
||||
top: false,
|
||||
left: false,
|
||||
@@ -311,7 +311,13 @@ class HeaderOffre extends React.Component {
|
||||
toggle: true
|
||||
};
|
||||
|
||||
|
||||
redirectionrecruteur=(props) => {
|
||||
console.log("redirection recruteur")
|
||||
localStorage.removeItem("ttJWT");
|
||||
//this.openDialog()
|
||||
props.requestLogout();
|
||||
window.location.href = "https://recruteur.talentstube.com/";
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
@@ -346,7 +352,7 @@ class HeaderOffre extends React.Component {
|
||||
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
|
||||
|
||||
|
||||
<Drawer anchor="right" open={this.state.right} onClose={this.toggleDrawer('right', false)}>
|
||||
<div
|
||||
@@ -355,12 +361,50 @@ class HeaderOffre extends React.Component {
|
||||
onClick={this.toggleDrawer('right', false)}
|
||||
onKeyDown={this.toggleDrawer('right', false)}
|
||||
>{!!this.props.loading &&
|
||||
(<LoadingBar className={classes.loadingBar}/>
|
||||
(<Loader />
|
||||
)}
|
||||
{!!!this.props.loading && !!!this.props.fetched
|
||||
&&
|
||||
<div className={classes.fullList + ' ' + classes.darkFullList}>
|
||||
|
||||
<List>
|
||||
<Link href="/" >
|
||||
<a className={classes.darkMenuItem + ' cypFrontPage'}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<img alt="talents-tube" src='/statique/images/logos/TalentsTube_logo-blanc.svg' className={classes.menuLogo} />
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
|
||||
|
||||
<Divider light={true} />
|
||||
|
||||
<div className={classes.linkGroup}>
|
||||
<Link href="/Login" >
|
||||
<a className={classes.lightMenuItem + ' cypConnexion'}><ListItem classes={{ root: classes.rootListItemIcon }} >
|
||||
<PersonIcon className={classes.icon} />
|
||||
<ListItemText classes={{ primary: classes.ListItemText }} primary='Connexion'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
{/* TODO */}
|
||||
<Link href="/Inscription" >
|
||||
<a className={classes.lightMenuItem + ' cypRegister'}><ListItem classes={{ primary: classes.ListItemText }} classes={{ root: classes.rootListItem }}>
|
||||
<PersonAddIcon className={classes.icon} />
|
||||
<ListItemText primary='Inscription'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<Divider light={true} />
|
||||
|
||||
<div className={classes.linkGroup}>
|
||||
<a href={publicRuntimeConfig.symphonyUrl + "/"} className={classes.lightMenuItem}><ListItem classes={{ primary: classes.ListItemText }} classes={{ root: classes.rootListItemIcon }}>
|
||||
<WorkOutlineIcon className={classes.icon} />
|
||||
<ListItemText primary='Connexion recruteurs'>
|
||||
</ListItemText>
|
||||
</ListItem>
|
||||
</a>
|
||||
</div>
|
||||
</List>
|
||||
</div>}
|
||||
{!!!this.props.loading && !!this.props.fetched &&
|
||||
<Fragment>
|
||||
@@ -380,30 +424,51 @@ class HeaderOffre extends React.Component {
|
||||
</ListItem>
|
||||
|
||||
<Divider className={classes.darkDivider} />
|
||||
{this.props.user.type=="TALENT"
|
||||
?
|
||||
<div>
|
||||
<Link href="/Candidatures" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<FolderSharedIcon className={classes.icon} />
|
||||
<ListItemText primary='Mes candidatures'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
<Link href="/profileStep" >
|
||||
<a className={classes.lightMenuItem}>
|
||||
<ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<AccountCircleIcon className={classes.icon} />
|
||||
<ListItemText primary='Mon compte'>
|
||||
</ListItemText>
|
||||
</ListItem>
|
||||
</a>
|
||||
</Link>
|
||||
|
||||
<Link href="/Parametres" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<SettingsIcon className={classes.icon} />
|
||||
<ListItemText primary='Paramètres de notification'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
</div>
|
||||
:
|
||||
this.redirectionrecruteur(this.props)
|
||||
|
||||
// <div>
|
||||
|
||||
// <a href={publicRuntimeConfig.symphonyUrl + "/"} className={classes.lightMenuItem}>
|
||||
// <ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
// <SettingsIcon className={classes.icon} />
|
||||
// <ListItemText primary='Espace recruteur'>
|
||||
// </ListItemText>
|
||||
// </ListItem></a>
|
||||
|
||||
// </div>
|
||||
|
||||
}
|
||||
|
||||
|
||||
{/* TODO:real links */}
|
||||
<Link href="/Candidatures" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<FolderSharedIcon className={classes.icon} />
|
||||
<ListItemText primary='Mes candidatures'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
<Link href="/profileStep" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<AccountCircleIcon className={classes.icon} />
|
||||
<ListItemText primary='Mon compte'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
|
||||
<Link href="/Parametres" >
|
||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||
<SettingsIcon className={classes.icon} />
|
||||
<ListItemText primary='Paramètres de notification'>
|
||||
</ListItemText>
|
||||
</ListItem></a>
|
||||
</Link>
|
||||
<Link href="/" >
|
||||
<a onClick={() => {
|
||||
localStorage.removeItem("ttJWT");
|
||||
@@ -436,13 +501,7 @@ class HeaderOffre extends React.Component {
|
||||
color="inherit" aria-label="Open drawer">
|
||||
<MenuIcon />
|
||||
</IconButton> */}
|
||||
{/* <ButtonBase name='back'
|
||||
focusRipple
|
||||
className={classes.back}
|
||||
focusVisibleClassName={classes.focusVisible}
|
||||
onClick={() => Router.back()}>
|
||||
<ArrowLeft color="primary" classes={{ root: classes.icon }}></ArrowLeft>
|
||||
</ButtonBase> */}
|
||||
|
||||
<List className={classes.desktopMenuList}>
|
||||
<div>
|
||||
<ActiveLink activeClassName={classes.active} href="/Offres" >
|
||||
@@ -464,7 +523,7 @@ class HeaderOffre extends React.Component {
|
||||
</a>
|
||||
</ActiveLink>
|
||||
|
||||
<a className={classes.desktopMenuItem} href="https://blog.talentstube.com/" target="_blank">
|
||||
<a className={classes.desktopMenuItem} target="_blank" href="https://blog.talentstube.com/">
|
||||
<ListItemText primary='Blog'>
|
||||
</ListItemText>
|
||||
</a>
|
||||
@@ -538,7 +597,7 @@ class HeaderOffre extends React.Component {
|
||||
focusRipple
|
||||
className={classes.back}
|
||||
focusVisibleClassName={classes.focusVisible}
|
||||
onClick={() => Router.back()}>
|
||||
onClick={() => Router.push("/"+this.props.retour)}>
|
||||
<ArrowLeft color="primary" classes={{ root: classes.icon }}></ArrowLeft>
|
||||
</ButtonBase>
|
||||
<div className={classes.grow} />
|
||||
@@ -572,4 +631,4 @@ function mapStateToProps(state) {
|
||||
loading: !!state.user.loading
|
||||
};
|
||||
}
|
||||
export default (connect(mapStateToProps, { fetchCurrentUserRequest, requestLogout })(withStyles(styles)(withWidth()(HeaderOffre))));
|
||||
export default (connect(mapStateToProps, { fetchCurrentUserRequest, requestLogout })(withStyles(styles)(withWidth()(HeaderPersonnalise))));
|
||||
@@ -1,4 +1,5 @@
|
||||
import React, { Fragment,lazy, Suspense } from 'react'
|
||||
import React, { Fragment } from 'react'
|
||||
import OgHead from '../atoms/OgHead'
|
||||
import Router from 'next/router'
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
import getConfig from 'next/config'
|
||||
@@ -20,9 +21,7 @@ import Ar from "lodash/array";
|
||||
import Hidden from '@material-ui/core/Hidden';
|
||||
import Link from 'next/link'
|
||||
import withWidth, { isWidthUp } from '@material-ui/core/withWidth'
|
||||
const VideoVimeo = lazy(() => import('../atoms/VideoVimeo'));
|
||||
//import VideoVimeo from '../atoms/VideoVimeo'
|
||||
import OgHead from '../atoms/OgHead'
|
||||
|
||||
import JobPosting from '../atoms/JobPosting'
|
||||
import Moment from 'react-moment';
|
||||
import StickyBox from "react-sticky-box";
|
||||
@@ -53,9 +52,9 @@ const styles = theme => ({
|
||||
margin: theme.spacing(0, 0),
|
||||
},
|
||||
headerContainerMobile: {
|
||||
display: 'flex',
|
||||
top : '-20px',
|
||||
marginLeft : '20px'
|
||||
display: 'inline',
|
||||
// top : '-20px',
|
||||
// marginLeft : '20px'
|
||||
|
||||
},
|
||||
headerContainerDesktop: {
|
||||
@@ -88,7 +87,7 @@ const styles = theme => ({
|
||||
infoContainerMobile: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
margin: theme.spacing(0, 1.5),
|
||||
padding: '20px',
|
||||
'& a': {
|
||||
textDecoration: 'none',
|
||||
color: theme.palette.primary.dark,
|
||||
@@ -119,16 +118,14 @@ const styles = theme => ({
|
||||
marginBottom: '10px'
|
||||
},
|
||||
IconTextContainerMobile: {
|
||||
display: '',
|
||||
alignItems: 'center',
|
||||
// justifyContent: 'flex-start',
|
||||
width: '100%',
|
||||
|
||||
borderTop: '1px solid #E8E8E9',
|
||||
borderBottom: '1px solid #E8E8E9',
|
||||
paddingTop: '20px',
|
||||
paddingBottom: '20px',
|
||||
marginLeft:'20px',
|
||||
marginRight:'20px'
|
||||
padding: '20px',
|
||||
|
||||
|
||||
},
|
||||
contentContainer: {
|
||||
display: 'flex',
|
||||
@@ -138,6 +135,15 @@ const styles = theme => ({
|
||||
top:'40px',
|
||||
margin: theme.spacing(0, 1),
|
||||
},
|
||||
contentContainerMobile: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'flex-start',
|
||||
justifyContent: 'flex-start',
|
||||
top:'100px',
|
||||
paddingTop:'100px',
|
||||
margin: theme.spacing(0, 1),
|
||||
},
|
||||
tagsContainer: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
@@ -229,11 +235,10 @@ const styles = theme => ({
|
||||
backgroundColor: 'white'
|
||||
},
|
||||
stickyContainer:{
|
||||
margin: '10px 0px',
|
||||
// margin: '10px 0px',
|
||||
borderBottom: '1px solid #E8E8E9',
|
||||
marginBottom: '20px',
|
||||
paddingBottom: '5px',
|
||||
|
||||
},
|
||||
stickySeparation:{
|
||||
|
||||
@@ -426,13 +431,12 @@ const styles = theme => ({
|
||||
pourvu: {
|
||||
|
||||
padding: '9.6px 16px',
|
||||
textTransform: 'inherit',
|
||||
margin: '35px 0',
|
||||
textAlign : 'center'
|
||||
|
||||
textAlign : 'center',
|
||||
|
||||
},
|
||||
pourvuButton:{
|
||||
|
||||
textTransform: 'inherit',
|
||||
},
|
||||
videoOffre: {
|
||||
[theme.breakpoints.up('md')]: {
|
||||
@@ -562,7 +566,7 @@ const styles = theme => ({
|
||||
fontSize: '1.5em',
|
||||
color: theme.palette.background.grey,
|
||||
position: 'absolute',
|
||||
bottom: '60px',
|
||||
bottom: '30px',
|
||||
left: '20px',
|
||||
color: '#1E2327',
|
||||
backgroundColor: '#fff',
|
||||
@@ -572,14 +576,16 @@ const styles = theme => ({
|
||||
|
||||
},
|
||||
playerTexteMobile: {
|
||||
|
||||
fontSize: '1em',
|
||||
fontWeight: '600',
|
||||
position: 'absolute',
|
||||
bottom: '70px',
|
||||
bottom: '43px',
|
||||
left: '80px',
|
||||
color: '#fff',
|
||||
},
|
||||
iconPlayBasMobile: {
|
||||
|
||||
fontSize: '1.5em',
|
||||
color: theme.palette.background.grey,
|
||||
position: 'absolute',
|
||||
@@ -621,14 +627,14 @@ const styles = theme => ({
|
||||
fontSize: '1.250em',
|
||||
fontWeight: '600',
|
||||
position: 'absolute',
|
||||
top: '7px',
|
||||
left: '45px',
|
||||
right: '10px',
|
||||
top: '30px',
|
||||
left: '30px',
|
||||
right: '30px',
|
||||
color: '#fff',
|
||||
textAlign:'left',
|
||||
lineHeight : '20px',
|
||||
marginBottom : '20px',
|
||||
padding:'10px'
|
||||
|
||||
},
|
||||
containerPoste:{
|
||||
|
||||
@@ -670,8 +676,8 @@ const { publicRuntimeConfig } = getConfig()
|
||||
|
||||
function OffreDetail(props) {
|
||||
let { classes, offre, isCandidature } = props;
|
||||
const logoUrl = (offre.company ? publicRuntimeConfig.symphonyUrl + publicRuntimeConfig.cachedMediaUrl + offre.company.logo : "/static/images/defaultdefault_picture_company.svg/")
|
||||
const DefaultUrl = "/static/images/default/default_picture_company.svg"
|
||||
const logoUrl = (offre.company ? publicRuntimeConfig.symphonyUrl + publicRuntimeConfig.cachedMediaUrl + offre.company.logo : "https://blog.talentstube.com/wp-content/uploads/2021/01/default_picture_company.jpg")
|
||||
const DefaultUrl = "https://blog.talentstube.com/wp-content/uploads/2021/01/default_picture_company.jpg"
|
||||
const imgUrl = (offre.company && offre.company.presentation_video && offre.company.presentation_video.thumbnails && offre.company.presentation_video.thumbnails[0] && offre.company.presentation_video.thumbnails[0].sizes[2]) ? offre.company.presentation_video.thumbnails[0].sizes[2].link : DefaultUrl
|
||||
const imgUrlDesktop = (offre.company && offre.company.presentation_video && offre.company.presentation_video.thumbnails && offre.company.presentation_video.thumbnails[0] && offre.company.presentation_video.thumbnails[0].sizes[4]) ? offre.company.presentation_video.thumbnails[0].sizes[4].link : DefaultUrl
|
||||
const imgUrlOffre = (offre && offre.video && offre.video.thumbnails && offre.video.thumbnails[0] && offre.video.thumbnails[0].sizes[2]) ? offre.video.thumbnails[0].sizes[2].link : DefaultUrl
|
||||
@@ -682,16 +688,8 @@ function OffreDetail(props) {
|
||||
const entrepriseLink = (offre.company && `/Entreprise/${offre.company.id}-${_.kebabCase(offre.company.brand_name)}`);
|
||||
const territoryVideoUrlTab = (offre.territories && offre.territories[0] && offre.territories[0].territory) ? offre.territories[0].territory.presentation_video.cdn_url.split('/') : '';
|
||||
const territoryVideoId = territoryVideoUrlTab[2]
|
||||
let descriptionSEO = ""
|
||||
let titleSEO = ""
|
||||
offre.company.brand_name ? descriptionSEO += offre.company.brand_name : ""
|
||||
descriptionSEO += " recrute en vidéo un(e) "+offre.title
|
||||
titleSEO = "Offre d'emploi vidéo "+offre.title
|
||||
offre.location.gmap_address.formatted_address ? descriptionSEO += ", "+offre.location.gmap_address.formatted_address : ""
|
||||
offre.location.gmap_address.formatted_address ? titleSEO += ", "+offre.location.gmap_address.formatted_address : ""
|
||||
offre.company.brand_name ? titleSEO += " - "+offre.company.brand_name : ""
|
||||
descriptionSEO += ". Envoyez votre candidature en vidéo. "
|
||||
titleSEO += " | Talents Tube "
|
||||
let descriptionSEO = offre.company && offre.company.brand_name+ " recrute en vidéo un(e) "+offre.title+", "+(offre.location && offre.location.gmap_address.formatted_address)+". Envoyez votre candidature en vidéo. "
|
||||
let titleSEO = "Offre d'emploi vidéo "+offre.title+" - "+(offre.company && offre.company.brand_name)+", "+(offre.location && offre.location.gmap_address.formatted_address)+" | Talents Tube "
|
||||
let jobVille=""
|
||||
let jobDpt=""
|
||||
let jobPays=""
|
||||
@@ -701,12 +699,12 @@ function OffreDetail(props) {
|
||||
let nombreHeure =""
|
||||
let dureeContrat =""
|
||||
let teletravail =""
|
||||
offre.location.gmap_address.address_components[0] ? jobVille = offre.location.gmap_address.address_components[0].long_name: jobVille=""
|
||||
offre.location.gmap_address.address_components[1] ? jobDpt = offre.location.gmap_address.address_components[1].long_name: jobDpt=""
|
||||
offre.location.gmap_address.address_components[3] ? jobPays = offre.location.gmap_address.address_components[3].long_name: jobPays=""
|
||||
offre.location && offre.location.gmap_address.address_components[0] ? jobVille = offre.location.gmap_address.address_components[0].long_name: jobVille=""
|
||||
offre.location && offre.location.gmap_address.address_components[1] ? jobDpt = offre.location.gmap_address.address_components[1].long_name: jobDpt=""
|
||||
offre.location && offre.location.gmap_address.address_components[3] ? jobPays = offre.location.gmap_address.address_components[3].long_name: jobPays=""
|
||||
// offre.location.gmap_address ? jobAdr = location.gmap_address.adr_address: jobAdr=""
|
||||
offre.extra.contract_type ? jobContract = offre.extra.contract_type : jobContract =""
|
||||
offre.extra.temps_type ? tempsType = offre.extra.temps_type : tempsType =""
|
||||
offre.extra && offre.extra.contract_type ? jobContract = offre.extra.contract_type : jobContract =""
|
||||
offre.extra && offre.extra.temps_type ? tempsType = offre.extra.temps_type : tempsType =""
|
||||
console.log("competences!!");
|
||||
//console.log(offre.competences);
|
||||
var competences = [];
|
||||
@@ -714,8 +712,8 @@ function OffreDetail(props) {
|
||||
if(offre.competences){
|
||||
for (var i = 0; i < offre.competences.length; i++) {
|
||||
//console.log(offre.competences[i]);
|
||||
console.log("competences "+i);
|
||||
console.log(offre.competences[i]);
|
||||
// console.log("competences "+i);
|
||||
// console.log(offre.competences[i]);
|
||||
|
||||
for (const property in offre.competences[i]) {
|
||||
console.log(` ${offre.competences[i][property]}`);
|
||||
@@ -727,7 +725,7 @@ function OffreDetail(props) {
|
||||
const listItems = competences.map((number) =>
|
||||
<li className={classes.listeCompetences}>{number}</li>
|
||||
);
|
||||
offre.extra.teletravail ? teletravail = offre.extra.teletravail : teletravail =""
|
||||
offre.extra && offre.extra.teletravail ? teletravail = offre.extra.teletravail : teletravail =""
|
||||
//gestion du type de temps de travail
|
||||
if(tempsType=="PART_TIME"){
|
||||
tempsTypeFr="Temps partiel"
|
||||
@@ -737,25 +735,27 @@ function OffreDetail(props) {
|
||||
|
||||
}
|
||||
//gestion du nombre d'heure
|
||||
if(offre.extra.nombre_heure && offre.extra.nombre_heure!=0 && tempsType=="PART_TIME"){
|
||||
if(offre.extra && offre.extra.nombre_heure && offre.extra.nombre_heure!=0 && tempsType=="PART_TIME"){
|
||||
nombreHeure=" ("+offre.extra.nombre_heure+" h/semaine)";
|
||||
}
|
||||
//gestion de la duree de contrat
|
||||
if(offre.extra.duree_contrat && offre.extra.duree_contrat!=0 && jobContract=="CDD"){
|
||||
if(offre.extra && offre.extra.duree_contrat && offre.extra.duree_contrat!=0 && jobContract=="CDD"){
|
||||
dureeContrat=" ("+offre.extra.duree_contrat+" mois)";;
|
||||
}
|
||||
//gestion du télétravail
|
||||
if(offre.extra.teletravail=='tele_occasionel'){
|
||||
teletravail='Télétravail occasionel';
|
||||
}else if(offre.extra.teletravail=='tele_partiel'){
|
||||
if(offre.extra && offre.extra.teletravail=='tele_occasionel'){
|
||||
teletravail='Télétravail occasionnel';
|
||||
}else if(offre.extra && offre.extra.teletravail=='tele_partiel'){
|
||||
teletravail='Télétravail partiel';
|
||||
}else if(offre.extra.teletravail=='tele_total'){
|
||||
}else if(offre.extra && offre.extra.teletravail=='tele_total'){
|
||||
teletravail='Télétravail total';
|
||||
}else{
|
||||
teletravail=null;
|
||||
}
|
||||
|
||||
const imgDefaultUrl = "/static/images/default/default_picture_company.svg"
|
||||
const imgDefaultUrl = "https://blog.talentstube.com/wp-content/uploads/2021/01/default_picture_company.jpg"
|
||||
{/* CONST MARQUE EMPLOYEUR */}
|
||||
const marqueEmployeur = offre.company.presentation_video && !offre.is_promoted && (
|
||||
const marqueEmployeur = offre.company && offre.company.presentation_video && !offre.is_promoted && (
|
||||
<div className={classes.container + ' ' + classes.discoverContainerCompany}>
|
||||
<section>
|
||||
|
||||
@@ -813,23 +813,19 @@ function OffreDetail(props) {
|
||||
{/* {offre.public_tag.map((label, index) => {
|
||||
descriptionSEO += label+", "
|
||||
})} */}
|
||||
{/* PARTIE REFERECEMENT GENERAL (FACEBOOK, GOOGLE, TWITTER LINKENDIN) */}
|
||||
<OgHead seo_title={titleSEO}
|
||||
seo_description={descriptionSEO}
|
||||
seo_url={socialShareUrl}
|
||||
image={imgUrlDesktop}
|
||||
></OgHead>
|
||||
{/* PARTIE REFERENCEMENT GENERAL (FACEBOOK, GOOGLE, TWITTER LINKENDIN) */}
|
||||
|
||||
{/* PARTIE REFERENCEMENT GOOGLE JOBS */}
|
||||
<JobPosting job_title={offre.title}
|
||||
job_description={offre.description}
|
||||
job_brand= {offre.company.brand_name && offre.company.brand_name}
|
||||
job_brand= {offre.company && offre.company.brand_name && offre.company.brand_name}
|
||||
job_brand_link= {entrepriseLink}
|
||||
job_title = {offre.title}
|
||||
job_location = {offre.location.gmap_address.formatted_address}
|
||||
job_location = {offre.location && offre.location.gmap_address.formatted_address}
|
||||
job_ville = {jobVille}
|
||||
job_dept = {jobDpt}
|
||||
job_pays = {jobPays}
|
||||
job_adr = {offre.location.gmap_address.formatted_address}
|
||||
job_adr = {offre.location && offre.location.gmap_address.formatted_address}
|
||||
job_date = {offre.published_at}
|
||||
job_date_fin = {offre.unpublished_at}
|
||||
job_temps_type= {tempsType}
|
||||
@@ -837,14 +833,14 @@ function OffreDetail(props) {
|
||||
></JobPosting>
|
||||
<Hidden smDown>
|
||||
{/* PARTIE DESKTOP */}
|
||||
<div style={{ width:'100%', justifyContent: 'center', display: 'flex', marginTop:'40px' }}>
|
||||
<div style={{ width:'100%', justifyContent: 'center', display: 'flex', marginTop:'100px' }}>
|
||||
<div style={{ width:'1200px' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'flex-start' }}>
|
||||
<div style={{width:'67%' }}>
|
||||
{offre.video && (
|
||||
|
||||
<Fragment>
|
||||
<Suspense fallback={renderLoader()}>
|
||||
|
||||
{/* <VideoVimeo {...isCandidature == 'true' ? 'classes={{ video: classes.videoOffre }}' : ''} videoId={Ar.last(_.split(offre.video.cdn_url, '/'))} autoplay='1' /> */}
|
||||
<div className={classes.contentContainer}>
|
||||
|
||||
@@ -853,7 +849,7 @@ function OffreDetail(props) {
|
||||
<img src={isWidthUp('sm', props.width) ? imgUrlDesktopOffre : imgUrlOffre} alt={offre.company.brand_name && offre.company.brand_name} />
|
||||
<div className={classes.containerPoste}>
|
||||
|
||||
<Typography variant="h1" component="h1" gutterBottom className={classes.poste}>
|
||||
<Typography variant="h4" component="h1" gutterBottom className={classes.poste}>
|
||||
{offre.title} <br></br>
|
||||
<span className={classes.posteEntreprise}>{offre.company.brand_name ? offre.company.brand_name : ""}</span>
|
||||
</Typography>
|
||||
@@ -866,7 +862,7 @@ function OffreDetail(props) {
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
</Suspense>
|
||||
|
||||
<div className={classes.container}>
|
||||
|
||||
|
||||
@@ -936,28 +932,28 @@ function OffreDetail(props) {
|
||||
</div>
|
||||
{/* PARTIE STICKY */}
|
||||
|
||||
<StickyBox style={{width:'33%', marginLeft:'40px', padding : '0 15px'}}>
|
||||
<StickyBox offsetTop={100} style={{width: '33%', marginLeft: '40px', padding: '0px 15px', position: 'sticky', top: '100px'}}>
|
||||
|
||||
<section className={classes.stickyContainer}>
|
||||
<a href={entrepriseLink} className={classes.lien}>
|
||||
<Avatar className={classes.logo} classes={{ img: classes.MuiAvatarImg }}
|
||||
src={logoUrl} alt={offre.company.brand_name && offre.company.brand_name} />
|
||||
src={logoUrl} alt={offre.company && offre.company.brand_name && offre.company.brand_name} />
|
||||
</a>
|
||||
<Typography variant="h4" component="h4" className={classes.stickyTitle}>
|
||||
{offre.title}
|
||||
</Typography>
|
||||
<a href={entrepriseLink} className={classes.lien}>
|
||||
<Typography variant="h5" component="h5" className={classes.stickyEntreprise}>
|
||||
{offre.company.brand_name && offre.company.brand_name}
|
||||
{offre.company && offre.company.brand_name && offre.company.brand_name}
|
||||
</Typography>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<section className={classes.IconTextContainerDesktop}>
|
||||
|
||||
<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="assignment" text={offre.extra.contract_type+dureeContrat} />
|
||||
<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="assignment" text={offre.extra && offre.extra.contract_type+dureeContrat} />
|
||||
{tempsTypeFr ?<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="watch_later" text={tempsTypeFr+nombreHeure } />:""}
|
||||
<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="location_on" text={offre.location.gmap_address.formatted_address} />
|
||||
<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="location_on" text={offre.location && offre.location.gmap_address.formatted_address} />
|
||||
{teletravail && (<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="home" text={teletravail} /> )}
|
||||
{offre.beneficiaire && (<IconTextInline classes={{ icon: classes.iconTextIcon, text: classes.iconTextText }} variant="business" text={offre.beneficiaire} /> )}
|
||||
</section>
|
||||
@@ -970,9 +966,9 @@ function OffreDetail(props) {
|
||||
<Button
|
||||
cyp="ButtonApply"
|
||||
variant="contained"
|
||||
className={classes.button}
|
||||
|
||||
>Postuler </Button>
|
||||
className={classes.button}>
|
||||
Postuler
|
||||
</Button>
|
||||
</a>
|
||||
|
||||
|
||||
@@ -987,7 +983,7 @@ function OffreDetail(props) {
|
||||
{offre.is_promoted && (
|
||||
<section className={classes.pourvu}>
|
||||
<Button variant="contained" disabled className={classes.pourvuButton}>
|
||||
Pourvue
|
||||
Offre pourvue
|
||||
</Button>
|
||||
</section>
|
||||
// <Chip label="Pourvue" className={classes.chip} />
|
||||
@@ -1000,16 +996,16 @@ function OffreDetail(props) {
|
||||
</Hidden>
|
||||
{/* PARTIE MOBILE */}
|
||||
<Hidden mdUp>
|
||||
<section className={classes.contentContainer}>
|
||||
<section className={classes.contentContainerMobile}>
|
||||
|
||||
<Link href={`/Player?id=/Offre/${offre.id}-${_.kebabCase(offre.title)}&videoId=${Ar.last(_.split(offre.video.cdn_url, '/'))}&type=Offre`} >
|
||||
<Link href={`/Player?id=/Offre/${offre.id}-${_.kebabCase(offre.title)}&videoId=${Ar.last(_.split(offre.video && offre.video.cdn_url, '/'))}&type=Offre`} >
|
||||
<div className={classes.discoverContainerImage}>
|
||||
<img src={isWidthUp('xs', props.width) ? imgUrlDesktopOffre : imgUrlOffre} alt={offre.company.brand_name && offre.company.brand_name} />
|
||||
<div className={classes.containerPoste}>
|
||||
<img src={isWidthUp('xs', props.width) ? imgUrlDesktopOffre : imgUrlOffre} alt={offre.company && offre.company.brand_name && offre.company.brand_name} />
|
||||
<div >
|
||||
|
||||
<Typography variant="h1" component="h1" gutterBottom className={classes.posteMobile}>
|
||||
{offre.title} <br></br>
|
||||
<span className={classes.posteEntreprise}>{offre.company.brand_name ? offre.company.brand_name : ""}</span>
|
||||
<span className={classes.posteEntreprise}>{offre.company && offre.company.brand_name ? offre.company.brand_name : ""}</span>
|
||||
</Typography>
|
||||
|
||||
</div>
|
||||
@@ -1021,7 +1017,7 @@ function OffreDetail(props) {
|
||||
</Link>
|
||||
</section>
|
||||
<section className={classes.headerContainerMobile}>
|
||||
<div >
|
||||
<div className={classes.infoContainerMobile}>
|
||||
|
||||
<a href={entrepriseLink} className={classes.lien}>
|
||||
<Avatar className={classes.logoMobile} classes={{ img: classes.MuiAvatarImg }}
|
||||
@@ -1030,19 +1026,20 @@ function OffreDetail(props) {
|
||||
|
||||
</div>
|
||||
<div className={classes.infoContainerMobile}>
|
||||
<Typography gutterBottom variant="h5" component="h1" className={classes.title}>
|
||||
<Typography gutterBottom variant="h4" component="h4" className={classes.title}>
|
||||
{offre.title}
|
||||
</Typography>
|
||||
<a href={entrepriseLink} className={classes.lien}>
|
||||
<Typography gutterBottom variant="subtitle1" className={classes.text}>
|
||||
{offre.company.brand_name && offre.company.brand_name}
|
||||
{offre.company && offre.company.brand_name && offre.company.brand_name}
|
||||
</Typography>
|
||||
</a>
|
||||
{/* ville */}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<section className={classes.IconTextContainerMobile}>
|
||||
{offre.is_promoted && (<Chip label="Pourvue" className={classes.chip} />)}
|
||||
{offre.is_promoted && (<Chip label="Offre pourvue" className={classes.chip} />)}
|
||||
{offre.extra && (<IconText classes={{ root: classes.iconText, icon: classes.iconTextIcon, text: classes.iconTextText }} variant="assignment" text={offre.extra.contract_type+dureeContrat} />)}
|
||||
{tempsTypeFr && (<IconText classes={{ root: classes.iconText, icon: classes.iconTextIcon, text: classes.iconTextText }} variant="watch_later" text={tempsTypeFr+nombreHeure} />)}
|
||||
{offre.location && offre.location.gmap_address && (<IconText classes={{ root: classes.iconText, icon: classes.iconTextIcon, text: classes.iconTextText }} variant="location_on" text={offre.location.gmap_address.formatted_address} />)}
|
||||
@@ -1057,7 +1054,7 @@ function OffreDetail(props) {
|
||||
</section>
|
||||
<section>
|
||||
{/* PARTIE MARQUE EMPLOYEUR MOBILE*/}
|
||||
{offre.company.presentation_video && !offre.is_promoted && (
|
||||
{offre.company && offre.company.presentation_video && !offre.is_promoted && (
|
||||
<div className={classes.container + ' ' + classes.discoverContainerCompany}>
|
||||
<section>
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ class OffreRowComponent extends React.Component {
|
||||
</Typography>
|
||||
<div>
|
||||
{rowData.is_promoted && (
|
||||
<Chip label="Pourvue" className={classes.chip} />
|
||||
<Chip label="Offre pourvue" className={classes.chip} />
|
||||
)}
|
||||
|
||||
{!rowData.is_promoted && (
|
||||
|
||||
@@ -42,7 +42,7 @@ const videoJsOptions = {
|
||||
PictureInPictureToggle:false,
|
||||
PlayToggle:false
|
||||
},
|
||||
poster: '/statique/images/webrtc/module-video-talents-tube.jpg',
|
||||
poster: '/statique/images/webrtc/module-video-talents-tube.svg',
|
||||
plugins: {
|
||||
/*
|
||||
// wavesurfer section is only needed when recording audio-only
|
||||
|
||||
@@ -10,6 +10,7 @@ import InputAdornment from '@material-ui/core/InputAdornment';
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
import { registerUserRequest, subscribeToNewsletterRequest } from "../../actions/user"
|
||||
import SocialButtonsAuth from '../atoms/SocialButtonsAuth';
|
||||
import Snack from '../atoms/snack'
|
||||
|
||||
const styles = theme => ({
|
||||
container: {
|
||||
@@ -121,7 +122,8 @@ class Register extends React.Component {
|
||||
checkCGU:null
|
||||
},
|
||||
loading: false,
|
||||
showPassword: false
|
||||
showPassword: false,
|
||||
passwordValid : false
|
||||
}
|
||||
|
||||
validate = data => {
|
||||
@@ -132,6 +134,10 @@ class Register extends React.Component {
|
||||
if (!!!data.lastname) errors.lastname = "Requis";
|
||||
if (!data.checkCGU) errors.checkCGU = "Requis";
|
||||
|
||||
if(data.password.length <8){
|
||||
errors.password = "Too short";
|
||||
}
|
||||
|
||||
return errors;
|
||||
};
|
||||
|
||||
@@ -143,16 +149,13 @@ class Register extends React.Component {
|
||||
|
||||
onRegister = e => {
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
const errors = this.validate(this.state.data);
|
||||
|
||||
let errors = this.validate(this.state.data);
|
||||
this.setState({ errors: errors });
|
||||
console.log('adId')
|
||||
console.log(this.state.data)
|
||||
// console.log('adId')
|
||||
// console.log(this.state.data)
|
||||
if (Object.keys(errors).length === 0) {
|
||||
|
||||
this.props.registerUserRequest(this.state.data)
|
||||
console.log(this.props.registerUserRequest(this.state.data))
|
||||
|
||||
if (this.state.data.checkNewsletter)
|
||||
this.props.subscribeToNewsletterRequest({ email: this.state.data.email })
|
||||
@@ -166,10 +169,12 @@ class Register extends React.Component {
|
||||
loading: nextProps.loading
|
||||
})
|
||||
}
|
||||
onChange = e =>
|
||||
onChange = e => {
|
||||
|
||||
this.setState({
|
||||
data: { ...this.state.data, [e.target.name]: e.target.value }
|
||||
});
|
||||
}
|
||||
handleCheckBoxChange = name => event => {
|
||||
this.setState({ data: { ...this.state.data, [name]: event.target.checked } });
|
||||
};
|
||||
@@ -183,7 +188,7 @@ class Register extends React.Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
const { classes, erreurs } = this.props;
|
||||
const { data, errors } = this.state;
|
||||
|
||||
return (
|
||||
@@ -192,6 +197,7 @@ class Register extends React.Component {
|
||||
<form className={classes.form}>
|
||||
|
||||
<TextField
|
||||
className={classes.champ}
|
||||
value={data.lastname}
|
||||
onChange={this.onChange}
|
||||
id="nom"
|
||||
@@ -201,6 +207,7 @@ class Register extends React.Component {
|
||||
variant="outlined"
|
||||
required
|
||||
error={!!errors.lastname}
|
||||
helperText={!!errors.lastname && "Veuillez saisir votre nom."}
|
||||
/>
|
||||
<TextField
|
||||
value={data.firstname}
|
||||
@@ -212,6 +219,7 @@ class Register extends React.Component {
|
||||
variant="outlined"
|
||||
required
|
||||
error={!!errors.firstname}
|
||||
helperText={!!errors.firstname && "Veuillez saisir votre prénom."}
|
||||
/>
|
||||
|
||||
<TextField
|
||||
@@ -224,14 +232,15 @@ class Register extends React.Component {
|
||||
type="email"
|
||||
variant="outlined"
|
||||
required
|
||||
error={!!errors.email}
|
||||
error={!!errors.email || !!erreurs}
|
||||
autoComplete="username email"
|
||||
helperText={!!errors.email ? "Saisissez une adresse e-mail valide." : !!erreurs && erreurs}
|
||||
/>
|
||||
|
||||
|
||||
<TextField
|
||||
className={clsx(classes.margin, classes.textField)}
|
||||
label="Password"
|
||||
label="Mot de passe"
|
||||
name="password"
|
||||
id="adornment-password"
|
||||
variant="outlined"
|
||||
@@ -240,6 +249,7 @@ class Register extends React.Component {
|
||||
value={this.state.password}
|
||||
onChange={this.onChange}
|
||||
error={!!errors.password}
|
||||
helperText={!!errors.password && "Votre mot de passe doit contenir au minimum 8 caractères."}
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position="end">
|
||||
@@ -283,6 +293,7 @@ class Register extends React.Component {
|
||||
label="Je déclare avoir pris connaissance et accepte les termes et les CGU *"
|
||||
required
|
||||
/>
|
||||
<Link href={`/Cgu`} >Lien vers les CGU</Link>
|
||||
<Button type="submit" variant="contained" className={classes.button + ' ' + classes.buttonImportant + ' cypButtonRegister'} onClick={this.onRegister}>
|
||||
S'inscrire
|
||||
</Button>
|
||||
@@ -310,7 +321,12 @@ class Register extends React.Component {
|
||||
</Link>
|
||||
</Typography>
|
||||
</div>
|
||||
<Snack name= 'snackWarning'
|
||||
variant= 'warning'
|
||||
message={errors.message}
|
||||
/>
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,16 +55,24 @@ const useStyles = makeStyles(theme => ({
|
||||
}
|
||||
},
|
||||
FacebookIconMobile: {
|
||||
color: theme.palette.social.facebook,
|
||||
color: theme.palette.social.facebook,
|
||||
paddingRight:'0px',
|
||||
paddingLeft:'3px'
|
||||
},
|
||||
TwitterIconMobile: {
|
||||
color: theme.palette.social.twitter,
|
||||
paddingRight:'3px' ,
|
||||
paddingLeft:'3px'
|
||||
},
|
||||
LinkedinIconMobile: {
|
||||
color: theme.palette.social.linkedin,
|
||||
paddingRight:'3px',
|
||||
paddingLeft:'3px'
|
||||
},
|
||||
MailIconMobile: {
|
||||
color: theme.palette.social.mail,
|
||||
paddingRight:'3px' ,
|
||||
paddingLeft:'3px'
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
import React, { Component, useEffect } from 'react'
|
||||
import { withStyles } from '@material-ui/core/styles'
|
||||
import Router from 'next/router';
|
||||
import RootContainer from '../atoms/RootContainer'
|
||||
import ButtonBase from "@material-ui/core/ButtonBase";
|
||||
import ArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { Button, Hidden } from '@material-ui/core';
|
||||
import Dialog from '@material-ui/core/Dialog';
|
||||
import DialogActions from '@material-ui/core/DialogActions';
|
||||
import DialogContent from '@material-ui/core/DialogContent';
|
||||
import DialogContentText from '@material-ui/core/DialogContentText';
|
||||
import DialogTitle from '@material-ui/core/DialogTitle';
|
||||
|
||||
|
||||
const styles = theme => ({
|
||||
inner: {
|
||||
@@ -54,13 +62,70 @@ const styles = theme => ({
|
||||
position: 'absolute',
|
||||
left: theme.spacing(1),
|
||||
},
|
||||
retour:{
|
||||
fontFamily: 'Roboto',
|
||||
color: '#1E2327',
|
||||
fontSize: '0.8rem',
|
||||
fontWeight: '500',
|
||||
|
||||
},
|
||||
popup:{
|
||||
fontFamily: 'Roboto',
|
||||
color: '#1E2327',
|
||||
fontSize: '0.8rem',
|
||||
fontWeight: '500',
|
||||
}
|
||||
});
|
||||
|
||||
function LayoutBack(props) {
|
||||
class LayoutBack extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
}
|
||||
|
||||
const { classes, height} = props;
|
||||
state = {
|
||||
open: false,
|
||||
|
||||
};
|
||||
openDialog() {
|
||||
this.setState({ open: true });
|
||||
}
|
||||
|
||||
closeDialog() {
|
||||
this.setState({ open: false });
|
||||
}
|
||||
|
||||
refreshDialog() {
|
||||
this.setState({ open: false });
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Add a listener to prevent browser page refresh
|
||||
componentWillMount() {
|
||||
if (typeof window !== "undefined") {
|
||||
window.onbeforeunload = (e) => {
|
||||
console.log('Stop this');
|
||||
// this.openDialog();
|
||||
e.preventDefault()
|
||||
e.returnValue = '';
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Clear listener
|
||||
componentWillUnmount() {
|
||||
window.onbeforeunload = null
|
||||
}
|
||||
|
||||
|
||||
|
||||
render() {
|
||||
const { classes, height} = this.props;
|
||||
|
||||
//height fixed = height 100vh
|
||||
var openStudio = this.props.openStudio ? 1 : 0;
|
||||
const content = (height == 'fixed') ? classes.content+' '+classes.contentFixed : classes.content
|
||||
return (
|
||||
<RootContainer align='center'>
|
||||
@@ -70,24 +135,50 @@ function LayoutBack(props) {
|
||||
focusRipple
|
||||
className={classes.back}
|
||||
focusVisibleClassName={classes.focusVisible}
|
||||
onClick={() => Router.back()}>
|
||||
|
||||
>
|
||||
<ArrowLeft color="primary" classes={{ root: classes.icon }}></ArrowLeft>
|
||||
{/* <Hidden mdUp className={classes.retour}></Hidden> */}
|
||||
<Hidden smDown className={classes.retour}>
|
||||
<div onClick={this.props.step==1 || openStudio==1 ? this.openDialog.bind(this) : () => Router.back()}>Retour</div>
|
||||
|
||||
</Hidden>
|
||||
|
||||
<Dialog open={this.state.open} onEnter={console.log("Hey.")}>
|
||||
<DialogTitle className={classes.popup}> Souhaitez-vous poursuivre votre candidature ?</DialogTitle>
|
||||
<DialogContent className={classes.popup}> Si vous cliquez sur le bouton Supprimer, tous les éléments associés à votre candidature (vidéo, CV…) seront définitivement supprimés. </DialogContent>
|
||||
<DialogActions className={classes.popup}>
|
||||
|
||||
|
||||
<Button onClick={this.refreshDialog.bind(this)} >
|
||||
Supprimer
|
||||
</Button>
|
||||
<Button onClick={this.closeDialog.bind(this)} autoFocus>
|
||||
Poursuivre
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
</ButtonBase>
|
||||
<Typography
|
||||
component="h1"
|
||||
align="center"
|
||||
className={classes.title}
|
||||
>
|
||||
{props.text}
|
||||
{this.props.text}
|
||||
</Typography>
|
||||
</div>
|
||||
</div>
|
||||
<div id="C" className={content}>
|
||||
{props.children}
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
||||
</RootContainer>
|
||||
)
|
||||
}
|
||||
}
|
||||
LayoutBack.defaultProps = {
|
||||
step: 0,
|
||||
openStudio:false
|
||||
}
|
||||
|
||||
export default withStyles(styles)(LayoutBack)
|
||||
@@ -6,8 +6,9 @@ import RootContainer from '../atoms/RootContainer'
|
||||
import ButtonBase from "@material-ui/core/ButtonBase";
|
||||
import ArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
|
||||
import HideOnScroll from '../atoms/CollapsibleBack';
|
||||
import SocialShare from '../organisms/SocialShare'
|
||||
import withWidth, { isWidthUp } from '@material-ui/core/withWidth'
|
||||
import Header from '../organisms/Header'
|
||||
import HeaderEntreprise from '../organisms/HeaderPersonnalise'
|
||||
import {AppBar,CssBaseline,Container,Toolbar,IconButton,Typography} from "@material-ui/core";
|
||||
import Hidden from '@material-ui/core/Hidden';
|
||||
import Link from 'next/link'
|
||||
@@ -71,6 +72,7 @@ const styles = theme => ({
|
||||
padding: theme.spacing(1.2, 2),
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.important,
|
||||
textDecoration:'none',
|
||||
},
|
||||
voirOffre: {
|
||||
textTransform: 'inherit',
|
||||
@@ -79,62 +81,56 @@ const styles = theme => ({
|
||||
padding: theme.spacing(1.2, 2),
|
||||
color: '#BBBCBD',
|
||||
backgroundColor: '#F3F3F4',
|
||||
|
||||
},
|
||||
lien:{
|
||||
textDecoration:'none',
|
||||
color:'#fff'
|
||||
},
|
||||
})
|
||||
|
||||
function LayoutCompany(props) {
|
||||
|
||||
const { classes, companyId } = props;
|
||||
|
||||
const { classes, companyId, companyLibelle } = props;
|
||||
const socialShareUrl = typeof window !== 'undefined' ? window.location : publicRuntimeConfig.frontServerUrl + `/Entreprise/${companyId}-${_.kebabCase(companyLibelle)}`;
|
||||
return (
|
||||
<React.Fragment>
|
||||
{isWidthUp('sm', props.width) ?
|
||||
(<Header />)
|
||||
:
|
||||
(<HideOnScroll threshold={50}>
|
||||
<AppBar className={classes.appBar}>
|
||||
<Toolbar>
|
||||
<ButtonBase name='back'
|
||||
focusRipple
|
||||
className={classes.back}
|
||||
focusVisibleClassName={classes.focusVisible}
|
||||
onClick={() => Router.back()}>
|
||||
<ArrowLeft classes={{ root: classes.icon }}></ArrowLeft>
|
||||
</ButtonBase>
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
</HideOnScroll>)
|
||||
}
|
||||
|
||||
<Container classes={{ root: classes.RootContainer }}>
|
||||
|
||||
<RootContainer>
|
||||
<HeaderEntreprise retour="Entreprises" menu="Entreprises"/>
|
||||
<div id="C" className={classes.content}>
|
||||
{props.children}
|
||||
</div>
|
||||
|
||||
<Hidden mdUp>
|
||||
<div id="F" className={classes.foot}>
|
||||
<Link href="#discover" >
|
||||
<Button
|
||||
variant="contained"
|
||||
className={classes.button + ' cypButtonApply'}
|
||||
classes={{ root: classes.rootButton}}
|
||||
|
||||
>
|
||||
<a href={`/Reponse?companyId=${companyId}`} className={classes.lien }>Postuler</a>
|
||||
</Button>
|
||||
<SocialShare url={socialShareUrl} />
|
||||
{/* <Link href="#discover" >
|
||||
<Button
|
||||
variant="contained"
|
||||
className={classes.voirOffre + ' cypButtonApply'}
|
||||
>Voir les offres</Button>
|
||||
|
||||
</Link>
|
||||
<Button
|
||||
</Link> */}
|
||||
{/* <a
|
||||
href={`/Reponse?companyId=${companyId}`}
|
||||
variant="contained"
|
||||
className={classes.button}
|
||||
classes={{ root: classes.rootButton }}
|
||||
onClick={() => Router.push(`/Reponse?companyId=${companyId}`)}
|
||||
// onClick={() => Router.push(`/Reponse?companyId=${companyId}`)}
|
||||
>
|
||||
Candidature spontanée</Button>
|
||||
Candidature spontanée</a> */}
|
||||
</div>
|
||||
</Hidden>
|
||||
|
||||
</RootContainer>
|
||||
</Container>
|
||||
</React.Fragment>
|
||||
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import Router from 'next/router';
|
||||
import RootContainer from '../atoms/RootContainer'
|
||||
import ButtonBase from "@material-ui/core/ButtonBase";
|
||||
import ArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
|
||||
import Header from '../organisms/HeaderOffre'
|
||||
import HeaderPersonnalise from '../organisms/HeaderPersonnalise'
|
||||
import SocialShare from '../organisms/SocialShare'
|
||||
import withWidth, { isWidthUp } from '@material-ui/core/withWidth'
|
||||
import Hidden from '@material-ui/core/Hidden';
|
||||
@@ -62,8 +62,8 @@ const styles = theme => ({
|
||||
},
|
||||
button: {
|
||||
textTransform: 'inherit',
|
||||
marginLeft: theme.spacing(8),
|
||||
marginRight: theme.spacing(8),
|
||||
marginLeft: theme.spacing(4.5),
|
||||
marginRight: theme.spacing(4.5),
|
||||
padding: theme.spacing(1.2, 2),
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.important,
|
||||
@@ -78,28 +78,21 @@ const styles = theme => ({
|
||||
|
||||
},
|
||||
pourvuButton:{
|
||||
padding :'10px'
|
||||
padding :'10px',
|
||||
textTransform: 'inherit',
|
||||
},
|
||||
})
|
||||
|
||||
function LayoutOffre(props) {
|
||||
|
||||
const { classes, offreId, offre, isProvided, socialShareUrl } = props;
|
||||
const { classes, offreId, offre, isProvided } = props;
|
||||
const contentClass = (!isProvided) ? classes.contentDefault : classes.contentProvided
|
||||
|
||||
const socialShareUrl = typeof window !== 'undefined' ? window.location : publicRuntimeConfig.frontServerUrl + `/Offre/${offreId}-${_.kebabCase(offre.title)}`;
|
||||
return (
|
||||
<RootContainer>
|
||||
{isWidthUp('xs', props.width) ?
|
||||
(<Header />)
|
||||
:
|
||||
(<ButtonBase name='back'
|
||||
focusRipple
|
||||
className={classes.back}
|
||||
focusVisibleClassName={classes.focusVisible}
|
||||
onClick={() => Router.back()}>
|
||||
<ArrowLeft classes={{ root: classes.icon }}></ArrowLeft>
|
||||
</ButtonBase>)
|
||||
}
|
||||
|
||||
<HeaderPersonnalise retour="Offres" menu="Offres d'emploi"/>
|
||||
|
||||
<div id="C" className={contentClass}>
|
||||
{props.children}
|
||||
</div>
|
||||
@@ -137,7 +130,7 @@ function LayoutOffre(props) {
|
||||
|
||||
|
||||
<Button variant="contained" disabled className={classes.pourvuButton}>
|
||||
Pourvue
|
||||
Offre pourvue
|
||||
</Button>
|
||||
{/* <div className={classes.grow} />
|
||||
</div> */}
|
||||
|
||||
@@ -9,11 +9,24 @@ const styles = theme => ({
|
||||
alignItems: 'center',
|
||||
textAlign: 'center',
|
||||
justifyContent: 'center',
|
||||
fontFamily: 'Dosis',
|
||||
fontFamily: '"Roboto", "Helvetica", "Arial", "sans-serif"',
|
||||
fontWeight: '500',
|
||||
fontSize: '1em',
|
||||
padding: theme.spacing(6,0),
|
||||
color: theme.palette.primary.main,
|
||||
margin:'50px 0',
|
||||
},
|
||||
loaderGras:{
|
||||
fontFamily: '"Roboto", "Helvetica", "Arial", "sans-serif"',
|
||||
paddingTop:'10px',
|
||||
fontSize: '1.875em',
|
||||
fontWeight: '500',
|
||||
marginBottom:'30px',
|
||||
|
||||
},
|
||||
loaderSecondaire:{
|
||||
fontFamily: '"Roboto", "Helvetica", "Arial", "sans-serif"',
|
||||
fontSize: '1em',
|
||||
fontWeight: '300',
|
||||
},
|
||||
root: {
|
||||
top:"200px",
|
||||
@@ -26,13 +39,12 @@ const styles = theme => ({
|
||||
|
||||
class LoaderVideo extends React.Component {
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
const { classes, textePrincipal, texteSecondaire } = this.props;
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
<div className={classes.loader + ' ' + 'alert alert-info'}><CircularProgress color="primary" />Veuillez ne pas quitter la page.<br/> Le temps de chargement peut varier de quelques secondes à plusieurs minutes en fonction de la qualité de votre connexion internet.<br/></div>
|
||||
<div className={classes.loader }><CircularProgress color="primary" /><span className={classes.loaderGras }>{textePrincipal}</span><br/><span className={classes.loaderSecondaire }> {texteSecondaire}</span><br/></div>
|
||||
<div >
|
||||
<LinearProgress />
|
||||
<LinearProgress color="secondary" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -129,6 +129,9 @@ export default {
|
||||
withCredentials: true
|
||||
}).then(res => res)
|
||||
},
|
||||
|
||||
},
|
||||
cv:{
|
||||
uploadMediaCv: (payload) => {
|
||||
return axios.post("/api/mediaCv", payload, {
|
||||
headers: {
|
||||
@@ -142,12 +145,32 @@ export default {
|
||||
countAdView: id => {
|
||||
if (!!localStorage.ttJWT)
|
||||
setAuthorizationHeader(localStorage.ttJWT)
|
||||
axios.get(`api/adAjaxRecStat/${id}`)
|
||||
let continuerAds = true;
|
||||
|
||||
if (sessionStorage.getItem("ads"+id)){
|
||||
continuerAds=false;
|
||||
}
|
||||
|
||||
if( continuerAds){
|
||||
axios.get(`api/adAjaxRecStat/${id}`)
|
||||
sessionStorage.setItem('ads'+id, id);
|
||||
}
|
||||
},
|
||||
countCompanyView: id => {
|
||||
if (!!localStorage.ttJWT)
|
||||
setAuthorizationHeader(localStorage.ttJWT)
|
||||
axios.get(`api/companyAjaxRecStat/${id}`)
|
||||
if (!!localStorage.ttJWT){
|
||||
setAuthorizationHeader(localStorage.ttJWT);
|
||||
}
|
||||
|
||||
let continuer = true;
|
||||
|
||||
if (sessionStorage.getItem("companies"+id)){
|
||||
continuer=false;
|
||||
}
|
||||
|
||||
if( continuer){
|
||||
axios.get(`api/companyAjaxRecStat/${id}`);
|
||||
sessionStorage.setItem('companies'+id, id);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ module.exports = withPlugins(
|
||||
blogUrl: 'https://blog.talentstube.com',
|
||||
frontServerUrl: 'https://pp.app.talentstube.com/',
|
||||
cvThequeUrl: 'https://recruteur.talentstube.com',
|
||||
version : 'V2.3.4',
|
||||
adListDefaultUrl: '/statique/images/default/default_picture_company.svg',
|
||||
version : 'V2.5.3',
|
||||
adListDefaultUrl: '/statique/images/default/default_picture_company.jpg',
|
||||
cachedMediaUrl: '/media/cache/profile_thumb/uploads/img/',
|
||||
postedContentUrl: '/uploads/img/',
|
||||
postedContentCv: '/uploads/cv/',
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
"react-ad-block-detect": "^1.0.1",
|
||||
"react-autosuggest": "^10.0.2",
|
||||
"react-dom": "^16.9.0",
|
||||
"react-facebook-login": "^4.1.1",
|
||||
"react-ga": "^2.5.7",
|
||||
"react-google-recaptcha": "^2.0.1",
|
||||
"react-html-parser": "^2.0.2",
|
||||
@@ -60,6 +61,7 @@
|
||||
"react-redux": "^7.0.3",
|
||||
"react-redux-loading-bar": "^5.0.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-select": "^3.1.1",
|
||||
"react-sticky-box": "^0.9.3",
|
||||
"react-swipeable-views": "^0.13.3",
|
||||
"reactstrap": "^6.4.0",
|
||||
|
||||
@@ -25,8 +25,8 @@ const styles = theme => ({
|
||||
bottom: 0,
|
||||
},
|
||||
title: {
|
||||
fontFamily: 'Dosis',
|
||||
fontSize: '1.5em',
|
||||
fontFamily: 'Roboto',
|
||||
fontSize: '1.625em',
|
||||
fontWeight: '600',
|
||||
padding: theme.spacing(3, 0),
|
||||
},
|
||||
@@ -47,6 +47,24 @@ const styles = theme => ({
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.important,
|
||||
},
|
||||
iconButton:{
|
||||
marginTop: "50px",
|
||||
|
||||
[theme.breakpoints.down('md')]: {
|
||||
marginTop: "50px",
|
||||
|
||||
},
|
||||
},
|
||||
texteEtape:{
|
||||
fontSize: '1em',
|
||||
fontWeight: '300',
|
||||
},
|
||||
etape:{
|
||||
fontSize: '1em',
|
||||
fontWeight: '500',
|
||||
color:'#1689FB',
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -69,7 +87,7 @@ class ConfirmAccount extends Component {
|
||||
const { classes } = this.props
|
||||
const { loading } = this.state
|
||||
return (
|
||||
<LayoutBack text="Validation" height="fixed">
|
||||
<LayoutBack text="Inscription" height="fixed">
|
||||
<Head>
|
||||
<title key="title">Confirmation de compte</title>
|
||||
<meta key="robots" name="robots" content="noindex, nofollow"></meta>
|
||||
@@ -80,26 +98,45 @@ class ConfirmAccount extends Component {
|
||||
)}
|
||||
{!loading && (
|
||||
<Fragment>
|
||||
<img
|
||||
alt="talents-tube"
|
||||
src='/statique/images/inscription/validation-plateforme-recrutement-video.svg'
|
||||
className={classes.iconButton}/>
|
||||
<Typography gutterBottom align="center" className={classes.title}>
|
||||
e-mail validé
|
||||
Bienvenue sur Talents Tube
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Votre email a bien été validé.
|
||||
<Typography gutterBottom align="center" className={classes.etape}>
|
||||
Étape 1.
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" className={classes.texteEtape}>
|
||||
Découvrez les entreprises et les offres d’emploi en vidéo.
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" className={classes.etape}>
|
||||
Étape 2.
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" className={classes.texteEtape}>
|
||||
Postulez en vidéo.
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" className={classes.etape}>
|
||||
Étape 3.
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center" className={classes.texteEtape}>
|
||||
Gérez vos candidatures depuis votre compte Talent.
|
||||
</Typography>
|
||||
|
||||
<Typography gutterBottom align="center" className={classes.text}>
|
||||
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Vous pouvez maintenant vous connecter.
|
||||
<Button
|
||||
variant="contained"
|
||||
className={classes.button}
|
||||
classes={{ root: classes.rootButton }}
|
||||
onClick={() => Router.push('/Login')}
|
||||
>
|
||||
Connexion
|
||||
Se connecter
|
||||
</Button>
|
||||
|
||||
</Typography>
|
||||
<section className={classes.bottomContainer}>
|
||||
{/* <section className={classes.bottomContainer}>
|
||||
<Button
|
||||
variant="contained"
|
||||
className={classes.button}
|
||||
@@ -108,7 +145,7 @@ class ConfirmAccount extends Component {
|
||||
>
|
||||
Connexion
|
||||
</Button>
|
||||
</section>
|
||||
</section> */}
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
@@ -127,8 +164,8 @@ function mapStateToProps(state, ownProps) {
|
||||
}
|
||||
|
||||
ConfirmAccount.getInitialProps = function (context) {
|
||||
const { token, email, url } = context.query
|
||||
localStorage.setItem('loginRedirect', url)
|
||||
const { token, email } = context.query
|
||||
//localStorage.setItem('loginRedirect', url)
|
||||
context.store.dispatch(requestConfirmationAccountRequest({ 'confirmationToken': token, 'email': email }))
|
||||
return email;
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class Entreprises extends React.Component {
|
||||
const { publicRuntimeConfig } = getConfig();
|
||||
const socialShareUrl = typeof window !== 'undefined' ? window.location
|
||||
: publicRuntimeConfig.frontServerUrl + `/Entreprises`;
|
||||
const DefaultUrl = publicRuntimeConfig.symphonyUrl + "/img/default_picture_svg"
|
||||
const DefaultUrl = publicRuntimeConfig.symphonyUrl + "img/default_picture_svg"
|
||||
const imgUrl = DefaultUrl ;
|
||||
return (
|
||||
<LayoutGrid backLink="/">
|
||||
|
||||
@@ -146,12 +146,21 @@ class LoginPage extends React.Component {
|
||||
email: "",
|
||||
password: ""
|
||||
},
|
||||
errors: {},
|
||||
errors: { message: "" },
|
||||
loading: false,
|
||||
tabIndex: 0,
|
||||
openSnack: false
|
||||
openSnack: false,
|
||||
success: false,
|
||||
};
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
|
||||
this.setState({
|
||||
errors: !!!nextProps.errors ? { errors: { message: "" } } : nextProps.errors,
|
||||
loading: nextProps.loading,
|
||||
success: nextProps.success,
|
||||
openSnack: !_.isEmpty(nextProps.errors) || nextProps.success
|
||||
})
|
||||
}
|
||||
static getInitialProps({ query }) {
|
||||
const { error, inscription } = query
|
||||
let err = null;
|
||||
@@ -160,9 +169,10 @@ class LoginPage extends React.Component {
|
||||
return { errors: err, openSnack: !!error, inscription };
|
||||
}
|
||||
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
|
||||
}
|
||||
handleClose = e =>
|
||||
this.setState({
|
||||
openSnack: false
|
||||
});
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
@@ -206,12 +216,12 @@ class LoginPage extends React.Component {
|
||||
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
const { data, errors, loading, openSnack } = this.state;
|
||||
const { data,success, errors, loading, openSnack } = this.state;
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Head>
|
||||
<title key="title">Login</title>
|
||||
<title key="title">Inscription</title>
|
||||
<meta key="robots" name="robots" content="noindex, follow"></meta>
|
||||
</Head>
|
||||
<div className={classes.container}>
|
||||
@@ -227,14 +237,17 @@ class LoginPage extends React.Component {
|
||||
|
||||
|
||||
|
||||
<Register linkedInAuth={this.linkedInAuth} facebookAuth={this.facebookAuth} />
|
||||
<Register linkedInAuth={this.linkedInAuth} facebookAuth={this.facebookAuth} erreurs={errors.message} />
|
||||
|
||||
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
<Snack variant="error" message={!!!_.isEmpty(this.state.errors) && this.state.errors.message}
|
||||
openSnack={this.state.openSnack} onClose={this.handleClose} />
|
||||
{/* <Snack name={success ? 'snackSuccess' : 'snackWarning'}
|
||||
variant={success ? 'success' : 'warning'}
|
||||
message={success ? 'Inscription validée.' : errors.message}
|
||||
openSnack={openSnack}
|
||||
onClose={this.handleClose} /> */}
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import jssPluginPropsSort from 'jss-plugin-props-sort';
|
||||
import Head from 'next/head'
|
||||
import ReCAPTCHA from "react-google-recaptcha";
|
||||
import getConfig from 'next/config'
|
||||
import FacebookLogin from 'react-facebook-login';
|
||||
const {publicRuntimeConfig} = getConfig()
|
||||
|
||||
function TabContainer({ children, dir }) {
|
||||
@@ -230,11 +231,14 @@ class LoginPage extends React.Component {
|
||||
handleClose = (event, reason) => {
|
||||
this.setState({ openSnack: false });
|
||||
}
|
||||
responseFacebook = (response) => {
|
||||
console.log(response);
|
||||
}
|
||||
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
const { data, errors, loading, openSnack } = this.state;
|
||||
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Head>
|
||||
@@ -280,7 +284,7 @@ class LoginPage extends React.Component {
|
||||
onChange={this.onChange}
|
||||
autoComplete="username"
|
||||
variant="outlined"
|
||||
error={this.state.errors && !!this.state.errors.email}
|
||||
error={!!!_.isEmpty(this.state.errors) || (this.state.errors && !!this.state.errors.email)}
|
||||
className={'cypInputEmail'}
|
||||
required
|
||||
|
||||
@@ -298,11 +302,19 @@ class LoginPage extends React.Component {
|
||||
autoComplete="current-password"
|
||||
variant="outlined"
|
||||
className={'cypInputPassword'}
|
||||
error={!!!_.isEmpty(this.state.errors)}
|
||||
helperText={!!!_.isEmpty(this.state.errors) && this.state.errors.message}
|
||||
required
|
||||
/>
|
||||
<Button type="submit" variant="contained" className={classes.button + ' ' + classes.buttonImportant + ' cypButtonConnexion'}>
|
||||
Se connecter
|
||||
</Button>
|
||||
</Button>
|
||||
{/* <FacebookLogin
|
||||
appId="1800752833559014"
|
||||
autoLoad={true}
|
||||
fields="name,email,picture"
|
||||
textButton ="Connexion Facebook"
|
||||
callback={this.responseFacebook} /> */}
|
||||
<ReCAPTCHA
|
||||
id="component-outlined"
|
||||
ref={recaptchaRef}
|
||||
@@ -361,8 +373,8 @@ class LoginPage extends React.Component {
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
<Snack variant="error" message={!!!_.isEmpty(this.state.errors) && this.state.errors.message}
|
||||
openSnack={this.state.openSnack} onClose={this.handleClose} />
|
||||
{/* <Snack variant="error" message={!!!_.isEmpty(this.state.errors) && this.state.errors.message}
|
||||
openSnack={this.state.openSnack} onClose={this.handleClose} /> */}
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,9 +4,11 @@ import { connect } from "react-redux";
|
||||
import PropTypes from 'prop-types';
|
||||
import getConfig from 'next/config'
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
import OgHead from '../components/atoms/OgHead'
|
||||
import RootContainer from '../components/atoms/RootContainer'
|
||||
import LayoutOffre from "../components/templates/LayoutOffre";
|
||||
const OffreDetail = lazy(() => import('../components/organisms/OffreDetail'));
|
||||
//import OffreDetail from "../components/organisms/OffreDetail";
|
||||
// const OffreDetail = lazy(() => import('../components/organisms/OffreDetail'));
|
||||
import OffreDetail from "../components/organisms/OffreDetail";
|
||||
import { fetchJobRequest, clearAd, countAdViewRequest } from '../actions/ads'
|
||||
import _ from "lodash/string";
|
||||
const renderLoader = () => <p>Chargement</p>;
|
||||
@@ -15,9 +17,12 @@ const styles = theme => ({
|
||||
});
|
||||
|
||||
const { publicRuntimeConfig } = getConfig()
|
||||
let descriptionSEO = ""
|
||||
let titleSEO = ""
|
||||
|
||||
|
||||
class Offre extends React.Component {
|
||||
|
||||
|
||||
componentDidMount() {
|
||||
localStorage.setItem('loginRedirect', window.location.pathname)
|
||||
localStorage.setItem('adId', this.props.offre.id)
|
||||
@@ -33,12 +38,29 @@ class Offre extends React.Component {
|
||||
}
|
||||
render() {
|
||||
const { classes, offre } = this.props;
|
||||
descriptionSEO=""
|
||||
offre.company && offre.company.brand_name ? descriptionSEO += offre.company.brand_name : ""
|
||||
descriptionSEO += " recrute en vidéo un(e) "+offre.title
|
||||
titleSEO = "Offre d'emploi vidéo "+offre.title
|
||||
const socialShareUrl = typeof window !== 'undefined' ? window.location : publicRuntimeConfig.frontServerUrl + `/Offre/${offre.id}-${_.kebabCase(offre.title)}`;
|
||||
const DefaultUrl = "https://blog.talentstube.com/wp-content/uploads/2021/01/default_picture_company.jpg"
|
||||
const imgUrl = (offre.company && offre.company.presentation_video && offre.company.presentation_video.thumbnails && offre.company.presentation_video.thumbnails[0] && offre.company.presentation_video.thumbnails[0].sizes[3]) ? offre.company.presentation_video.thumbnails[0].sizes[3].link : DefaultUrl
|
||||
const imgUrlDesktop = (offre.company && offre.company.presentation_video && offre.company.presentation_video.thumbnails && offre.company.presentation_video.thumbnails[0] && offre.company.presentation_video.thumbnails[0].sizes[4]) ? offre.company.presentation_video.thumbnails[0].sizes[4].link : DefaultUrl
|
||||
const imgUrlOffre = (offre && offre.video && offre.video.thumbnails && offre.video.thumbnails[0] && offre.video.thumbnails[0].sizes[2]) ? offre.video.thumbnails[0].sizes[2].link : DefaultUrl
|
||||
const imgUrlDesktopOffre = (offre && offre.video && offre.video.thumbnails && offre.video.thumbnails[0] && offre.video.thumbnails[0].sizes[4]) ? offre.video.thumbnails[0].sizes[4].link : DefaultUrl
|
||||
return (
|
||||
<LayoutOffre backLink="/Offres" offreId={offre.id} offre={offre} isProvided={offre.is_promoted}>
|
||||
<RootContainer>
|
||||
<OgHead seo_title={titleSEO}
|
||||
seo_description={descriptionSEO}
|
||||
seo_url={socialShareUrl}
|
||||
image={imgUrl}
|
||||
></OgHead>
|
||||
<LayoutOffre backLink="/Offres" offreId={offre.id} offre={offre} isProvided={offre.is_promoted}>
|
||||
|
||||
{/* <Suspense fallback={renderLoader()}><OffreDetail offre={offre}/></Suspense> */}
|
||||
<Suspense fallback={renderLoader()}><OffreDetail offre={offre}/></Suspense>
|
||||
</LayoutOffre>
|
||||
<OffreDetail offre={offre}/>
|
||||
</LayoutOffre>
|
||||
</RootContainer>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class Offres extends React.Component {
|
||||
const { publicRuntimeConfig } = getConfig();
|
||||
const socialShareUrl = typeof window !== 'undefined' ? window.location
|
||||
: publicRuntimeConfig.frontServerUrl + `/Offres`;
|
||||
const DefaultUrl = publicRuntimeConfig.symphonyUrl + "/img/default_picture_svg"
|
||||
const DefaultUrl = publicRuntimeConfig.symphonyUrl + "img/default_picture_svg"
|
||||
const imgUrl = DefaultUrl ;
|
||||
return (
|
||||
<LayoutGrid backLink="/">
|
||||
|
||||
@@ -36,9 +36,9 @@ const styles = theme => ({
|
||||
},
|
||||
rootStepperContainer: {
|
||||
padding: theme.spacing(2, 12),
|
||||
width: '25vw',
|
||||
width: '50vw',
|
||||
[theme.breakpoints.up('md')]: {
|
||||
width: '7vw',
|
||||
width: '25vw',
|
||||
alignItems: 'center',
|
||||
},
|
||||
'& .MuiStep-horizontal, & .MuiStepLabel-iconContainer': {
|
||||
@@ -48,11 +48,30 @@ const styles = theme => ({
|
||||
},
|
||||
},
|
||||
'& .Mui-disabled .MuiStepConnector-line': {
|
||||
borderColor: theme.palette.answer.main + '!important',
|
||||
borderColor: 'd2d3d3 !important',
|
||||
},
|
||||
'& .Mui-disabled .MuiStepIcon-root': {
|
||||
color: theme.palette.answer.main + '!important',
|
||||
},
|
||||
'& .MuiStepIcon-root': {
|
||||
color: '#1689FB !important',
|
||||
},
|
||||
'& .MuiTypography-root ': {
|
||||
color: '#1e2327 !important',
|
||||
},
|
||||
|
||||
},
|
||||
stepContainer:{
|
||||
width:'600px',
|
||||
alignItems: 'center',
|
||||
textAlign: 'center',
|
||||
align: 'center',
|
||||
},
|
||||
stepLabel:{
|
||||
// width:'150px',
|
||||
// display:'inline',
|
||||
// alignItems: 'center',
|
||||
// align: 'center',
|
||||
},
|
||||
rootStepperDefault: {
|
||||
'& .MuiStepConnector-line': {
|
||||
@@ -75,15 +94,29 @@ const styles = theme => ({
|
||||
flexDirection: 'column',
|
||||
padding: theme.spacing(0, 1.5),
|
||||
},
|
||||
titreContainer: {
|
||||
backgroundColor: '#fff',
|
||||
borderRadius: '5px',
|
||||
maxWidth:'600px',
|
||||
boxShadow: '0px 6px 16px rgba(30, 35, 39, 0.15)',
|
||||
display: 'flex',
|
||||
padding: '25px',
|
||||
margin: '40px 0 20px 0',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'flex-start',
|
||||
|
||||
},
|
||||
logoContainer: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
width: 60,
|
||||
height: 60,
|
||||
width: 75,
|
||||
height: 75,
|
||||
backgroundColor: 'white',
|
||||
boxShadow: '0px 6px 15px rgba(30, 35, 39, 0.10)',
|
||||
border: 'solid 5px white',
|
||||
borderRadius: '6px',
|
||||
marginLeft:'30px',
|
||||
|
||||
},
|
||||
recorderContainer: {
|
||||
//display: 'flex',
|
||||
@@ -107,11 +140,11 @@ const styles = theme => ({
|
||||
objectFit: 'contain',
|
||||
},
|
||||
title: {
|
||||
fontSize: '1em',
|
||||
fontSize: '1.25em',
|
||||
fontWeight: '500',
|
||||
},
|
||||
companyName: {
|
||||
fontSize: '0.9em',
|
||||
fontSize: '1em',
|
||||
fontWeight: '300',
|
||||
},
|
||||
textContainer: {
|
||||
@@ -147,6 +180,12 @@ const styles = theme => ({
|
||||
fontSize: '1.15em',
|
||||
paddingLeft: theme.spacing(2),
|
||||
},
|
||||
textButtonReponse: {
|
||||
fontWeight: '700',
|
||||
fontSize: '1.15em',
|
||||
paddingLeft: theme.spacing(2),
|
||||
color:'#1e2327',
|
||||
},
|
||||
iconHelpButton: {
|
||||
fontSize: '1.5em',
|
||||
fontWeight: '500',
|
||||
@@ -167,6 +206,7 @@ const styles = theme => ({
|
||||
},
|
||||
|
||||
captureButton: {
|
||||
width:400,
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
padding: theme.spacing(5, 2),
|
||||
@@ -177,6 +217,7 @@ const styles = theme => ({
|
||||
},
|
||||
},
|
||||
importButton: {
|
||||
width:400,
|
||||
color: theme.palette.primary.main,
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
padding: theme.spacing(3, 2),
|
||||
@@ -198,9 +239,13 @@ const styles = theme => ({
|
||||
fontSize: '2.5em',
|
||||
color: theme.palette.primary.main,
|
||||
},
|
||||
InputKeyboardArrowDownIconNoir: {
|
||||
fontSize: '2.5em',
|
||||
color: '#1e2327',
|
||||
},
|
||||
});
|
||||
|
||||
const steps = ["", ""]
|
||||
const steps = ["Réaliser une vidéo de réponse", "Renseigner mes informations"]
|
||||
|
||||
const Recorder = dynamic(() => import('../components/organisms/Recorder'), {
|
||||
ssr: false
|
||||
@@ -214,6 +259,7 @@ class Reponse extends React.Component {
|
||||
data:{},
|
||||
openSnack: false,
|
||||
errors: {},
|
||||
openStudio : false
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
@@ -269,6 +315,16 @@ class Reponse extends React.Component {
|
||||
this.setState({ openSnack: false });
|
||||
}
|
||||
|
||||
realise =() =>{
|
||||
console.log("realise");
|
||||
this.setState({ openStudio: true});
|
||||
}
|
||||
|
||||
retour =() =>{
|
||||
console.log("retour");
|
||||
this.setState({ openStudio: false});
|
||||
}
|
||||
|
||||
render() {
|
||||
const { loading, activeStep } = this.state;
|
||||
const { classes, menu, offre, company } = this.props;
|
||||
@@ -281,7 +337,7 @@ class Reponse extends React.Component {
|
||||
classes.rootStepperActive
|
||||
)
|
||||
return (
|
||||
<LayoutBack text="Candidature">
|
||||
<LayoutBack text="Candidature" step={this.state.activeStep} openStudio={this.state.openStudio}>
|
||||
<Head>
|
||||
<title>Candidature vidéo</title>
|
||||
<meta name="description" content="Talent's tube, postulez en video." />
|
||||
@@ -289,30 +345,28 @@ class Reponse extends React.Component {
|
||||
|
||||
</Head>
|
||||
{/* https://codesandbox.io/s/ii0us */}
|
||||
{ loading ?
|
||||
<LoaderVideo /> :
|
||||
<Fragment>
|
||||
|
||||
<section className={classes.headerContainer}>
|
||||
{ !!offre.company && (
|
||||
|
||||
<Fragment>
|
||||
<div className={classes.logoContainer}>
|
||||
<Avatar className={classes.logo} classes={{ img: classes.MuiAvatarImg }} src={logoUrl} alt="companylogo"/>
|
||||
</div>
|
||||
<div className={classes.infoContainer}>
|
||||
<Typography gutterBottom variant="h5" component="h1" className={classes.title}>
|
||||
{!!offre.title? offre.title: ''}
|
||||
</Typography>
|
||||
<Typography gutterBottom variant="subtitle1" className={classes.companyName}>
|
||||
{!!offre.company.brand_name? offre.company.brand_name: ''}
|
||||
</Typography>
|
||||
{/* ville */}
|
||||
</div>
|
||||
</Fragment>)
|
||||
|
||||
<div className={classes.titreContainer}>
|
||||
<div className={classes.logoContainer}>
|
||||
<Avatar className={classes.logo} classes={{ img: classes.MuiAvatarImg }} src={logoUrl} alt="companylogo"/>
|
||||
</div>
|
||||
<div className={classes.infoContainer}>
|
||||
<Typography gutterBottom variant="h5" component="h1" className={classes.title}>
|
||||
{!!offre.title? offre.title: ''}
|
||||
</Typography>
|
||||
<Typography gutterBottom variant="subtitle1" className={classes.companyName}>
|
||||
{!!offre.company.brand_name? offre.company.brand_name: ''}
|
||||
</Typography>
|
||||
{/* ville */}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
{ !!company.brand_name && (<Fragment><div className={classes.logoContainer}>
|
||||
<Avatar className={classes.logo} classes={{ img: classes.MuiAvatarImg }} src={logoCompanyUrl} alt="companylogo"/>
|
||||
{/* <Avatar className={classes.logo} classes={{ img: classes.MuiAvatarImg }} src={logoCompanyUrl} alt="companylogo"/> */}
|
||||
</div>
|
||||
<div className={classes.infoContainer}>
|
||||
<Typography gutterBottom variant="h5" component="h1" className={classes.title}>
|
||||
@@ -326,86 +380,132 @@ class Reponse extends React.Component {
|
||||
}
|
||||
|
||||
</section>
|
||||
|
||||
<Stepper activeStep={activeStep} classes={{ root: rootStepper }} className={classes.rootStepperContainer}>
|
||||
{ loading ?
|
||||
<LoaderVideo textePrincipal="Votre candidature vidéo est en cours d’envoi..." texteSecondaire="Veuillez rester sur la page pendant le chargement qui peut durer plusieurs minutes."/>
|
||||
:
|
||||
<Fragment>
|
||||
|
||||
|
||||
<section className={classes.headerContainer}>
|
||||
<Stepper activeStep={activeStep} classes={{ root: rootStepper }} className={classes.rootStepperContainer} alternativeLabel>
|
||||
{steps.map((label, index) => {
|
||||
return (
|
||||
<Step key={label} >
|
||||
<StepLabel>{label}</StepLabel>
|
||||
<Step className={classes.stepContainer} key={index} >
|
||||
<StepLabel className={classes.stepLabel}>{label}</StepLabel>
|
||||
</Step>
|
||||
);
|
||||
})}
|
||||
</Stepper>
|
||||
</section>
|
||||
{loading ? ( <Loader />)
|
||||
: activeStep === 0 ?
|
||||
(
|
||||
<div className={classes.root}>
|
||||
|
||||
<div className={classes.textContainer}>
|
||||
<Typography gutterBottom align="center">
|
||||
Vous allez postuler en <span>vidéo</span> !
|
||||
</Typography>
|
||||
<Typography gutterBottom align="center">
|
||||
C'est <span>simple</span>,<span> rapide</span> et <span>plus humain</span>
|
||||
</Typography>
|
||||
</div>
|
||||
|
||||
<div className={ classes.helpContainer}>
|
||||
<Button component="span" className={classes.helpButton} classes={{ root: classes.rootButton }} onClick={() => Router.push(`/Conseils`)}>
|
||||
<Typography align="center" className={classes.textButton}>
|
||||
Par <span className={classes.underlined}>ici</span> pour quelques conseils !
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes.HelpKeyboardArrowRightIcon }/>
|
||||
</Button>
|
||||
</div>
|
||||
{ /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ?
|
||||
(
|
||||
<Fragment>
|
||||
<input
|
||||
type="file" accept="video/*" capture="camcorder"
|
||||
className={classes.input}
|
||||
style={{ display: 'none' }}
|
||||
id="record-button-file"
|
||||
multiple
|
||||
onChange={this.inputCamRecorderChange}
|
||||
/>
|
||||
<label htmlFor="record-button-file">
|
||||
<Button component="span" className={classes.captureButton} classes={{ root: classes.rootButton }}>
|
||||
<img alt="talents-tube" src='/static/images/capture.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
Je <span className={classes.underlined}>réalise</span> ma vidéo de réponse
|
||||
{this.state.openStudio == false &&
|
||||
<div>
|
||||
{/* <div className={classes.textContainer}>
|
||||
<Typography gutterBottom align="center">
|
||||
Vous allez postuler en <span>vidéo</span> !
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes.InputKeyboardArrowRightIcon }/>
|
||||
<Typography gutterBottom align="center">
|
||||
C'est <span>simple</span>,<span> rapide</span> et <span>plus humain</span>
|
||||
</Typography>
|
||||
</div> */}
|
||||
|
||||
{/* <div className={ classes.helpContainer}>
|
||||
<Button component="span" className={classes.helpButton} classes={{ root: classes.rootButton }} onClick={() => Router.push(`/Conseils`)}>
|
||||
<Typography align="center" className={classes.textButton}>
|
||||
Par <span className={classes.underlined}>ici</span> pour quelques conseils !
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes.HelpKeyboardArrowRightIcon }/>
|
||||
</Button>
|
||||
</label>
|
||||
</Fragment>
|
||||
</div> */}
|
||||
</div>
|
||||
}
|
||||
{/* Soit on affiche le module Web RTC soit on affiche un module de camrecorder */}
|
||||
{ /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ?
|
||||
(
|
||||
<Fragment>
|
||||
<input
|
||||
type="file" accept="video/*" capture="camcorder"
|
||||
className={classes.input}
|
||||
style={{ display: 'none' }}
|
||||
id="record-button-file"
|
||||
multiple
|
||||
onChange={this.inputCamRecorderChange}
|
||||
/>
|
||||
<label htmlFor="record-button-file">
|
||||
<Button component="span" className={classes.captureButton} classes={{ root: classes.rootButton }}>
|
||||
<img alt="talents-tube" src='/statique/images/capture.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
Je <span className={classes.underlined}>réalise</span> ma vidéo de réponse
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes.InputKeyboardArrowRightIcon }/>
|
||||
</Button>
|
||||
</label>
|
||||
</Fragment>
|
||||
):
|
||||
(
|
||||
<div className={classes.recorderContainer}>
|
||||
<Recorder uploader={this.props.uploadMedia} />
|
||||
</div>
|
||||
<Fragment>
|
||||
|
||||
{this.state.openStudio == false ?
|
||||
<Button component="span" className={classes.captureButton} classes={{ root: classes.rootButton }} onClick={this.realise}>
|
||||
<img alt="talents-tube" src='/statique/images/capture.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
Je <span className={classes.underlined}>réalise</span> ma vidéo de réponse
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes.InputKeyboardArrowRightIcon }/>
|
||||
</Button>
|
||||
:
|
||||
<div className={classes.recorderContainer}>
|
||||
<Button onClick={this.retour}>Retour au menu</Button>
|
||||
<Recorder uploader={this.props.uploadMedia} />
|
||||
|
||||
</div>
|
||||
|
||||
}
|
||||
</Fragment>
|
||||
// <div className={classes.recorderContainer}>
|
||||
// <Recorder uploader={this.props.uploadMedia} />
|
||||
// </div>
|
||||
)
|
||||
}
|
||||
|
||||
<input
|
||||
type="file"
|
||||
accept="video/*"
|
||||
className={classes.input+' cypButtonImportVid'}
|
||||
style={{ display: 'none' }}
|
||||
id="import-button-file"
|
||||
onChange={this.inputFilesystemChange}
|
||||
/>
|
||||
<label htmlFor="import-button-file">
|
||||
<Button component="span" className={classes.importButton} classes={{ root: classes.rootButton }}>
|
||||
<img alt="talents-tube" src='/static/images/import.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
J'<span className={classes.underlined}>importe</span> ma vidéo de réponse
|
||||
|
||||
</Typography>
|
||||
<KeyboardArrowDownIcon className={ classes. InputKeyboardArrowDownIcon }/>
|
||||
</Button>
|
||||
</label>
|
||||
|
||||
{this.state.openStudio == false ?
|
||||
<div>
|
||||
<div>
|
||||
<input
|
||||
type="file"
|
||||
accept="video/*"
|
||||
className={classes.input+' cypButtonImportVid'}
|
||||
style={{ display: 'none' }}
|
||||
id="import-button-file"
|
||||
onChange={this.inputFilesystemChange}
|
||||
/>
|
||||
<label htmlFor="import-button-file">
|
||||
<Button component="span" className={classes.importButton} classes={{ root: classes.rootButton }}>
|
||||
<img alt="talents-tube" src='/statique/images/Import.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
J'<span className={classes.underlined}>importe</span> ma vidéo de réponse
|
||||
|
||||
</Typography>
|
||||
<KeyboardArrowDownIcon className={ classes. InputKeyboardArrowDownIcon }/>
|
||||
</Button>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<Button component="span" className={classes.importButton} classes={{ root: classes.rootButton }} onClick={() => Router.push(`/Conseils`)}>
|
||||
<img alt="talents-tube" src='/statique/images/comment-faire-une-video-reponse.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButtonReponse}>
|
||||
Comment faire ma vidéo de réponse
|
||||
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes. InputKeyboardArrowDownIconNoir }/>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
:
|
||||
<div></div>
|
||||
}
|
||||
</div>
|
||||
) :
|
||||
(
|
||||
|
||||
@@ -5,8 +5,15 @@ import Typography from '@material-ui/core/Typography'
|
||||
import Button from '@material-ui/core/Button';
|
||||
import Router from 'next/router';
|
||||
import Head from 'next/head'
|
||||
|
||||
import { TextField } from '@material-ui/core';
|
||||
const styles = theme => ({
|
||||
root: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'flex-start',
|
||||
margin: theme.spacing(1),
|
||||
},
|
||||
container: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
@@ -24,33 +31,74 @@ const styles = theme => ({
|
||||
width: '100%',
|
||||
},
|
||||
title: {
|
||||
fontFamily: 'Dosis',
|
||||
fontSize: '1.5em',
|
||||
fontFamily: 'Roboto',
|
||||
fontSize: '1.625em',
|
||||
fontWeight: '600',
|
||||
padding: theme.spacing(3, 0),
|
||||
},
|
||||
text: {
|
||||
fontFamily: 'Roboto',
|
||||
width:"400px",
|
||||
fontSize: '1em',
|
||||
fontWeight: '300',
|
||||
padding: theme.spacing(1, 0),
|
||||
},
|
||||
textSpam:{
|
||||
fontFamily: 'Roboto',
|
||||
width:"400px",
|
||||
fontSize: "1em",
|
||||
fontWeight: "500",
|
||||
padding: theme.spacing(1, 0),
|
||||
},
|
||||
email: {
|
||||
fontWeight: '500',
|
||||
},
|
||||
bottomText: {
|
||||
fontWeight: '500',
|
||||
},
|
||||
|
||||
iconButton:{
|
||||
marginTop: "50px",
|
||||
|
||||
[theme.breakpoints.down('md')]: {
|
||||
marginTop: "50px",
|
||||
|
||||
},
|
||||
},
|
||||
textContainer: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
|
||||
},
|
||||
notUnderline:{
|
||||
textDecoration :'none'
|
||||
},
|
||||
rootButton: {
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.primary.important + '!important',
|
||||
},
|
||||
},
|
||||
button: {
|
||||
textTransform: 'inherit',
|
||||
marginLeft: theme.spacing(8),
|
||||
marginRight: theme.spacing(8),
|
||||
marginTop: theme.spacing(4),
|
||||
marginBottom: theme.spacing(2),
|
||||
marginRight: 'auto',
|
||||
marginLeft: 'auto',
|
||||
padding: theme.spacing(1.2, 1),
|
||||
padding: theme.spacing(1.2, 2),
|
||||
borderRadius: '3px',
|
||||
color: theme.palette.secondary.main,
|
||||
backgroundColor: theme.palette.primary.important,
|
||||
[theme.breakpoints.up('sm')]: {
|
||||
margin: 'auto',
|
||||
},
|
||||
},
|
||||
buttonImportant: {
|
||||
marginTop: theme.spacing(6),
|
||||
},
|
||||
champEmail:{
|
||||
width:'400px'
|
||||
}
|
||||
|
||||
});
|
||||
class VerifyEmail extends Component {
|
||||
@@ -62,20 +110,48 @@ class VerifyEmail extends Component {
|
||||
<title key="title">Vérification d'email</title>
|
||||
<meta key="robots" name="robots" content="noindex, nofollow"></meta>
|
||||
</Head>
|
||||
<div className={classes.container}>
|
||||
<Typography gutterBottom align="center" className={classes.title}>
|
||||
Consultez vos e-mails
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Un e-mail a été envoyé à l'adresse <span className={classes.email}>{email}</span>
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Cliquez sur le lien dans l'e-mail que nous vous avons envoyé pour activer votre compte.
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
N'oubliez pas de consulter vos spams, si vous ne trouvez pas le lien d'activation dans votre boite de réception.
|
||||
</Typography>
|
||||
<div className={classes.root}>
|
||||
<div className={classes.textContainer}>
|
||||
<img
|
||||
alt="talents-tube"
|
||||
src='/statique/images/inscription/inscription-plateforme-recrutement-video.svg'
|
||||
className={classes.iconButton}/>
|
||||
<Typography gutterBottom align="center" className={classes.title}>
|
||||
Consultez vos e-mails
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Cliquez sur le lien dans l’email que nous vous avons envoyé pour activer votre compte Talent. Vous pourrez ensuite vous connecter.
|
||||
|
||||
</Typography>
|
||||
<TextField
|
||||
value={email}
|
||||
className={classes.champEmail}
|
||||
id="emailVerif"
|
||||
name="emailVerif"
|
||||
label="Email"
|
||||
margin="normal"
|
||||
variant="outlined"
|
||||
InputProps={{
|
||||
readOnly: true,
|
||||
}}
|
||||
|
||||
/>
|
||||
<Typography align="center" className={classes.textSpam}>
|
||||
Vous n'avez pas reçu l'email ? Pensez à consulter vos spams
|
||||
</Typography>
|
||||
<a
|
||||
href={`/Login`}
|
||||
variant="contained"
|
||||
className={classes.notUnderline}
|
||||
|
||||
>
|
||||
<Button variant="contained" className={classes.button + ' ' + classes.buttonImportant + ' cypButtonConnexion'}>
|
||||
Se connecter
|
||||
</Button>
|
||||
</a>
|
||||
</div>
|
||||
<section className={classes.bottomContainer}>
|
||||
|
||||
{/* <Typography gutterBottom align="center" className={classes.bottomText}>
|
||||
Cliquez sur suivant pour continuer votre candidature
|
||||
</Typography>
|
||||
|
||||
@@ -31,8 +31,7 @@ class MyDocument extends Document {
|
||||
/>
|
||||
{/* PWA primary color */}
|
||||
<meta name="theme-color" content={theme.palette.primary.main} />
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Dosis:600|Roboto:100,300,400,500,700,900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Dosis:600|Roboto:200,300,400,500,700,900&display=swap" rel="stylesheet">
|
||||
</link>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDYV8IJGtIoWLfXJQQvIuDQ88n2aEuRgpg&libraries=places"></script>
|
||||
<script type="text/javascript" src="/static/js/pwaInstaller.js" ></script>
|
||||
|
||||
@@ -148,6 +148,8 @@ class Index extends React.Component {
|
||||
suggestions: [],
|
||||
valueMetier: '',
|
||||
suggestionsMetier: [],
|
||||
valueMetierCompetence: '',
|
||||
suggestionsMetierCompetence: [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -266,10 +268,63 @@ class Index extends React.Component {
|
||||
};
|
||||
|
||||
|
||||
// METIER COMPETENCE
|
||||
// Filter logic
|
||||
getSuggestionsMetierCompetence = async (valueMetierCompetence) => {
|
||||
const inputValue = valueMetierCompetence.trim().toLowerCase();
|
||||
let response = await fetch(publicRuntimeConfig.symphonyUrl+"api/getDetailAppelation?q=" + inputValue );
|
||||
// let response = await fetch("http://www.omdbapi.com/?s=" + inputValue + "&apikey=a591bb53");
|
||||
let data = await response.json()
|
||||
return data.competencesDeBase;
|
||||
};
|
||||
|
||||
// Trigger suggestions
|
||||
getSuggestionMetierCompetenceValue = suggestion => suggestion.libelle;
|
||||
// Render Each Option
|
||||
renderSuggestionMetierCompetence = suggestion => (
|
||||
<span className="sugg-option">
|
||||
|
||||
<span className="name">
|
||||
{suggestion.libelle} ({suggestion.code})
|
||||
</span>
|
||||
</span>
|
||||
);
|
||||
|
||||
// OnChange event handler
|
||||
onChangeMetierCompetence = (event, { newValue }) => {
|
||||
this.setState({
|
||||
valueMetierCompetence: newValue
|
||||
});
|
||||
};
|
||||
|
||||
// Suggestion rerender when user types
|
||||
onSuggestionsMetierCompetenceFetchRequested = ({ value }) => {
|
||||
this.getSuggestionsMetierCompetence(value)
|
||||
.then(data => {
|
||||
if (data.Error) {
|
||||
this.setState({
|
||||
suggestionsMetierCompetence: []
|
||||
});
|
||||
} else {
|
||||
this.setState({
|
||||
suggestionsMetierCompetence: data
|
||||
});
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
// Triggered on clear
|
||||
onSuggestionsMetierCompetenceClearRequested = () => {
|
||||
this.setState({
|
||||
suggestionsMetierCompetence: []
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
const { value, suggestions, valueMetier, suggestionsMetier } = this.state;
|
||||
const { value, suggestions, valueMetier, suggestionsMetier, valueMetierCompetence, suggestionsMetierCompetence } = this.state;
|
||||
// Option props
|
||||
const inputProps = {
|
||||
placeholder: 'Saisir une compétence',
|
||||
@@ -282,19 +337,22 @@ class Index extends React.Component {
|
||||
value:valueMetier,
|
||||
onChange: this.onChangeMetier
|
||||
};
|
||||
|
||||
const inputPropsMetierCompetence = {
|
||||
placeholder: 'Saisir un id appellation',
|
||||
value:valueMetierCompetence,
|
||||
onChange: this.onChangeMetierCompetence
|
||||
};
|
||||
const socialShareUrl = typeof window !== 'undefined' ? window.location
|
||||
: publicRuntimeConfig.frontServerUrl ;
|
||||
const DefaultUrl = publicRuntimeConfig.symphonyUrl + "/img/default_picture_svg"
|
||||
const imgUrl = DefaultUrl
|
||||
return (
|
||||
<Layout>
|
||||
<OgHead seo_title="Talents Tube - Plateforme de recrutement en vidéo"
|
||||
seo_description="Talents Tube est la première plateforme réservée aux offres d'emploi vidéo, vidéo marque employeur et aux CV vidéos. Découvrez une nouvelle méthode de recrutement."
|
||||
seo_url={socialShareUrl}
|
||||
image={imgUrl}
|
||||
seo_key="Recrutement, video"
|
||||
|
||||
></OgHead>
|
||||
<Head>
|
||||
<title key="title">Recrutement vidéo : fonctionnement – Talents Tube</title>
|
||||
<meta key="robots" name="robots" content="noindex, nofollow"></meta>
|
||||
</Head>
|
||||
<div className={classes.container}>
|
||||
|
||||
{/* <VideoSlider /> */}
|
||||
@@ -319,6 +377,15 @@ class Index extends React.Component {
|
||||
renderSuggestion={this.renderSuggestionMetier}
|
||||
inputProps={inputPropsMetier}
|
||||
/>
|
||||
|
||||
<Autosuggest
|
||||
suggestions={suggestionsMetierCompetence}
|
||||
onSuggestionsFetchRequested={this.onSuggestionsMetierCompetenceFetchRequested}
|
||||
onSuggestionsClearRequested={this.onSuggestionsMetierCompetenceClearRequested}
|
||||
getSuggestionValue={this.getSuggestionMetierCompetenceValue}
|
||||
renderSuggestion={this.renderSuggestionMetierCompetence}
|
||||
inputProps={inputPropsMetierCompetence}
|
||||
/>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,31 @@
|
||||
<svg id="Import" xmlns="http://www.w3.org/2000/svg" width="73.762" height="56.425" viewBox="0 0 73.762 56.425">
|
||||
<g id="Groupe_7895" data-name="Groupe 7895" transform="translate(9.499)">
|
||||
<rect id="Rectangle_316" data-name="Rectangle 316" width="42.463" height="23.869" transform="translate(0 3.769) rotate(-5.093)"/>
|
||||
<rect id="Rectangle_317" data-name="Rectangle 317" width="2.656" height="2.656" transform="translate(1.401 6.158) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_318" data-name="Rectangle 318" width="2.656" height="2.656" transform="translate(1.866 11.472) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_319" data-name="Rectangle 319" width="2.656" height="2.656" transform="translate(2.327 16.747) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_320" data-name="Rectangle 320" width="2.656" height="2.656" transform="translate(2.826 22.019) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_321" data-name="Rectangle 321" width="2.656" height="2.656" transform="translate(38.67 2.848) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_322" data-name="Rectangle 322" width="2.656" height="2.656" transform="translate(39.131 8.123) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_323" data-name="Rectangle 323" width="2.656" height="2.656" transform="translate(39.633 13.433) rotate(-5.093)" fill="#fff"/>
|
||||
<rect id="Rectangle_324" data-name="Rectangle 324" width="2.656" height="2.656" transform="translate(40.094 18.708) rotate(-5.093)" fill="#fff"/>
|
||||
<path id="Tracé_278" data-name="Tracé 278" d="M229.4,202.9l6.275,3.311-5.582,4.35Z" transform="translate(-210.257 -192.71)" fill="#fff"/>
|
||||
</g>
|
||||
<path id="Tracé_279" data-name="Tracé 279" d="M217.367,282.859l-6.93,6.93-48.507-6.93L155,275.93l6.93-6.93h55.437Z" transform="translate(-155 -233.363)" fill="#d0e7fe"/>
|
||||
<path id="Tracé_280" data-name="Tracé 280" d="M173,269v6.93h48.507l6.93-6.93Z" transform="translate(-166.07 -233.363)" fill="#b8dbfe"/>
|
||||
<g id="Groupe_7897" data-name="Groupe 7897" transform="translate(28.442 19.099)">
|
||||
<g id="Groupe_7896" data-name="Groupe 7896" transform="translate(3.551)">
|
||||
<path id="Tracé_281" data-name="Tracé 281" d="M239.065,257.45a.488.488,0,0,1-.231-.039.939.939,0,0,1-.693-1.155,50.925,50.925,0,0,0,1.463-12.088,51.857,51.857,0,0,0-.346-6.006.969.969,0,0,1,1.925-.231,55.915,55.915,0,0,1,.346,6.237,52.807,52.807,0,0,1-1.5,12.55A.952.952,0,0,1,239.065,257.45Z" transform="translate(-238.104 -232.827)" fill="#25d89a"/>
|
||||
<path id="Tracé_282" data-name="Tracé 282" d="M240.5,229.337a1.021,1.021,0,0,1-.962-.808c-.077-.462-.154-.885-.27-1.347a.944.944,0,0,1,1.848-.385c.077.462.192.924.269,1.386a.969.969,0,0,1-.77,1.116A.141.141,0,0,1,240.5,229.337Z" transform="translate(-238.804 -226.042)" fill="#25d89a"/>
|
||||
</g>
|
||||
<path id="Tracé_283" data-name="Tracé 283" d="M233.084,279.525l-4.042-6.237a.972.972,0,1,1,1.617-1.078l3,4.62,4.62-3a.972.972,0,0,1,1.078,1.617Z" transform="translate(-228.879 -254.171)" fill="#25d89a"/>
|
||||
</g>
|
||||
<path id="Tracé_284" data-name="Tracé 284" d="M316.393,300.545h-9.008a.385.385,0,1,1,0-.77h8.7l5.505-5.659a.381.381,0,1,1,.539.539Z" transform="translate(-248.483 -248.739)" fill="#25d89a"/>
|
||||
<path id="Tracé_285" data-name="Tracé 285" d="M317.93,299.2h-6.545a.385.385,0,0,1,0-.77h6.237l4.2-4.312a.381.381,0,1,1,.539.539Z" transform="translate(-250.943 -248.739)" fill="#fa6362"/>
|
||||
<g id="Groupe_7899" data-name="Groupe 7899" transform="translate(30.144 40.641)">
|
||||
<g id="Groupe_7898" data-name="Groupe 7898" transform="translate(0 0)">
|
||||
<path id="Tracé_286" data-name="Tracé 286" d="M233.3,282l2.5,3.811,5.89-3.811h-3.542l-.654.423a1.636,1.636,0,0,0,.077-.423H233.3Z" transform="translate(-233.3 -282)" fill="#21b77e"/>
|
||||
</g>
|
||||
</g>
|
||||
<rect id="Rectangle_325" data-name="Rectangle 325" width="55.437" height="13.859" transform="translate(0 42.566)" fill="#fff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,10 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="61.875" height="67.637" viewBox="0 0 61.875 67.637">
|
||||
<g id="capture" transform="translate(-3.819 12.637)">
|
||||
<path id="Tracé_267" data-name="Tracé 267" d="M249.806,254.569H236.819A3.831,3.831,0,0,1,233,250.75v-9.931A3.831,3.831,0,0,1,236.819,237h12.986a3.831,3.831,0,0,1,3.819,3.819v9.931A3.831,3.831,0,0,1,249.806,254.569Z" transform="translate(-206.646 -214.465)" fill="#25d89a"/>
|
||||
<path id="Tracé_268" data-name="Tracé 268" d="M235.875,281.75,229,288.625l-48.125-6.875L174,274.875,180.875,268h55Z" transform="translate(-170.181 -233.625)" fill="#d0e7fe"/>
|
||||
<rect id="Rectangle_315" data-name="Rectangle 315" width="55" height="13.75" transform="translate(3.819 41.25)" fill="#fff"/>
|
||||
<circle id="Ellipse_117" data-name="Ellipse 117" cx="6.875" cy="6.875" r="6.875" transform="translate(29.792 6.875)" fill="#25d89a"/>
|
||||
<text id="_" data-name="?" transform="matrix(0.921, 0.391, -0.391, 0.921, 45.851, 8.063)" fill="#ff5a5f" font-size="11" font-family="Roboto-Black, Roboto" font-weight="800"><tspan x="-2.801" y="0">?</tspan></text>
|
||||
<text id="_2" data-name="?" transform="translate(39.881 3.168) rotate(-20)" fill="#ff5a5f" font-size="16" font-family="Roboto-Black, Roboto" font-weight="800"><tspan x="-4.074" y="0">?</tspan></text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,25 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
||||
<g id="Groupe_8166" data-name="Groupe 8166" transform="translate(-928 -199.541)">
|
||||
<circle id="Ellipse_130" data-name="Ellipse 130" cx="50" cy="50" r="50" transform="translate(928 199.541)" fill="#1689fb"/>
|
||||
<g id="XMLID_1840_" transform="translate(951.228 222.333)">
|
||||
<g id="XMLID_1021_" transform="translate(0)">
|
||||
<path id="XMLID_1068_" d="M51.417,65.633a1.045,1.045,0,0,0-.432-1.413,16.381,16.381,0,0,0-18.064,1.8l-1.688-1.688,2.756-2.756A1.045,1.045,0,0,0,32.512,60.1l-2.756,2.756-6.725-6.725a14.6,14.6,0,0,0,1.186-15.582,1.045,1.045,0,1,0-1.845.98,12.44,12.44,0,0,1-.836,13.107L17.1,50.208a2.563,2.563,0,0,0-4.219.93L.16,85.851a2.568,2.568,0,0,0,2.4,3.449,2.592,2.592,0,0,0,.893-.16L38.162,76.415a2.563,2.563,0,0,0,.93-4.219L34.407,67.51A14.289,14.289,0,0,1,50,66.065a1.045,1.045,0,0,0,1.413-.432ZM16.637,82.081,7.219,72.663l2.609-7.119L23.755,79.471Zm-5.1,1.871L5.348,77.767l1.079-2.942,8.048,8.048Zm-8.8,3.227a.474.474,0,0,1-.609-.608l2.434-6.641L9.37,84.744ZM37.743,74.111a.462.462,0,0,1-.3.343l-6.421,2.354-5.941-5.941A1.045,1.045,0,1,0,23.6,72.344L28.86,77.6l-2.942,1.079-15.3-15.3L11.7,60.44,16.956,65.7a1.044,1.044,0,1,0,1.477-1.477l-5.941-5.941,2.354-6.421a.462.462,0,0,1,.343-.3.5.5,0,0,1,.108-.012.454.454,0,0,1,.329.14L37.615,73.673a.462.462,0,0,1,.128.438Z" transform="translate(0 -35.82)" fill="#fff"/>
|
||||
<path id="XMLID_1441_" d="M292.642,16.779a1.044,1.044,0,0,0,1.045-1.045,1.588,1.588,0,0,1,1.587-1.586,3.68,3.68,0,0,0,3.675-3.675,1.045,1.045,0,0,0-2.089,0,1.588,1.588,0,0,1-1.586,1.586,3.68,3.68,0,0,0-3.676,3.675A1.045,1.045,0,0,0,292.642,16.779Z" transform="translate(-261.139 -8.443)" fill="#fff"/>
|
||||
<path id="XMLID_1462_" d="M381.363,109.1a3.8,3.8,0,0,0,3.8-3.8,1.709,1.709,0,0,1,1.707-1.707,1.045,1.045,0,0,0,0-2.089,3.8,3.8,0,0,0-3.8,3.8,1.709,1.709,0,0,1-1.707,1.707,1.045,1.045,0,1,0,0,2.089Z" transform="translate(-340.594 -90.91)" fill="#fff"/>
|
||||
<path id="XMLID_1489_" d="M448,164.827a3.342,3.342,0,1,0,3.342-3.342A3.346,3.346,0,0,0,448,164.827Zm3.342-1.253a1.253,1.253,0,1,1-1.253,1.253A1.255,1.255,0,0,1,451.345,163.574Z" transform="translate(-401.207 -144.617)" fill="#fff"/>
|
||||
<path id="XMLID_1502_" d="M286.452,112.539a3.342,3.342,0,1,0-3.342-3.342A3.346,3.346,0,0,0,286.452,112.539Zm0-4.6A1.253,1.253,0,1,1,285.2,109.2,1.255,1.255,0,0,1,286.452,107.943Z" transform="translate(-253.538 -94.797)" fill="#fff"/>
|
||||
<path id="XMLID_1619_" d="M99.344,6.685A3.342,3.342,0,1,0,96,3.342,3.346,3.346,0,0,0,99.344,6.685Zm0-4.6a1.253,1.253,0,1,1-1.253,1.253A1.255,1.255,0,0,1,99.344,2.089Z" transform="translate(-85.974)" fill="#fff"/>
|
||||
<path id="XMLID_1620_" d="M437.216,348.435a1.045,1.045,0,1,0-1.477,1.477l.985.985a1.045,1.045,0,1,0,1.477-1.477Z" transform="translate(-389.951 -311.766)" fill="#fff"/>
|
||||
<path id="XMLID_1659_" d="M484.356,395.575a1.045,1.045,0,1,0-1.477,1.477l.985.985a1.045,1.045,0,0,0,1.477-1.477Z" transform="translate(-432.167 -353.982)" fill="#fff"/>
|
||||
<path id="XMLID_1690_" d="M483.864,348.435l-.985.985a1.044,1.044,0,1,0,1.477,1.477l.985-.985a1.045,1.045,0,0,0-1.477-1.477Z" transform="translate(-432.167 -311.766)" fill="#fff"/>
|
||||
<path id="XMLID_1712_" d="M436.724,395.575l-.985.985a1.045,1.045,0,0,0,1.477,1.477l.985-.985a1.045,1.045,0,1,0-1.477-1.477Z" transform="translate(-389.951 -353.982)" fill="#fff"/>
|
||||
<path id="XMLID_1715_" d="M483.618,3.074a1.041,1.041,0,0,0,.739-.306l.985-.985A1.045,1.045,0,0,0,483.864.306l-.985.985a1.045,1.045,0,0,0,.739,1.783Z" transform="translate(-432.167 0)" fill="#fff"/>
|
||||
<path id="XMLID_1747_" d="M436.477,50.213a1.041,1.041,0,0,0,.739-.306l.985-.985a1.045,1.045,0,1,0-1.477-1.477l-.985.985a1.045,1.045,0,0,0,.739,1.783Z" transform="translate(-389.95 -42.215)" fill="#fff"/>
|
||||
<path id="XMLID_1750_" d="M484.356,47.446a1.045,1.045,0,1,0-1.477,1.477l.985.985a1.045,1.045,0,0,0,1.477-1.477Z" transform="translate(-432.167 -42.216)" fill="#fff"/>
|
||||
<path id="XMLID_1751_" d="M436.723,2.768A1.045,1.045,0,0,0,438.2,1.291l-.985-.985a1.045,1.045,0,0,0-1.477,1.477Z" transform="translate(-389.95 0)" fill="#fff"/>
|
||||
<path id="XMLID_1755_" d="M192.266,300.78a1.045,1.045,0,1,0,.738.306A1.052,1.052,0,0,0,192.266,300.78Z" transform="translate(-171.247 -269.363)" fill="#fff"/>
|
||||
<path id="XMLID_1756_" d="M338,193.993l-.757.757a1.045,1.045,0,1,0,1.477,1.477l.757-.757A1.045,1.045,0,0,0,338,193.993Z" transform="translate(-301.745 -173.456)" fill="#fff"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,25 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
||||
<g id="Groupe_8166" data-name="Groupe 8166" transform="translate(-928 -199.541)">
|
||||
<circle id="Ellipse_130" data-name="Ellipse 130" cx="50" cy="50" r="50" transform="translate(928 199.541)" fill="#1689fb"/>
|
||||
<g id="XMLID_1840_" transform="translate(951.228 222.333)">
|
||||
<g id="XMLID_1021_" transform="translate(0)">
|
||||
<path id="XMLID_1068_" d="M51.417,65.633a1.045,1.045,0,0,0-.432-1.413,16.381,16.381,0,0,0-18.064,1.8l-1.688-1.688,2.756-2.756A1.045,1.045,0,0,0,32.512,60.1l-2.756,2.756-6.725-6.725a14.6,14.6,0,0,0,1.186-15.582,1.045,1.045,0,1,0-1.845.98,12.44,12.44,0,0,1-.836,13.107L17.1,50.208a2.563,2.563,0,0,0-4.219.93L.16,85.851a2.568,2.568,0,0,0,2.4,3.449,2.592,2.592,0,0,0,.893-.16L38.162,76.415a2.563,2.563,0,0,0,.93-4.219L34.407,67.51A14.289,14.289,0,0,1,50,66.065a1.045,1.045,0,0,0,1.413-.432ZM16.637,82.081,7.219,72.663l2.609-7.119L23.755,79.471Zm-5.1,1.871L5.348,77.767l1.079-2.942,8.048,8.048Zm-8.8,3.227a.474.474,0,0,1-.609-.608l2.434-6.641L9.37,84.744ZM37.743,74.111a.462.462,0,0,1-.3.343l-6.421,2.354-5.941-5.941A1.045,1.045,0,1,0,23.6,72.344L28.86,77.6l-2.942,1.079-15.3-15.3L11.7,60.44,16.956,65.7a1.044,1.044,0,1,0,1.477-1.477l-5.941-5.941,2.354-6.421a.462.462,0,0,1,.343-.3.5.5,0,0,1,.108-.012.454.454,0,0,1,.329.14L37.615,73.673a.462.462,0,0,1,.128.438Z" transform="translate(0 -35.82)" fill="#fff"/>
|
||||
<path id="XMLID_1441_" d="M292.642,16.779a1.044,1.044,0,0,0,1.045-1.045,1.588,1.588,0,0,1,1.587-1.586,3.68,3.68,0,0,0,3.675-3.675,1.045,1.045,0,0,0-2.089,0,1.588,1.588,0,0,1-1.586,1.586,3.68,3.68,0,0,0-3.676,3.675A1.045,1.045,0,0,0,292.642,16.779Z" transform="translate(-261.139 -8.443)" fill="#fff"/>
|
||||
<path id="XMLID_1462_" d="M381.363,109.1a3.8,3.8,0,0,0,3.8-3.8,1.709,1.709,0,0,1,1.707-1.707,1.045,1.045,0,0,0,0-2.089,3.8,3.8,0,0,0-3.8,3.8,1.709,1.709,0,0,1-1.707,1.707,1.045,1.045,0,1,0,0,2.089Z" transform="translate(-340.594 -90.91)" fill="#fff"/>
|
||||
<path id="XMLID_1489_" d="M448,164.827a3.342,3.342,0,1,0,3.342-3.342A3.346,3.346,0,0,0,448,164.827Zm3.342-1.253a1.253,1.253,0,1,1-1.253,1.253A1.255,1.255,0,0,1,451.345,163.574Z" transform="translate(-401.207 -144.617)" fill="#fff"/>
|
||||
<path id="XMLID_1502_" d="M286.452,112.539a3.342,3.342,0,1,0-3.342-3.342A3.346,3.346,0,0,0,286.452,112.539Zm0-4.6A1.253,1.253,0,1,1,285.2,109.2,1.255,1.255,0,0,1,286.452,107.943Z" transform="translate(-253.538 -94.797)" fill="#fff"/>
|
||||
<path id="XMLID_1619_" d="M99.344,6.685A3.342,3.342,0,1,0,96,3.342,3.346,3.346,0,0,0,99.344,6.685Zm0-4.6a1.253,1.253,0,1,1-1.253,1.253A1.255,1.255,0,0,1,99.344,2.089Z" transform="translate(-85.974)" fill="#fff"/>
|
||||
<path id="XMLID_1620_" d="M437.216,348.435a1.045,1.045,0,1,0-1.477,1.477l.985.985a1.045,1.045,0,1,0,1.477-1.477Z" transform="translate(-389.951 -311.766)" fill="#fff"/>
|
||||
<path id="XMLID_1659_" d="M484.356,395.575a1.045,1.045,0,1,0-1.477,1.477l.985.985a1.045,1.045,0,0,0,1.477-1.477Z" transform="translate(-432.167 -353.982)" fill="#fff"/>
|
||||
<path id="XMLID_1690_" d="M483.864,348.435l-.985.985a1.044,1.044,0,1,0,1.477,1.477l.985-.985a1.045,1.045,0,0,0-1.477-1.477Z" transform="translate(-432.167 -311.766)" fill="#fff"/>
|
||||
<path id="XMLID_1712_" d="M436.724,395.575l-.985.985a1.045,1.045,0,0,0,1.477,1.477l.985-.985a1.045,1.045,0,1,0-1.477-1.477Z" transform="translate(-389.951 -353.982)" fill="#fff"/>
|
||||
<path id="XMLID_1715_" d="M483.618,3.074a1.041,1.041,0,0,0,.739-.306l.985-.985A1.045,1.045,0,0,0,483.864.306l-.985.985a1.045,1.045,0,0,0,.739,1.783Z" transform="translate(-432.167 0)" fill="#fff"/>
|
||||
<path id="XMLID_1747_" d="M436.477,50.213a1.041,1.041,0,0,0,.739-.306l.985-.985a1.045,1.045,0,1,0-1.477-1.477l-.985.985a1.045,1.045,0,0,0,.739,1.783Z" transform="translate(-389.95 -42.215)" fill="#fff"/>
|
||||
<path id="XMLID_1750_" d="M484.356,47.446a1.045,1.045,0,1,0-1.477,1.477l.985.985a1.045,1.045,0,0,0,1.477-1.477Z" transform="translate(-432.167 -42.216)" fill="#fff"/>
|
||||
<path id="XMLID_1751_" d="M436.723,2.768A1.045,1.045,0,0,0,438.2,1.291l-.985-.985a1.045,1.045,0,0,0-1.477,1.477Z" transform="translate(-389.95 0)" fill="#fff"/>
|
||||
<path id="XMLID_1755_" d="M192.266,300.78a1.045,1.045,0,1,0,.738.306A1.052,1.052,0,0,0,192.266,300.78Z" transform="translate(-171.247 -269.363)" fill="#fff"/>
|
||||
<path id="XMLID_1756_" d="M338,193.993l-.757.757a1.045,1.045,0,1,0,1.477,1.477l.757-.757A1.045,1.045,0,0,0,338,193.993Z" transform="translate(-301.745 -173.456)" fill="#fff"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
||||
<g id="Groupe_8216" data-name="Groupe 8216" transform="translate(-907 -178)">
|
||||
<g id="Groupe_8166" data-name="Groupe 8166" transform="translate(-21 -21.541)">
|
||||
<circle id="Ellipse_130" data-name="Ellipse 130" cx="50" cy="50" r="50" transform="translate(928 199.541)" fill="#1689fb"/>
|
||||
<g id="Groupe_8190" data-name="Groupe 8190" transform="translate(950.061 230.494)">
|
||||
<g id="_001-mail" data-name="001-mail" transform="translate(0 0)">
|
||||
<g id="Groupe_8165" data-name="Groupe 8165">
|
||||
<path id="Tracé_428" data-name="Tracé 428" d="M50.345,76H4.851A4.858,4.858,0,0,0,0,80.851v29.107a4.859,4.859,0,0,0,4.851,4.851H50.345a4.857,4.857,0,0,0,4.851-4.851V80.851A4.856,4.856,0,0,0,50.345,76Zm-.679,3.234L31.028,97.773a4.851,4.851,0,0,1-6.864,0L5.531,79.234ZM3.234,109.3V81.512l13.976,13.9Zm2.3,2.275L19.5,97.694l2.378,2.366a8.085,8.085,0,0,0,11.431,0l2.381-2.369,13.97,13.881ZM51.962,109.3,37.986,95.413l13.976-13.9Z" transform="translate(0 -76)" fill="#fff"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,10 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
||||
<g id="Groupe_8222" data-name="Groupe 8222" transform="translate(-905 -178)">
|
||||
<g id="Groupe_8166" data-name="Groupe 8166" transform="translate(-23 -21.541)">
|
||||
<circle id="Ellipse_130" data-name="Ellipse 130" cx="50" cy="50" r="50" transform="translate(928 199.541)" fill="#1689fb"/>
|
||||
<g id="_001-like" data-name="001-like" transform="translate(948.325 227.541)">
|
||||
<path id="Tracé_429" data-name="Tracé 429" d="M52.8,33.254a6.076,6.076,0,0,0,1.422-4.061,6.239,6.239,0,0,0-1.33-3.519,5.467,5.467,0,0,0-1.3-6.291C49.963,17.9,47.2,17.235,43.376,17.42a32.1,32.1,0,0,0-5.033.644h-.01c-.511.092-1.054.2-1.606.327-.041-.655.072-2.281,1.279-5.943,1.432-4.357,1.35-7.692-.266-9.922A6.5,6.5,0,0,0,32.533,0a2.569,2.569,0,0,0-1.974.9c-1.135,1.32-1,3.754-.859,4.879-1.35,3.621-5.135,12.5-8.336,14.965a1.1,1.1,0,0,0-.164.143,10.988,10.988,0,0,0-2,3.007,4.221,4.221,0,0,0-2.025-.511H10.93a4.258,4.258,0,0,0-4.255,4.255V44.26a4.258,4.258,0,0,0,4.255,4.255h6.24a4.246,4.246,0,0,0,2.455-.777l2.4.286a102.986,102.986,0,0,0,13.635.747c1.217.092,2.363.143,3.427.143a22.95,22.95,0,0,0,4.756-.43c3.13-.665,5.268-1.995,6.352-3.948a6.261,6.261,0,0,0,.7-3.918,6.524,6.524,0,0,0,2.322-5.309A6.91,6.91,0,0,0,52.8,33.254ZM10.93,45.753A1.5,1.5,0,0,1,9.437,44.26V27.628a1.5,1.5,0,0,1,1.493-1.493h6.24a1.5,1.5,0,0,1,1.493,1.493V44.25a1.5,1.5,0,0,1-1.493,1.493H10.93Zm39.248-13.7a1.375,1.375,0,0,0-.184,1.667,4.256,4.256,0,0,1,.471,1.708,4.093,4.093,0,0,1-1.923,3.539,1.394,1.394,0,0,0-.471,1.575,3.612,3.612,0,0,1-.276,2.639c-.685,1.227-2.209,2.107-4.521,2.6a26.947,26.947,0,0,1-7.457.225h-.143a100.965,100.965,0,0,1-13.3-.726h-.01l-1.033-.123a4.334,4.334,0,0,0,.092-.9V27.628a4.327,4.327,0,0,0-.194-1.268,8.549,8.549,0,0,1,1.9-3.508C27.726,19.21,32.216,6.925,32.41,6.393a1.3,1.3,0,0,0,.061-.685A6.392,6.392,0,0,1,32.6,2.741a3.67,3.67,0,0,1,2.885,1.381c1.043,1.442,1,4.02-.123,7.436-1.718,5.206-1.862,7.948-.5,9.155a2.229,2.229,0,0,0,2.23.4c.624-.143,1.217-.266,1.78-.358l.133-.031c3.14-.685,8.766-1.1,10.72.675a2.943,2.943,0,0,1,.348,3.733,1.368,1.368,0,0,0,.245,1.78A3.875,3.875,0,0,1,51.456,29.3,3.8,3.8,0,0,1,50.178,32.057Z" transform="translate(-1 -4)" fill="#fff"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,39 @@
|
||||
<svg id="web-rtc-active" xmlns="http://www.w3.org/2000/svg" width="550" height="310" viewBox="0 0 550 310">
|
||||
<g id="web-rtc-record">
|
||||
<rect id="captures__2020-12-08_à_14.00.50" data-name="captures_ 2020-12-08 à 14.00.50" width="550" height="310" fill="#4b4f52"/>
|
||||
<g id="Groupe_8235" data-name="Groupe 8235" transform="translate(-121 -1)">
|
||||
<g id="Groupe_8239" data-name="Groupe 8239" transform="translate(-226 7)">
|
||||
<g id="Groupe_8236" data-name="Groupe 8236" transform="translate(-20 20)">
|
||||
<circle id="Ellipse_146" data-name="Ellipse 146" cx="14" cy="14" r="14" transform="translate(407 48)" fill="#25d89a"/>
|
||||
<text id="_1" data-name="1" transform="translate(421 67)" fill="#fff" font-size="15" font-family="Roboto-Bold, Roboto" font-weight="700"><tspan x="-4.303" y="0">1</tspan></text>
|
||||
</g>
|
||||
<text id="Autoriser_la_caméra_et_le_micro" data-name="Autoriser la caméra et le micro" transform="translate(427 88)" fill="#fff" font-size="14" font-family="Roboto-Bold, Roboto" font-weight="700"><tspan x="0" y="0">Autoriser la caméra et le micro</tspan></text>
|
||||
<text id="Choisir_votre_meilleure_prise" data-name="Choisir votre meilleure prise" transform="translate(427 204)" fill="#fff" font-size="14" font-family="Roboto-Bold, Roboto" font-weight="700"><tspan x="0" y="0">Choisir votre meilleure prise</tspan></text>
|
||||
<text id="Démarrer_l_enregistrement" data-name="Démarrer l’enregistrement" transform="translate(427 146)" fill="#fff" font-size="14" font-family="Roboto-Bold, Roboto" font-weight="700"><tspan x="0" y="0">Démarrer l’enregistrement</tspan></text>
|
||||
<g id="Groupe_8237" data-name="Groupe 8237" transform="translate(-20 78)">
|
||||
<circle id="Ellipse_146-2" data-name="Ellipse 146" cx="14" cy="14" r="14" transform="translate(407 48)" fill="#25d89a"/>
|
||||
<text id="_2" data-name="2" transform="translate(421 67)" fill="#fff" font-size="15" font-family="Roboto-Bold, Roboto" font-weight="700"><tspan x="-4.303" y="0">2</tspan></text>
|
||||
</g>
|
||||
<g id="Groupe_8238" data-name="Groupe 8238" transform="translate(-20 136)">
|
||||
<circle id="Ellipse_146-3" data-name="Ellipse 146" cx="14" cy="14" r="14" transform="translate(407 48)" fill="#25d89a"/>
|
||||
<text id="_3" data-name="3" transform="translate(421 67)" fill="#fff" font-size="15" font-family="Roboto-Bold, Roboto" font-weight="700"><tspan x="-4.303" y="0">3</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Groupe_8240" data-name="Groupe 8240" transform="translate(-36)">
|
||||
<rect id="Rectangle_442" data-name="Rectangle 442" width="187" height="187" rx="9" transform="translate(480 53)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" stroke-dasharray="9" opacity="0.593"/>
|
||||
<circle id="Ellipse_145" data-name="Ellipse 145" cx="7" cy="7" r="7" transform="translate(642 65)" fill="#fd6161"/>
|
||||
<g id="_001-woman" data-name="001-woman" transform="translate(449.002 56.984)">
|
||||
<path id="Tracé_448" data-name="Tracé 448" d="M175.073,136.325v12.8a2.607,2.607,0,0,1-2.608,2.608H77.285a2.607,2.607,0,0,1-2.608-2.608v-12.8a24.317,24.317,0,0,1,14.264-22.143c-3.433-2.731,1.856-10.366-1.95-18.264-5.3-10.984-3.064-14.173,3.69-24.316,3.67-5.509,3.137-13.027,3.137-19.644l6.381-7.925c0-18-2.164-27.367,15.839-27.367L134.023,17.9c18,0,21.388-.527,21.388,17.476,0,14.957-.157,17.695,1.646,23.643,2.544,8.41-4.236,15.545-1.646,24.1,4.072,13.454,4.5,10.7-6.6,19.537l11.994,11.525A24.317,24.317,0,0,1,175.073,136.325Z" transform="translate(-0.049 16.831)" fill="#ffdfba"/>
|
||||
<path id="Tracé_449" data-name="Tracé 449" d="M178.4,363.976v12.8a2.608,2.608,0,0,1-2.608,2.608H80.609A2.608,2.608,0,0,1,78,376.773v-12.8a24.308,24.308,0,0,1,24.307-24.307,13.489,13.489,0,0,0,5.6-1.209l.081.176,18.613,14.41a2.608,2.608,0,0,0,3.193,0l18.613-14.41.081-.176a13.489,13.489,0,0,0,5.6,1.209A24.308,24.308,0,0,1,178.4,363.976Z" transform="translate(-3.373 -210.82)" fill="#44a0fb"/>
|
||||
<path id="Tracé_450" data-name="Tracé 450" d="M195.073,122.56a2.609,2.609,0,0,1,2.468,2.6v15.609a32.27,32.27,0,1,1-64.54,0V125.39a2.6,2.6,0,0,1,2.831-2.6,67.467,67.467,0,0,0,43.98-11.245A2.6,2.6,0,0,1,183.773,113C185.382,118.932,189.77,122.258,195.073,122.56Z" transform="translate(-40.445 -57.57)" fill="#ffebd2"/>
|
||||
<path id="Tracé_451" data-name="Tracé 451" d="M163.653,111.4l-2.888,2.3a24.246,24.246,0,0,0-10.043-2.164,13.485,13.485,0,0,1-13.5-13.475V95.833l-.049-.121A32.274,32.274,0,0,0,157.1,65.887V50.278a2.609,2.609,0,0,0-2.468-2.6c-5.27-.3-9.681-3.59-11.3-9.558a2.6,2.6,0,0,0-3.961-1.455,67.47,67.47,0,0,1-43.98,11.245,2.6,2.6,0,0,0-2.831,2.6V65.887a32.274,32.274,0,0,0,19.933,29.825l-.049.121v2.226a13.485,13.485,0,0,1-13.5,13.475A24.246,24.246,0,0,0,88.9,113.7l-2.888-2.3a34.486,34.486,0,0,1-7.223-46.088A33.526,33.526,0,0,0,84.412,46.72V32.6A32.6,32.6,0,0,1,117.008,0h15.646a32.6,32.6,0,0,1,32.6,32.6V46.72a33.545,33.545,0,0,0,5.626,18.593A34.486,34.486,0,0,1,163.653,111.4Z" transform="translate(-0.005 17.315)" fill="#42434d"/>
|
||||
<path id="Tracé_452" data-name="Tracé 452" d="M218.381,299.1a32.358,32.358,0,0,1-25.51,0,20.2,20.2,0,0,0,.368-5.352l.049-.121a32.336,32.336,0,0,0,24.675,0l.049.121A20.194,20.194,0,0,0,218.381,299.1Z" transform="translate(-80.8 -180.603)" fill="#ffd6a6"/>
|
||||
<path id="Tracé_453" data-name="Tracé 453" d="M147.376,3.508a3.4,3.4,0,0,1-1.834,6.418q-1.537-.146-3.113-.147H126.784a32.6,32.6,0,0,0-32.6,32.6v3.966c0,2.342-1.63,2.266-1.63,4.163,0,17.218.07,16.128-.183,16.871-2.557,7.523-5.628,8.611-8.119,16.843A34.457,34.457,0,0,0,82.968,97.8a3.4,3.4,0,0,1-6.545,1.6,34.472,34.472,0,0,1,2.36-34.086A33.526,33.526,0,0,0,84.409,46.72V32.6A32.6,32.6,0,0,1,117,0h15.646a32.458,32.458,0,0,1,14.726,3.508Z" transform="translate(-0.002 17.315)" fill="#4d4e59"/>
|
||||
<path id="Tracé_454" data-name="Tracé 454" d="M159.085,186.545c4.87,3.26,1.158,10.8-4.371,8.859A32.065,32.065,0,0,1,133,164.927V149.545a2.605,2.605,0,0,1,2.833-2.6c1.249.113,2.621.2,4.1.248a4.968,4.968,0,0,1,4.8,4.974v7.543a32.156,32.156,0,0,0,14.349,26.833Z" transform="translate(-40.445 -81.725)" fill="#fff3e4"/>
|
||||
<path id="Tracé_455" data-name="Tracé 455" d="M113.365,342.8a2.074,2.074,0,0,1-1.227,3.716A24.3,24.3,0,0,0,87.78,370.821v8.56H80.609A2.608,2.608,0,0,1,78,376.773v-12.8a24.308,24.308,0,0,1,24.307-24.307,13.489,13.489,0,0,0,5.6-1.209l.081.176Z" transform="translate(-3.373 -210.82)" fill="#8ac4fd"/>
|
||||
<path id="Tracé_456" data-name="Tracé 456" d="M275.835,342.8a2.074,2.074,0,0,0,1.227,3.716,24.3,24.3,0,0,1,24.359,24.307v8.56h7.171a2.608,2.608,0,0,0,2.608-2.608v-12.8a24.308,24.308,0,0,0-24.307-24.307,13.49,13.49,0,0,1-5.6-1.209l-.081.176Z" transform="translate(-136.176 -210.82)" fill="#1689fb"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.7 KiB |
@@ -5,9 +5,6 @@ import {
|
||||
UPLOAD_MEDIA_PRES_REQUEST,
|
||||
UPLOAD_MEDIA_PRES_FAILURE,
|
||||
UPLOAD_MEDIA_PRES_SUCCESS,
|
||||
UPLOAD_MEDIA_CV_REQUEST,
|
||||
UPLOAD_MEDIA_CV_FAILURE,
|
||||
UPLOAD_MEDIA_CV_SUCCESS,
|
||||
} from "../types";
|
||||
|
||||
export function media(state = {
|
||||
@@ -47,23 +44,7 @@ export function media(state = {
|
||||
errors: action.errors,
|
||||
loading: false
|
||||
};
|
||||
case UPLOAD_MEDIA_CV_REQUEST:
|
||||
return {
|
||||
...state,
|
||||
loading: true
|
||||
};
|
||||
case UPLOAD_MEDIA_CV_SUCCESS:
|
||||
return {
|
||||
...state,
|
||||
...action.res.data,
|
||||
loading: false
|
||||
};
|
||||
case UPLOAD_MEDIA_CV_FAILURE:
|
||||
return {
|
||||
...state,
|
||||
errors: action.errors,
|
||||
loading: false
|
||||
};
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
import {
|
||||
UPLOAD_MEDIA_CV_REQUEST,
|
||||
UPLOAD_MEDIA_CV_FAILURE,
|
||||
UPLOAD_MEDIA_CV_SUCCESS,
|
||||
} from "../types";
|
||||
|
||||
export function mediaCv(state = {
|
||||
}, action = {}) {
|
||||
switch (action.type) {
|
||||
case UPLOAD_MEDIA_CV_REQUEST:
|
||||
return {
|
||||
...state,
|
||||
loading: true
|
||||
};
|
||||
case UPLOAD_MEDIA_CV_SUCCESS:
|
||||
return {
|
||||
...state,
|
||||
...action.res.data,
|
||||
loading: false
|
||||
};
|
||||
case UPLOAD_MEDIA_CV_FAILURE:
|
||||
return {
|
||||
...state,
|
||||
errors: action.errors,
|
||||
loading: false
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
||||
export const mediaCvErrorsSelector = state => {return !!state.mediaCv.errors ?state.mediaCv.errors.response.data:null};
|
||||
|
||||
export const errorMessageSelector = (state) => {
|
||||
let err = mediaCvErrorsSelector(state)
|
||||
if (!!!err)
|
||||
return null;
|
||||
switch(err.code)
|
||||
{
|
||||
case 500:
|
||||
return {message: "Le téléversement de votre video à échoué."}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import { emphasisCompanies } from "./reducers/emphasisCompanies";
|
||||
import { answer } from "./reducers/answer";
|
||||
import { answers } from "./reducers/answers";
|
||||
import { media } from "./reducers/media";
|
||||
import { mediaCv } from "./reducers/mediaCv";
|
||||
|
||||
export const exampleInitialState = {
|
||||
user: {
|
||||
@@ -41,6 +42,9 @@ export const exampleInitialState = {
|
||||
},
|
||||
media:{
|
||||
|
||||
},
|
||||
mediaCv:{
|
||||
|
||||
},
|
||||
answers:{
|
||||
data: {}
|
||||
@@ -57,5 +61,6 @@ export default combineReducers({
|
||||
emphasisCompanies,
|
||||
answer,
|
||||
media,
|
||||
mediaCv,
|
||||
answers
|
||||
});
|
||||
|
||||
@@ -26,9 +26,13 @@ import {
|
||||
uploadMediaFailure,
|
||||
uploadMediaPresSuccess,
|
||||
uploadMediaPresFailure,
|
||||
|
||||
} from "../actions/media";
|
||||
|
||||
import {
|
||||
uploadMediaCvSuccess,
|
||||
uploadMediaCvFailure
|
||||
} from "../actions/media";
|
||||
} from "../actions/mediaCv";
|
||||
import AuthRouter from "../pages/AuthRouter";
|
||||
|
||||
export function* postAdAnswerRequestSaga(action) {
|
||||
@@ -101,7 +105,7 @@ export function* uploadMediaPresSaga(action) {
|
||||
export function* uploadMediaCvSaga(action) {
|
||||
try {
|
||||
|
||||
const res = yield call(api.medias.uploadMediaCv, action.payload);
|
||||
const res = yield call(api.cv.uploadMediaCv, action.payload);
|
||||
|
||||
if (!!res.data)
|
||||
yield put(uploadMediaCvSuccess(res));
|
||||
|
||||
@@ -23,7 +23,7 @@ import _ from "lodash";
|
||||
export function* requestLoginSaga(action) {
|
||||
try {
|
||||
const res = yield call(api.user.login, action.data);
|
||||
|
||||
|
||||
if (!!res.token) {
|
||||
|
||||
localStorage.setItem('ttJWT', res.token)
|
||||
@@ -33,17 +33,14 @@ export function* requestLoginSaga(action) {
|
||||
yield put(userLoggedIn());
|
||||
yield put(fetchCurrentUserRequest());
|
||||
let url = localStorage.getItem('loginRedirect');
|
||||
console.log("requestLoginSaga1!!!!!!!!!!!!!! "+url)
|
||||
console.log(url)
|
||||
if (!!!url)
|
||||
url = "/"
|
||||
console.log(url)
|
||||
Router.push(url);
|
||||
// <Redirect to={url}/>
|
||||
console.log("requestLoginSaga2!!!!!!!!!!!!!! "+url)
|
||||
|
||||
//localStorage.setItem('loginRedirect', '/');
|
||||
} else{
|
||||
throw new Error("Mauvais identifiants.")
|
||||
throw new Error("Aucun compte n'est associé à cette adresse email. Vérifiez l'e-mail..")
|
||||
console.log("requestLoginSaga!!!!!!!!!!!!!! Mauvais identifiants.")
|
||||
}
|
||||
|
||||
@@ -51,7 +48,7 @@ export function* requestLoginSaga(action) {
|
||||
} catch (error) {
|
||||
setAuthorizationHeader();
|
||||
console.log("requestLoginSaga!!!!!!!!!!!!!! Mauvais identifiants.")
|
||||
yield put(requestLoginFailure({ message: "Mauvais identifiants" }));
|
||||
yield put(requestLoginFailure({ message: "Email ou mot de passe incorrect" }));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +118,7 @@ export function* requestNewsletterSubscribitionSaga(action) {
|
||||
} else
|
||||
console.error(res.data.message);
|
||||
if (_.startsWith(res.data.message, 'Unsuccessful: 400 MJ18')) {
|
||||
throw new Error("Existe déjà.")
|
||||
throw new Error("Cet utilisateur existe déjà.")
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err.message)
|
||||
@@ -143,12 +140,14 @@ export function* requestRegisterSaga(action) {
|
||||
yield put(sendConfirmationEmailRequest(res));
|
||||
Router.push(`/VerifyEmail/${action.payload.email}`);
|
||||
|
||||
} else
|
||||
throw new Error("L'inscription a échouée. Merci de contacter contact@talentstube.com")
|
||||
} else{
|
||||
throw new Error("Il existe déjà un compte Talent associé à cet e-mail ")
|
||||
}
|
||||
|
||||
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
yield put(registerUserFailure(err));
|
||||
yield put(registerUserFailure({ err: err, message: err.message }));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ const FacebookStrategy = require('passport-facebook').Strategy
|
||||
const LinkedInStrategy = require('passport-linkedin-oauth2').Strategy
|
||||
const bodyParser = require('body-parser');
|
||||
|
||||
const clePubliqueMailJet = "355697fac93fca865660734b4fdffaeb"
|
||||
const clePriveMailJet = "ddecf75321ca89c09e561857b13534c8"
|
||||
|
||||
passport.use(new FacebookStrategy({
|
||||
clientID: process.env.NODE_ENV === 'production' ? process.env.TT_FACEBOOK_ID : process.env.FACEBOOK_ID,
|
||||
clientSecret: process.env.NODE_ENV === 'production' ? process.env.TT_FACEBOOK_SECRET : process.env.FACEBOOK_SECRET,
|
||||
@@ -175,12 +178,31 @@ app.prepare()
|
||||
app.render(req, res, actualPage, queryParams)
|
||||
})
|
||||
|
||||
server.get('/ConfirmAccount/:token/:email/:url', (req, res) => {
|
||||
server.get('/ConfirmAccount/:token/:email', (req, res) => {
|
||||
const actualPage = '/ConfirmAccount'
|
||||
const queryParams = { token: req.params.token, email: req.params.email, url: req.params.url }
|
||||
const queryParams = { token: req.params.token, email: req.params.email }
|
||||
app.render(req, res, actualPage, queryParams)
|
||||
})
|
||||
|
||||
// server.post('/NewsletterSubscription', jsonParser, (req, res) => {
|
||||
|
||||
// let email = req.body.email;
|
||||
|
||||
// if (!!!email) {
|
||||
// res.status(404).json({ success: false, message: 'Mauvais paramètre.' });
|
||||
// }
|
||||
|
||||
// var mailjet = require('node-mailjet')
|
||||
// .connect(process.env.MJ_APIKEY_PUBLIC, process.env.MJ_APIKEY_PRIVATE)
|
||||
// let error = null;
|
||||
// let mailjetResponse = mailjet.post('contact')
|
||||
// .request({ Email: email })
|
||||
// .then(rep => res.json({ success: true }), rep => res.json({ success: false, message: rep.message }))
|
||||
// .catch((err) => {
|
||||
// });
|
||||
|
||||
// })
|
||||
|
||||
server.post('/NewsletterSubscription', jsonParser, (req, res) => {
|
||||
|
||||
let email = req.body.email;
|
||||
@@ -188,16 +210,86 @@ app.prepare()
|
||||
if (!!!email) {
|
||||
res.status(404).json({ success: false, message: 'Mauvais paramètre.' });
|
||||
}
|
||||
// var mailjet = require ('node-mailjet')
|
||||
// .connect(process.env.MJ_APIKEY_PUBLIC, process.env.MJ_APIKEY_PRIVATE)
|
||||
|
||||
// mailjet.post('contact')
|
||||
// .request({Email: email})
|
||||
// .catch((err)=>console.log(err));
|
||||
|
||||
// res.json({success:true});
|
||||
// })
|
||||
var mailjet = require('node-mailjet')
|
||||
.connect(process.env.MJ_APIKEY_PUBLIC, process.env.MJ_APIKEY_PRIVATE)
|
||||
.connect(clePubliqueMailJet, clePriveMailJet)
|
||||
let error = null;
|
||||
let mailjetResponse = mailjet.post('contact')
|
||||
.request({ Email: email })
|
||||
.then(rep => res.json({ success: true }), rep => res.json({ success: false, message: rep.message }))
|
||||
.catch((err) => {
|
||||
});
|
||||
|
||||
console.log("envoi du contact a mailjet")
|
||||
let mailjetResponse = mailjet
|
||||
.post('contact')
|
||||
.action("managemanycontacts")
|
||||
.request({
|
||||
"Contacts":[
|
||||
{
|
||||
"Email":email,
|
||||
"IsExcludedFromCampaigns":"false",
|
||||
"Properties":"object"
|
||||
}
|
||||
],
|
||||
"ContactsLists":[
|
||||
{
|
||||
"Action":"addforce",
|
||||
"ListID":"2400791"
|
||||
},
|
||||
|
||||
]
|
||||
})
|
||||
.then(rep => res.json({ success: true }), rep => {
|
||||
console.log("success")
|
||||
res.json({ success: false, message: rep.message })
|
||||
|
||||
})
|
||||
.catch((err) => console.log("erreur"));
|
||||
console.log("Fin envoi du contact a mailjet")
|
||||
// US technique 444
|
||||
// var mailjet2 = require('node-mailjet')
|
||||
// .connect('805b8adce80bc6aa9422ddff20bb4171', 'f3bce955f21bc9456d65245c50e8c512')
|
||||
|
||||
// console.log("envoi du mail avec mailjet laniau2")
|
||||
// let request = mailjet2.post("send", {'version': 'v3.1'})
|
||||
// .request({
|
||||
// "Messages":[
|
||||
// {
|
||||
// "From": {
|
||||
// "Email": "l.laniau@talentstube.com",
|
||||
// "Name": "Laurent"
|
||||
// },
|
||||
// "To": [
|
||||
// {
|
||||
// "Email": "l.laniau@talentstube.com",
|
||||
// "Name": "Laurent"
|
||||
// }
|
||||
// ],
|
||||
// "TemplateID": 2087555,
|
||||
// "TemplateLanguage": true,
|
||||
// "Variables": {
|
||||
// "prénom": "\"]]</title><!--[if !mso]><!-- --><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><!--<![endif]--><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><style type=\"text/css",
|
||||
// "lien": '<p style="display:inline-block;background:#36eda4;color:#ffffff;font-family:Arial,sans-serif;font-size:13px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;border-radius:3px"><span style="font-size:11px;text-align:center;background-color:#36eda4;color:#ffffff;font-family:Arial"><b> <a href="www.talentstube.com">Activer mon compte</a> </b></span></p>'
|
||||
// },
|
||||
// "Subject": "Test [[data:prénom:'Corentin']]",
|
||||
// "TextPart": "My first Mailjet email",
|
||||
// "HTMLPart": "<h3>Dear passenger 1, welcome to <a href='https://www.mailjet.com/'>Mailjet</a>!</h3><br />May the delivery force be with you!",
|
||||
// "CustomID": "AppGettingStartedTest"
|
||||
// }
|
||||
// ]
|
||||
// })
|
||||
// request
|
||||
// .then((result) => {
|
||||
// console.log(result.body)
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.log(err.statusCode)
|
||||
// })
|
||||
// mailer.sendTransactionnelEmail();
|
||||
// console.log("Fin envoi du mail a mailjet")
|
||||
})
|
||||
|
||||
server.post('/sendConfirmationEmail', jsonParser, (req, res) => {
|
||||
@@ -206,12 +298,11 @@ app.prepare()
|
||||
const email = req.body.email
|
||||
const nom = req.body.lastname
|
||||
const prenom = req.body.firstname
|
||||
console.log("prenom "+prenom)
|
||||
const url = req.body.adId
|
||||
console.log("Envoi d'email "+url)
|
||||
//const url = req.body.adId
|
||||
//console.log("Envoi d'email "+url)
|
||||
//TODO Ajouter le contexte de l'annonce
|
||||
//Envoyer URL
|
||||
const tokenUrl = `${process.env.FRONT_SERVER}/ConfirmAccount/${token}/${email}/${url}`
|
||||
const tokenUrl = `${process.env.FRONT_SERVER}/ConfirmAccount/${token}/${email}`
|
||||
console.log("tokenUrl "+tokenUrl)
|
||||
mailer.sendConfirmationEmail(nom, prenom, tokenUrl, email);
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const nodemailer = require("nodemailer");
|
||||
|
||||
const nodemailer = require("nodemailer");
|
||||
const mailFrom = "noreply@talentstube.io"
|
||||
const clePubliqueMailJet = "355697fac93fca865660734b4fdffaeb"
|
||||
const clePriveMailJet = "ddecf75321ca89c09e561857b13534c8"
|
||||
|
||||
function setup() {
|
||||
return nodemailer.createTransport({
|
||||
@@ -11,33 +14,151 @@ function setup() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
exports.sendTransactionnelEmail = function () {
|
||||
// US technique 444
|
||||
var mailjet2 = require('node-mailjet')
|
||||
.connect('805b8adce80bc6aa9422ddff20bb4171', 'f3bce955f21bc9456d65245c50e8c512')
|
||||
|
||||
console.log("envoi du mail avec mailjet laniau2")
|
||||
let request = mailjet2.post("send", {'version': 'v3.1'})
|
||||
.request({
|
||||
"Messages":[
|
||||
{
|
||||
"From": {
|
||||
"Email": "dev@talentstube.com",
|
||||
"Name": "Laurent"
|
||||
},
|
||||
"To": [
|
||||
{
|
||||
"Email": "dev@talentstube.com",
|
||||
"Name": "Laurent"
|
||||
}
|
||||
],
|
||||
"TemplateID": 2087555,
|
||||
"TemplateLanguage": true,
|
||||
"Variables": {
|
||||
"prénom": "\"]]</title><!--[if !mso]><!-- --><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><!--<![endif]--><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><style type=\"text/css",
|
||||
"lien": '<p style="display:inline-block;background:#36eda4;color:#ffffff;font-family:Arial,sans-serif;font-size:13px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;border-radius:3px"><span style="font-size:11px;text-align:center;background-color:#36eda4;color:#ffffff;font-family:Arial"><b> <a href="www.talentstube.com">Activer mon compte</a> </b></span></p>'
|
||||
},
|
||||
"Subject": "Test [[data:prénom:'ggg']]",
|
||||
"TextPart": "",
|
||||
"HTMLPart": "",
|
||||
"CustomID": "AppGettingStartedTest"
|
||||
}
|
||||
]
|
||||
})
|
||||
request
|
||||
.then((result) => {
|
||||
console.log(result.body)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err.statusCode)
|
||||
})
|
||||
}
|
||||
exports.sendConfirmationEmail = function (nom, prenom, tokenUrl, mail) {
|
||||
const tranport = setup();
|
||||
const email = {
|
||||
from: process.env.EMAIL_FROM,
|
||||
to: process.env.NODE_ENV === 'production'? mail : 'l.laniau@talentstube.com',
|
||||
subject: `Bienvenue ${mail} `,
|
||||
text: `
|
||||
Bonjour ${prenom} ${nom},
|
||||
// const tranport = setup();
|
||||
// const email = {
|
||||
// from: process.env.EMAIL_FROM,
|
||||
// to: process.env.NODE_ENV === 'production'? mail : 'l.laniau@talentstube.com',
|
||||
// subject: `Bienvenue ${mail} `,
|
||||
// text: `
|
||||
// Bonjour ${prenom} ${nom},
|
||||
|
||||
Veuillez cliquer sur le lien ci-dessous pour activer votre compte Talents Tube.
|
||||
// Veuillez cliquer sur le lien ci-dessous pour activer votre compte Talents Tube.
|
||||
|
||||
${tokenUrl}
|
||||
// ${tokenUrl}
|
||||
|
||||
*Ce lien ne peut être utilisé qu’une seule fois pour valider votre compte.
|
||||
// *Ce lien ne peut être utilisé qu’une seule fois pour valider votre compte.
|
||||
|
||||
Si vous n’êtes pas à l’origine de l’inscription sur Talents Tube, veuillez contacter le support Talents Tube.
|
||||
// Si vous n’êtes pas à l’origine de l’inscription sur Talents Tube, veuillez contacter le support Talents Tube.
|
||||
|
||||
Merci de votre compréhension.
|
||||
// Merci de votre compréhension.
|
||||
|
||||
Talents Tube
|
||||
// Talents Tube
|
||||
|
||||
`
|
||||
// };
|
||||
// var mailjet2 = require('node-mailjet')
|
||||
// .connect('805b8adce80bc6aa9422ddff20bb4171', 'f3bce955f21bc9456d65245c50e8c512')
|
||||
|
||||
// console.log("envoi du mail avec mailjet laniau2")
|
||||
// let request = mailjet2.post("send", {'version': 'v3.1'})
|
||||
// .request({
|
||||
// "Messages":[
|
||||
// {
|
||||
// "From": {
|
||||
// "Email": "l.laniau@talentstube.com",
|
||||
// "Name": "Laurent"
|
||||
// },
|
||||
// "To": [
|
||||
// {
|
||||
// "Email": "l.laniau@talentstube.com",
|
||||
// "Name": "Laurent"
|
||||
// }
|
||||
// ],
|
||||
// "TemplateID": 2087555,
|
||||
// "TemplateLanguage": true,
|
||||
// "Variables": {
|
||||
// "prénom": "\"]]</title><!--[if !mso]><!-- --><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><!--<![endif]--><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><style type=\"text/css",
|
||||
// "lien": '<p style="display:inline-block;background:#36eda4;color:#ffffff;font-family:Arial,sans-serif;font-size:13px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;border-radius:3px"><span style="font-size:11px;text-align:center;background-color:#36eda4;color:#ffffff;font-family:Arial"><b> <a href="www.talentstube.com">Activer mon compte</a> </b></span></p>'
|
||||
// },
|
||||
// "Subject": "Test [[data:prénom:'ggg']]",
|
||||
// "TextPart": "My first Mailjet email",
|
||||
// "HTMLPart": "<h3>Dear passenger 1, welcome to <a href='https://www.mailjet.com/'>Mailjet</a>!</h3><br />May the delivery force be with you!",
|
||||
// "CustomID": "AppGettingStartedTest"
|
||||
// }
|
||||
// ]
|
||||
// })
|
||||
// request
|
||||
// .then((result) => {
|
||||
// console.log(result.body)
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.log(err.statusCode)
|
||||
// })
|
||||
var mailjet2 = require('node-mailjet')
|
||||
.connect(clePubliqueMailJet, clePriveMailJet)
|
||||
|
||||
console.log("envoi du mail avec mailjet "+mailFrom)
|
||||
let request = mailjet2.post("send", {'version': 'v3.1'})
|
||||
.request({
|
||||
"Messages":[
|
||||
{
|
||||
"From": {
|
||||
"Email": mailFrom,
|
||||
"Name": "Talents Tube"
|
||||
},
|
||||
"To": [
|
||||
{
|
||||
"Email": mail,
|
||||
"Name": prenom
|
||||
}
|
||||
],
|
||||
"TemplateID": 2115317,
|
||||
"TemplateLanguage": true,
|
||||
"Variables": {
|
||||
"nom": nom,
|
||||
"prenom": prenom,
|
||||
// "tokenUrl": "<a href='"+tokenUrl+"'>Activer le compte</a>"
|
||||
"tokenUrl": tokenUrl
|
||||
},
|
||||
"Subject": "Bienvenue sur Talents Tube",
|
||||
"TextPart": "",
|
||||
"HTMLPart": "",
|
||||
"CustomID": "AppGettingStartedTest"
|
||||
}
|
||||
]
|
||||
})
|
||||
request
|
||||
.then((result) => {
|
||||
console.log(result.body)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err.statusCode)
|
||||
})
|
||||
// ,
|
||||
// html: `
|
||||
// `
|
||||
};
|
||||
|
||||
|
||||
tranport.sendMail(email);
|
||||
// tranport.sendMail(email);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ function setup() {
|
||||
const tranport = setup();
|
||||
const email = {
|
||||
from: process.env.EMAIL_FROM,
|
||||
to: "l.laniau@talentstube.com",
|
||||
to: "contact@talentstube.com",
|
||||
subject: "PWA feedback 💌⚡️",
|
||||
text: `
|
||||
Hello Team,
|
||||
|
||||