File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import TextField from '@mui/material/TextField' ;
3
+
4
+ const SearchBar = ( ) => {
5
+ return (
6
+ < TextField
7
+ label = "Search"
8
+ variant = "outlined"
9
+ fullWidth
10
+ style = { { maxWidth : 450 , height : '10px' } }
11
+ />
12
+ ) ;
13
+ } ;
14
+
15
+ export default SearchBar ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import NavBar from '../components/top/NavBar' ;
3
+ import SearchBar from '../components/marketplace/Searchbar' ;
4
+
5
+ const MarketplaceContainer = ( ) => {
6
+ return (
7
+ < div style = { containerStyles } >
8
+ < NavBar />
9
+ < div style = { contentStyles } >
10
+ < h1 style = { headingStyles } > Discover components built with ReacType</ h1 >
11
+ < p style = { subheadingStyles } >
12
+ Browse, save, and customize the latest components built by the community
13
+ </ p >
14
+ < SearchBar />
15
+ </ div >
16
+ </ div >
17
+ ) ;
18
+ } ;
19
+
20
+
21
+ const containerStyles : React . CSSProperties = {
22
+ backgroundColor : '#111' ,
23
+ minHeight : '100vh' ,
24
+ color : 'white' ,
25
+ } ;
26
+
27
+ const contentStyles : React . CSSProperties = {
28
+ textAlign : 'center' ,
29
+ padding : '100px 0' ,
30
+ } ;
31
+
32
+ const headingStyles : React . CSSProperties = {
33
+ fontSize : '2.5rem' ,
34
+ color : '#AAA' ,
35
+ fontWeight : 'normal' ,
36
+ marginBottom : '20px' ,
37
+ } ;
38
+
39
+ const subheadingStyles : React . CSSProperties = {
40
+ fontSize : '1.25rem' ,
41
+ color : '#777' ,
42
+ } ;
43
+
44
+ export default MarketplaceContainer ;
You can’t perform that action at this time.
0 commit comments