Skip to content

Commit

Permalink
fix responsiveness on note page
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Aug 26, 2024
1 parent 0fd1ed1 commit ba1dc9a
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/typr-demo/IndexedDBBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const IndexedDBBrowser = ({ data, onDelete, router, searchParams, reset }) => {
onDelete(); // Fetch data again after deletion
};

const handleCreateNew = reset => {
const handleCreateNew = () => {
router.push("/typr");
reset();
};
Expand Down
134 changes: 120 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"swiper": "^8.0.0",
"swr": "^1.3.0",
"tailwindcss-border-gradient-radius": "^3.0.1",
"tiptypr": "^0.0.91",
"tiptypr": "^0.0.92",
"tsparticles": "^2.7.1",
"uuidv4": "^6.2.13",
"yup": "^0.32.11",
Expand Down Expand Up @@ -168,7 +168,7 @@
"tailwindcss-scoped-groups": "^2.0.0"
},
"optionalDependencies": {
"@prototypr/paper-interview": "^0.0.476",
"@prototypr/paper-interview": "^0.0.477",
"@prototypr/prototypr-postie": "^1.0.91"
}
}
8 changes: 4 additions & 4 deletions pages/note/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ export default function Post({
) : (
<>
{/* <img src={'/static/images/check.svg'} className="absolute opacity-20 p-6 h-[298px] mt-[60px] top-0 left-0 w-full object-cover"/> */}
<div className="h-fit overflow-hidden bg-gray-100">
<div className="w-[758px] group z-10 flex items-center justify-center bg-gray-50 mx-auto mt-32 mb-20 relative rounded-sm rounded-b-none shadow-lg h-fit">
<div className="group relative w-full h-full overflow-hidden bg-white group-hover:border-gray-100 shadow-lg p-6 transform -rotate-0 hover:rotate-0 transition-all duration-500 ease-in-out border border-opacity-0 border-gray-400 group-hover:border-opacity-100">
<div className="h-fit overflow-hidden bg-gray-100 px-2 md:px-0">
<div className="w-[758px] max-w-full px-2 md:px-0 group z-10 flex items-center justify-center bg-gray-50 mx-auto mt-20 md:mt-32 mb-20 relative rounded-sm rounded-b-none shadow-lg h-fit">
<div className="group relative w-full h-full overflow-hidden bg-white group-hover:border-gray-100 shadow-lg p-3 md:p-6 transform -rotate-0 hover:rotate-0 transition-all duration-500 ease-in-out border border-opacity-0 border-gray-400 group-hover:border-opacity-100">
<div className="inset-0 z-0">
<div className="relative bg-white p-6 flex flex-col justify-start h-full z-10">
<div className="relative bg-white p-0 md:p-6 flex flex-col justify-start h-full z-10">
<div className="mb-6 text-xs flex font-medium text-gray-500 tracking-tight uppercase p-1 px-2 bg-gray-100 rounded-full w-fit">
<Note className="w-4 h-4 mr-1" />
<div className="text-[11px]">Note</div>
Expand Down

0 comments on commit ba1dc9a

Please sign in to comment.