// Styles.js
// Define a styles object containing all style definitions
const styles = {
// Container for the main layout
container: {
flex: 1, // Take up the full available space
alignItems: 'center', // Center items horizontally
backgroundColor: '#F5F5F5', // Light gray background color
padding: 20, // Padding around the container
},
// Style for error text messages
errorText: {
color: 'red', // Red text color
fontSize: 23, // Large font size
marginTop: 10, // Margin at the top
},
// Style for headings
heading: {
fontSize: 30, // Large font size
marginBottom: 20, // Margin below the heading
fontWeight: 'bold', // Bold text
color: '#333', // Dark gray text color
},
// Container for input fields
inputContainer: {
flexDirection: 'row', // Arrange children in a row
alignItems: 'center', // Center items vertically
marginBottom: 20, // Margin below the container
backgroundColor: '#FFF', // White background
borderRadius: 10, // Rounded corners
shadowColor: 'grey', // Shadow color
shadowOffset: { width: 0, height: 2 }, // Shadow offset
shadowOpacity: 0.2, // Shadow opacity
shadowRadius: 3, // Shadow blur radius
elevation: 3, // Android shadow elevation
},
// Style for text input fields
input: {
flex: 1, // Take up remaining space in the row
padding: 15, // Padding inside the input
fontSize: 18, // Font size
},
// Style for buttons
button: {
backgroundColor: '#007BFF', // Blue background color
padding: 15, // Padding inside the button
marginLeft: 10, // Margin to the left
borderRadius: 10, // Rounded corners
},
// Style for button text
buttonText: {
color: '#fff', // White text color
fontWeight: 'bold', // Bold text
fontSize: 18, // Font size
},
// Container for displaying results
resultsContainer: {
backgroundColor: '#FFF', // White background
borderRadius: 10, // Rounded corners
shadowColor: '#000', // Shadow color
shadowOffset: { width: 0, height: 2 }, // Shadow offset
shadowOpacity: 0.2, // Shadow opacity
shadowRadius: 3, // Shadow blur radius
elevation: 3, // Android shadow elevation
padding: 20, // Padding inside the container
height: 300, // Fixed height
},
// Style for displaying a word
word: {
fontSize: 24, // Large font size
fontWeight: 'bold', // Bold text
marginBottom: 10, // Margin below the word
},
// Style for the play button
playButton: {
backgroundColor: '#2ecc71', // Green background color
width: 60, // Button width
height: 60, // Button height
borderRadius: 30, // Circular button
alignItems: 'center', // Center content horizontally
justifyContent: 'center', // Center content vertically
marginTop: 20, // Margin at the top
},
// Style for play button text/icon
playButtonText: {
color: '#fff', // White text color
fontSize: 20, // Font size
fontWeight: 'bold', // Bold text
},
// Container for result text
resultTextContainer: {
alignItems: 'center', // Center items horizontally
paddingTop: 20, // Padding at the top
},
// Style for result text
resultText: {
fontSize: 18, // Font size
marginBottom: 10, // Margin below the text
},
// Style for the clear button
clearButton: {
backgroundColor: '#FF4A4A', // Red background color
padding: 15, // Padding inside the button
marginTop: 20, // Margin at the top
borderRadius: 10, // Rounded corners
},
// Style for clear button text
clearButtonText: {
color: '#fff', // White text color
fontWeight: 'bold', // Bold text
fontSize: 18, // Font size
},
};
// Export the styles object for use in other files
export default styles;