Skip to content

Commit

Permalink
add image (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
everaertdorothee authored Sep 12, 2023
1 parent 2635e5a commit 03bf1ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Binary file added assets/images/saamregels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions components/CountDownTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default CountdownTimer;
const styles = StyleSheet.create({
countdown: {
marginHorizontal: 8,
marginBottom: 8,
},
countdownTitle: {
color: 'white',
Expand Down
18 changes: 18 additions & 0 deletions screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import BasicCard from '../components/BasicCard';
import { HomeScreenSection } from '../models/HomeScreenSection';
import { HOME_ITEMS } from '../constants/Strings';
import { useDataContext } from '../hooks/useDataContext';
import ContentCard from '../components/ContentCard';
import { Text } from '../components/Themed/Text';

const HomeScreen: React.FC = () => {
const { data, refreshContext, refreshing } = useDataContext();
Expand All @@ -30,6 +32,15 @@ const HomeScreen: React.FC = () => {
>
<ScrollView style={{ height: '100%', paddingVertical: 8 }}>
<CountdownTimer targetDate={new Date('2023-09-22T20:00:00+02:00')} />

<ContentCard
containerStyle={styles.saamregels}
palette="fosBlue"
backgroundImage={require('../assets/images/saamregels.png')}
>
<Text style={styles.countdownTitle}></Text>
</ContentCard>

{data
?.filter((x) => x.key === HOME_ITEMS)[0]
.content?.map((item: HomeScreenSection) => (
Expand Down Expand Up @@ -87,4 +98,11 @@ const styles = StyleSheet.create({
borderBottomWidth: 2,
marginTop: 10,
},
saamregels: {
marginHorizontal: 8,
height: 200,
},
countdownTitle: {
height: '100%',
},
});

0 comments on commit 03bf1ea

Please sign in to comment.