-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
194 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import * as React from 'react'; | ||
import Svg, { Path, Rect } from 'react-native-svg'; | ||
|
||
const AbstinenceIcon = ({ size, ...props }) => ( | ||
<Svg width={size} height={size} viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}> | ||
<Rect width="25" height="25" rx="7" fill="#FEF0D6" /> | ||
<Path | ||
fill="#FCBC49" | ||
d="M12.258 5.823a1 1 0 0 1 1.484 0l2.593 2.873a1 1 0 0 0 .294.224l3.466 1.738a1 1 0 0 1 .44 1.353L18.682 15.6a1 1 0 0 0-.104.334l-.493 3.941a1 1 0 0 1-1.24.845l-3.598-.916a1 1 0 0 0-.494 0l-3.599.916a1 1 0 0 1-1.239-.845l-.493-3.94a1 1 0 0 0-.104-.335l-1.853-3.59a1 1 0 0 1 .44-1.352L9.37 8.92a1 1 0 0 0 .294-.224l2.593-2.873Z" | ||
/> | ||
</Svg> | ||
); | ||
|
||
export default AbstinenceIcon; |
15 changes: 15 additions & 0 deletions
15
app/src/components/illustrations/icons/StarsAbstinenceFeature.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as React from 'react'; | ||
import Svg, { Path } from 'react-native-svg'; | ||
|
||
function StarAbstinenceFeature() { | ||
return ( | ||
<Svg width={86} height={53} fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<Path | ||
fill="#FCBC49" | ||
d="M42.258.823a1 1 0 0 1 1.484 0l6.486 7.188c.084.093.184.169.295.224l8.572 4.298a1 1 0 0 1 .44 1.353l-4.553 8.816a1 1 0 0 0-.104.335l-1.23 9.838a1 1 0 0 1-1.24.845l-9.161-2.333a1.001 1.001 0 0 0-.494 0l-9.161 2.333a1 1 0 0 1-1.24-.845l-1.23-9.838a1 1 0 0 0-.104-.335l-4.553-8.816a1 1 0 0 1 .44-1.353l8.572-4.298a1 1 0 0 0 .295-.224L42.258.823ZM74.258 31.823a1 1 0 0 1 1.484 0l3.89 4.312a1 1 0 0 0 .295.224l5.168 2.59a1 1 0 0 1 .44 1.354l-2.753 5.33a1 1 0 0 0-.104.336l-.739 5.906a1 1 0 0 1-1.239.845l-5.453-1.388a.998.998 0 0 0-.494 0L69.3 52.72a1 1 0 0 1-1.24-.845l-.738-5.906a1 1 0 0 0-.104-.335l-2.754-5.331a1 1 0 0 1 .44-1.353l5.169-2.592a1 1 0 0 0 .294-.223l3.89-4.312ZM10.258 31.823a1 1 0 0 1 1.484 0l3.89 4.312a1 1 0 0 0 .295.224l5.168 2.59a1 1 0 0 1 .44 1.354l-2.753 5.33a1 1 0 0 0-.104.336l-.739 5.906a1 1 0 0 1-1.239.845l-5.453-1.388a.998.998 0 0 0-.494 0L5.3 52.72a1 1 0 0 1-1.239-.845l-.739-5.906a1 1 0 0 0-.104-.335L.464 40.303a1 1 0 0 1 .44-1.353l5.169-2.592a1 1 0 0 0 .294-.223l3.89-4.312Z" | ||
/> | ||
</Svg> | ||
); | ||
} | ||
|
||
export default StarAbstinenceFeature; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react'; | ||
import { View, Text, SafeAreaView, TouchableOpacity, Dimensions } from 'react-native'; | ||
|
||
import { storage } from '../../services/storage'; | ||
|
||
const AbstinenceSelection = ({ navigation }) => { | ||
const onClose = () => { | ||
navigation.goBack(); | ||
}; | ||
return ( | ||
<SafeAreaView | ||
style={{ | ||
justifyContent: 'start', | ||
marginTop: Dimensions.get('window').height * 0.3, | ||
}} | ||
className=" rounded-t-xl"> | ||
<View className="bg-white rounded-xl mx-5"> | ||
<View className=" flex w-full mb-2 px-2"> | ||
<Text className="text-center mb-3 text-xl mt-8 px-2 font-extrabold">Compteur d'abstinence</Text> | ||
<Text className="line text-lg text-justify color-black mb-5 mx-6 mt-2"> | ||
Il sera affiché sous votre calendrier et vous permettra de suivre vos jours consécutifs sans consommation | ||
d'alcool si vous avez fait le choix d'être abstinent. | ||
</Text> | ||
<Text className=" text-center mb-1 text-xl px-2 font-bold"> | ||
Voulez-vous activer le compteur d'abstinence ? | ||
</Text> | ||
<View className="flex flex-row justify-center p-2 mb-6 mt-2"> | ||
<TouchableOpacity | ||
className="justify-center items-center rounded-3xl h-12 w-24 bg-[#DE285E] mr-6" | ||
onPress={() => { | ||
onClose(); | ||
storage.set('@isAbstinent', true); | ||
}}> | ||
<Text className="text-xl color-white font-extrabold">Oui</Text> | ||
</TouchableOpacity> | ||
<TouchableOpacity | ||
className="justify-center items-center rounded-3xl h-12 w-24 bg-[#4030A5] mr-6" | ||
onPress={() => { | ||
onClose(); | ||
storage.set('@isAbstinent', false); | ||
}}> | ||
<Text className="text-xl color-white font-extrabold">Non</Text> | ||
</TouchableOpacity> | ||
</View> | ||
</View> | ||
</View> | ||
</SafeAreaView> | ||
); | ||
}; | ||
|
||
export default AbstinenceSelection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters