Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"purge": "rm -rf node_modules"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.14.11",
"autoprefixer": "^9.8.5",
"postcss-cli": "^7.1.1",
"react": "18.2.0",
Expand Down
38 changes: 27 additions & 11 deletions src/components/CoolSection/cool.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
import React from "react"

export const Cool = () => (
<section className="section section-cool">
<div className="flex-row">
<h2 className="profile-heading">Something cool</h2>
<p className="profile-caption">trust me</p>
<p className="profile-intro">Coming soon...</p>
</div>
</section>
)
import React, { useState } from "react"
import { Typography, Rating } from "@mui/material"
export const Cool = () => {
const [value, setValue] = useState()
console.log(value)
return (
<section className="section section-cool">
<div className="flex-row">
<h2 className="profile-heading">Something cool</h2>
<p className="profile-caption">trust me</p>
<p className="profile-intro">Coming soon...</p>
<Typography component="legend">Rate it?</Typography>
<Rating
name="simple-controlled"
value={value}
onChange={(event, newValue) => {
setValue(newValue)
}}
/>
<Typography component="legend">How cool is this website?</Typography>
<Rating name="read-only" value={5} readOnly />
<Typography component="legend">things!</Typography>
<Rating name="no-value" defaultValue={4.5} precision={0.5} />
</div>
</section>
)
}
Loading