Skip to content

Commit d5fd27a

Browse files
author
Vivek Patel
committed
Updated UI in web-view
1 parent e333296 commit d5fd27a

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

screens/home.js

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export default function App({ navigation }) {
3838
style={styles.algoBox}
3939
onPress={() => navigation.navigate("FCFS Algorithm", Algorithms[0])}
4040
>
41-
<View style={styles.algoBox} backgroundColor="rgb(5, 116, 95)">
41+
<View
42+
style={[styles.algoBox, { backgroundColor: "rgb(5, 116, 95)" }]}
43+
>
4244
<LinearGradient
4345
colors={["rgba(59,223,210,0.8)", "transparent"]}
4446
style={styles.algoBgColor}
@@ -56,7 +58,9 @@ export default function App({ navigation }) {
5658
style={styles.algoBox}
5759
onPress={() => navigation.navigate("SJF Algorithm", Algorithms[1])}
5860
>
59-
<View style={styles.algoBox} backgroundColor="rgb(25,84,123)">
61+
<View
62+
style={[styles.algoBox, { backgroundColor: "rgb(25,84,123)" }]}
63+
>
6064
<LinearGradient
6165
colors={["rgba(255, 170, 34,0.8)", "transparent"]}
6266
style={styles.algoBgColor}
@@ -74,7 +78,9 @@ export default function App({ navigation }) {
7478
style={styles.algoBox}
7579
onPress={() => navigation.navigate("SRTF Algorithm", Algorithms[2])}
7680
>
77-
<View style={styles.algoBox} backgroundColor="rgb(1, 95, 223)">
81+
<View
82+
style={[styles.algoBox, { backgroundColor: "rgb(1, 95, 223)" }]}
83+
>
7884
<LinearGradient
7985
colors={["rgba(30, 210, 252,0.8)", "transparent"]}
8086
style={styles.algoBgColor}
@@ -94,7 +100,9 @@ export default function App({ navigation }) {
94100
navigation.navigate("Round Robin Algorithm", Algorithms[3])
95101
}
96102
>
97-
<View style={styles.algoBox} backgroundColor="rgb(250, 5, 17)">
103+
<View
104+
style={[styles.algoBox, { backgroundColor: "rgb(255, 170, 34)" }]}
105+
>
98106
<LinearGradient
99107
colors={["rgba(182, 10, 250, 0.95)", "transparent"]}
100108
style={styles.algoBgColor}
@@ -115,7 +123,12 @@ export default function App({ navigation }) {
115123
style={styles.algoBox}
116124
onPress={() => navigation.navigate("LJF Algorithm", Algorithms[4])}
117125
>
118-
<View style={styles.algoBox} backgroundColor="rgb(178, 138, 242)">
126+
<View
127+
style={[
128+
styles.algoBox,
129+
{ backgroundColor: "rgb(178, 138, 242)" },
130+
]}
131+
>
119132
<LinearGradient
120133
colors={["rgba(59, 31, 165,0.8)", "transparent"]}
121134
style={styles.algoBgColor}
@@ -133,7 +146,9 @@ export default function App({ navigation }) {
133146
style={styles.algoBox}
134147
onPress={() => navigation.navigate("LRTF Algorithm", Algorithms[5])}
135148
>
136-
<View style={styles.algoBox} backgroundColor="rgb(255, 170, 34)">
149+
<View
150+
style={[styles.algoBox, { backgroundColor: "rgb(255, 170, 34)" }]}
151+
>
137152
<LinearGradient
138153
colors={["rgba(121, 74, 0,0.8)", "transparent"]}
139154
style={styles.algoBgColor}
@@ -153,7 +168,12 @@ export default function App({ navigation }) {
153168
navigation.navigate("PRIORITY SCHEDULING(P)", Algorithms[6])
154169
}
155170
>
156-
<View style={styles.algoBox_P} backgroundColor="rgb(250, 15, 15)">
171+
<View
172+
style={[
173+
styles.algoBox_P,
174+
{ backgroundColor: "rgb(250, 15, 15)" },
175+
]}
176+
>
157177
<LinearGradient
158178
colors={["rgba(238, 234, 27,0.8)", "transparent"]}
159179
style={styles.algoBgColor}
@@ -183,7 +203,12 @@ export default function App({ navigation }) {
183203
navigation.navigate("PRIORITY SCHEDULING(NP)", Algorithms[7])
184204
}
185205
>
186-
<View style={styles.algoBox_P} backgroundColor="rgb(250, 15, 15)">
206+
<View
207+
style={[
208+
styles.algoBox_P,
209+
{ backgroundColor: "rgb(250, 15, 15)" },
210+
]}
211+
>
187212
<LinearGradient
188213
colors={["rgba(238, 234, 27,0.8)", "transparent"]}
189214
style={styles.algoBgColor}
@@ -211,7 +236,9 @@ export default function App({ navigation }) {
211236
style={styles.historyBox}
212237
onPress={() => navigation.navigate("Input History")}
213238
>
214-
<View style={styles.historyBoxView} backgroundColor="#45B649">
239+
<View
240+
style={[styles.historyBoxView, { backgroundColor: "#45B649" }]}
241+
>
215242
<LinearGradient
216243
colors={["#DCE35B", "transparent"]}
217244
style={styles.algoBgColor}

0 commit comments

Comments
 (0)