-
Notifications
You must be signed in to change notification settings - Fork 55
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
24 changed files
with
284 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React, { useEffect } from 'react'; | ||
import { Text, View } from 'react-native'; | ||
import { useStyles, useTheme } from '../../../hooks'; | ||
import stylesheet from './styles'; | ||
|
||
interface SidebarInterface { | ||
navigation: any; | ||
} | ||
const AuthSidebar = ({ navigation }: SidebarInterface) => { | ||
const styles = useStyles(stylesheet); | ||
|
||
useEffect(() => { | ||
const unsubscribe = navigation.addListener('drawerClose', () => { | ||
// Code to handle drawer closing | ||
}); | ||
|
||
return unsubscribe; | ||
}, [navigation]); | ||
|
||
return ( | ||
<View style={styles.sidebar}> | ||
<Text style={styles.sidebarText}>AFK: Aligned Fam Kernel</Text> | ||
|
||
<View style={styles.container}> | ||
<Text style={styles.title}>All-in-one platform</Text> | ||
|
||
</View> | ||
|
||
|
||
<View style={styles.container}> | ||
<Text style={styles.textItem}>Connect or create an Account</Text> | ||
<Text style={styles.textItem}>Acces the AFK app</Text> | ||
</View> | ||
|
||
<View style={styles.container}> | ||
<Text style={styles.textItem}>Coming soon also in IOS and Android</Text> | ||
|
||
<View style={{flex:1, flexDirection:"row"}}> | ||
|
||
</View> | ||
</View> | ||
|
||
</View> | ||
); | ||
}; | ||
|
||
export default AuthSidebar; |
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,86 @@ | ||
import {Spacing, ThemedStyleSheet} from '../../../styles'; | ||
|
||
export default ThemedStyleSheet((theme) => ({ | ||
container: { | ||
marginVertical:10, | ||
color: theme.colors.text, | ||
}, | ||
sidebar: { | ||
width: '100%', | ||
height: '100%', | ||
backgroundColor: theme.colors.background, | ||
padding: 10, | ||
gap: 1, | ||
// borderRight:"1" | ||
}, | ||
sidebarText: { | ||
fontSize: 18, | ||
color: theme.colors.text, | ||
}, | ||
title: { | ||
fontWeight: 'bold', | ||
marginBottom: 16, | ||
color: theme.colors.text, | ||
}, | ||
item: { | ||
display: 'flex', | ||
width: '100%', | ||
height: 100, | ||
backgroundColor: theme.colors.background, | ||
// flex | ||
// flex: 1, | ||
flexDirection: 'row', | ||
// paddingVertical: 8, | ||
color: theme.colors.text, | ||
}, | ||
textItem: { | ||
backgroundColor: theme.colors.background, | ||
color: theme.colors.text, | ||
}, | ||
outsideContainer: { | ||
position: 'absolute', | ||
top: 0, | ||
right: 0, | ||
bottom: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
}, | ||
|
||
outside: { | ||
width: '100%', | ||
height: '100%', | ||
}, | ||
|
||
menuContainer: { | ||
position: 'absolute', | ||
zIndex: 1, | ||
}, | ||
menu: { | ||
position: 'absolute', | ||
height: 'auto', | ||
backgroundColor: theme.colors.divider, | ||
borderRadius: 16, | ||
overflow: 'hidden', | ||
shadowColor: theme.colors.shadow, | ||
shadowOffset: {width: 0, height: 2}, | ||
shadowRadius: 4, | ||
elevation: 2, | ||
}, | ||
|
||
menuItem: { | ||
flex: 1, | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
gap: Spacing.xxsmall, | ||
backgroundColor: theme.colors.surface, | ||
paddingHorizontal: Spacing.medium, | ||
paddingVertical: Spacing.small, | ||
}, | ||
menuItemLabel: { | ||
flex: 1, | ||
fontSize: 17, | ||
lineHeight: 22, | ||
color: theme.colors.text, | ||
}, | ||
})); |
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 |
---|---|---|
@@ -1,35 +1,28 @@ | ||
use afk::types::identity_types::{}; | ||
use starknet::{ | ||
ContractAddress, get_caller_address, storage_access::StorageBaseAddress, | ||
contract_address_const, get_block_timestamp, get_contract_address, ClassHash | ||
}; | ||
|
||
use afk::types::identity_types:: { | ||
|
||
ContractAddress, get_caller_address, storage_access::StorageBaseAddress, contract_address_const, | ||
get_block_timestamp, get_contract_address, ClassHash | ||
}; | ||
#[starknet::interface] | ||
pub trait IAfkId<T> { | ||
} | ||
pub trait IAfkId<T> {} | ||
|
||
#[starknet::contract] | ||
mod AfkIdentity { | ||
use core::num::traits::Zero; | ||
use starknet::{ | ||
ContractAddress, get_caller_address, storage_access::StorageBaseAddress, | ||
contract_address_const, get_block_timestamp, get_contract_address, ClassHash | ||
}; | ||
use core::num::traits::Zero; | ||
|
||
#[storage] | ||
struct Storage { | ||
id_user_exist:LegacyMap<ContractAddress, bool> | ||
id_user_exist: LegacyMap<ContractAddress, bool> | ||
} | ||
|
||
#[event] | ||
#[derive(Drop, starknet::Event)] | ||
enum Event { | ||
} | ||
enum Event {} | ||
|
||
#[abi(embed_v0)] | ||
impl FactoryIdImpl of super::IAfkId<ContractState> { | ||
|
||
} | ||
impl FactoryIdImpl of super::IAfkId<ContractState> {} | ||
} |
Oops, something went wrong.