Skip to content

Commit

Permalink
fixed mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
Maija Y committed Oct 10, 2023
1 parent 81e5bc3 commit 80c2423
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions matrix-linear-trasformation-visualization/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ const Page: React.FC<React.PropsWithChildren> = () => {

return (
<div>
<h1 className={css`
font-size: 40px;
`}>
Matrix
</h1>

<div className={css`
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
`}>

<div className={css`
Expand Down Expand Up @@ -78,17 +73,21 @@ const Page: React.FC<React.PropsWithChildren> = () => {
alt="Picture of a fruitbowl"
/>
</div>
<p className={css`
padding: 8px;
`}> = </p>
<div className={css`
display: flex;
align-items: center;
`}>
<p className={css`
padding: 8px;
`}> = </p>

<div className={css`
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
width: 150px;
height: 150px;
<div className={css`
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
width: 150px;
height: 150px;
`}>
<img src="https://rage.github.io/introduction-to-matrix-calculus/static/c4b8116295cab8e3c208d824de6ffd01/5a46d/hedelmat.png"
alt="Matrix linear transformation visualization"
Expand All @@ -98,6 +97,8 @@ const Page: React.FC<React.PropsWithChildren> = () => {
transform: matrix(${a}, ${b}, ${c} , ${d}, 0, 0);
`}
/>
</div>


</div>

Expand Down

0 comments on commit 80c2423

Please sign in to comment.