Skip to content

Commit a624301

Browse files
committed
Example button updated
1 parent 9885eaf commit a624301

File tree

4 files changed

+26
-27
lines changed

4 files changed

+26
-27
lines changed

app/containers/SidebarContainer/SidebarContainer.tsx

+15-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { Link } from 'react-router-dom';
33

44
import ListIcon from '@mui/icons-material/List';
55
import InfoIcon from '@mui/icons-material/Info';
6-
import ContactSupportIcon from '@mui/icons-material/ContactSupport';
76
import SettingsIcon from '@mui/icons-material/Settings';
7+
import CallIcon from '@mui/icons-material/Call';
8+
import LightbulbIcon from '@mui/icons-material/Lightbulb';
9+
import { Typography } from '@mui/material';
810

911
import './styles.scss';
1012
import { ApplicationContext } from '../../context/ApplicationContext';
@@ -125,7 +127,7 @@ const SidebarContainer = React.memo(() => {
125127
 About
126128
</Link>
127129
<Link className="sidebar-link" to="/contact" id="contact" onClick={handleClick}>
128-
<ContactSupportIcon
130+
<CallIcon
129131
style={{
130132
WebkitBoxSizing: 'content-box',
131133
boxShadow: 'none',
@@ -136,23 +138,31 @@ const SidebarContainer = React.memo(() => {
136138
&emsp;Contact
137139
</Link>
138140
<Link className="sidebar-link" to="/" id="dash" onClick={handleClick}>
141+
<LightbulbIcon
142+
style={{
143+
WebkitBoxSizing: 'content-box',
144+
boxShadow: 'none',
145+
width: '35px',
146+
height: '35px',
147+
}}
148+
/>
139149
{!example ?
140150

141151
<button
142152
className="example-button"
143153
onClick={() => handleExample()}
144154
>
145-
EXAMPLE
155+
Example
146156
</button>
147157
:
148158
<button
149159
className="example-button"
150160
onClick={() => handleExitExample()}
151161
>
152-
EXIT EXAMPLE
162+
Exit Example
153163
</button>
154-
155164
}
165+
156166
</Link>
157167
</div>
158168
</div>

app/containers/SidebarContainer/styles.scss

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@import '../../index.scss';
2+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
3+
24

35
.sidebar-container {
46
color: $background;
@@ -11,7 +13,7 @@
1113
}
1214

1315
.sidebar-container:hover .sidebar-link {
14-
width: 150px;
16+
width: 160px;
1517
}
1618

1719
.sidebar-container:hover .sidebar {
@@ -204,7 +206,7 @@
204206
overflow: hidden;
205207
z-index: 1;
206208
margin: 30px 15px;
207-
padding: 30px 5px;
209+
padding: 30px;
208210
display: flex;
209211
align-items: center;
210212
justify-content: left;
@@ -230,14 +232,11 @@
230232
}
231233
}
232234

233-
.example-button {
234-
height: 100px;
235-
width: 100px;
236-
color: whitesmoke;
237-
cursor: pointer;
238-
font-weight: 600;
235+
.example-button{
236+
font-size: 18px;
237+
font-family: roboto;
238+
font-weight: 100;
239+
font-size: medium;
239240
}
240241

241-
.example-button:hover {
242-
color: blue;
243-
}
242+

app/index.tsx

-10
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,13 @@ import { ThemeProvider, Theme, StyledEngineProvider } from '@mui/material';
1111
import App from './App';
1212
import WindowBar from './components/WindowBar/WindowBar';
1313

14-
// declare module '@mui/styles/defaultTheme' {
15-
// // eslint-disable-next-line @typescript-eslint/no-empty-interface
16-
// interface DefaultTheme extends Theme {}
17-
// }
18-
1914

2015
const theme = createTheme(adaptV4Theme({
2116
// v4 theme
2217
typography: {
2318
fontFamily: ['Roboto', 'sans-serif'].join(','),
2419
},
2520
}));
26-
// const theme = createTheme(adaptV4Theme({
27-
// typography: {
28-
// fontFamily: ['Roboto', 'sans-serif'].join(','),
29-
// },
30-
// }));
3121

3222
// React 17 Syntax below
3323
ReactDOM.render(

electron/models/UserModel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Insert the MongoDB URI for your private User database in place of the example URI provided below.
2-
const MONGO_URI = 'mongodb+srv://msofiasarhiri:[email protected]/';
2+
const MONGO_URI = '';
33

44
const mongoose = require('mongoose');
55

0 commit comments

Comments
 (0)