Skip to content

Commit

Permalink
Added max-width
Browse files Browse the repository at this point in the history
  • Loading branch information
GHWang28 committed Oct 9, 2023
1 parent dbb6127 commit 3da3984
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/src/component/StyleComponents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Example = (props) => {
const [expand, setExpand] = React.useState(false);

return (
<Box sx={{ boxShadow: 'rgba(0, 0, 0, 0.2) 0px 5px 15px', borderRadius: '15px'}} my={2}>
<Box sx={{ boxShadow: 'rgba(0, 0, 0, 0.2) 0px 5px 15px', borderRadius: '15px' }} my={2}>
<Box sx={{ cursor: 'pointer' }} p={1} onClick={() => setExpand(!expand)}>
<Body>
<span>{expand ? '⬇️' : '⬆️'}</span>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/page/Style/StyleCSS.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const StyleCSS = ({}) => {
const emoji = '🎨';

return (
<>

<section style={{ maxWidth: 'calc(100vw - 100px)' }}>
<H3>{emoji} 2. CSS Style Guide</H3>

<Body>The assignments in COMP6080 all have a portion of their marks allocated to code style. As such, it is <b>highly</b> recommended for students to have a read through this style guide.</Body>
Expand Down Expand Up @@ -547,7 +546,7 @@ div {
`
]}
/>
</>
</section>
);
};

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/page/Style/StyleHtml.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const StyleHtml = ({}) => {
const emoji = '📜';

return (
<>
<section style={{ maxWidth: 'calc(100vw - 100px)' }}>

<H3>{emoji} 1. HTML Style Guide</H3>

Expand Down Expand Up @@ -692,7 +692,7 @@ to the next row when the viewport's width gets small enough -->
]}
/>

</>
</section>
);
};

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/page/Style/StyleJavascript.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const StyleJavascript = ({}) => {
const emoji = '🔧';

return (
<>
<section style={{ maxWidth: 'calc(100vw - 100px)' }}>
<H3>{emoji} 3. JavaScript</H3>

<Body>The assignments in COMP6080 all have a portion of their marks allocated to code style. As such, it is <b>highly</b> recommended for students to have a read through this style guide.</Body>
Expand Down Expand Up @@ -556,7 +556,7 @@ const fooObj = {
}`
]}
/>
</>
</section>
);
};

Expand Down
5 changes: 2 additions & 3 deletions frontend/src/page/Style/StyleReact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const StyleReact = ({}) => {
const emoji = '⚛️';

return (
<>

<section style={{ maxWidth: 'calc(100vw - 100px)' }}>
<H3>{emoji} 4. ReactJS</H3>

<Body>The assignments in COMP6080 all have a portion of their marks allocated to code style. As such, it is <b>highly</b> recommended for students to have a read through this style guide.</Body>
Expand Down Expand Up @@ -532,7 +531,7 @@ const App = () => {
}`
]}
/>
</>
</section>
);
};

Expand Down

0 comments on commit 3da3984

Please sign in to comment.