diff --git a/frontend/src/app/components/icons/link.jsx b/frontend/src/app/components/icons/link.jsx new file mode 100644 index 0000000..8adcc73 --- /dev/null +++ b/frontend/src/app/components/icons/link.jsx @@ -0,0 +1,37 @@ +import React from "react"; + +const Link = ({ color = "#969AF9", width = "24", height = "24" }) => { + return ( + + + + + + ); +}; + +export default Link; diff --git a/frontend/src/app/components/icons/sun.jsx b/frontend/src/app/components/icons/sun.jsx new file mode 100644 index 0000000..2cbc03a --- /dev/null +++ b/frontend/src/app/components/icons/sun.jsx @@ -0,0 +1,30 @@ +import React from "react"; + +const sun = () => { + return ( + + + + + ); +}; + +export default sun; diff --git a/frontend/src/app/components/navbar/styles.module.css b/frontend/src/app/components/navbar/styles.module.css index 3554845..968af4b 100644 --- a/frontend/src/app/components/navbar/styles.module.css +++ b/frontend/src/app/components/navbar/styles.module.css @@ -24,7 +24,9 @@ height: 61px; align-items: center; gap: 10px; + padding-right: 10px; flex-shrink: 0; + align-self: stretch; } .mainContainer { diff --git a/frontend/src/app/home/page.jsx b/frontend/src/app/home/page.jsx index bc6fd2c..a45467b 100644 --- a/frontend/src/app/home/page.jsx +++ b/frontend/src/app/home/page.jsx @@ -1,7 +1,13 @@ +"use client"; + import React from "react"; import userDashboardStyle from "./styles.module.css"; - +import LinkIcon from "../components/icons/link"; +import SunIcon from "../components/icons/sun"; +import Link from "next/link"; +import useIsMobile from "../hooks/useIsMobile"; const HomePage = () => { + const isMobile = useIsMobile(); return ( // Main
@@ -9,32 +15,11 @@ const HomePage = () => {
{/* User Name */}
- {/* Name and Welcome Msg */} + {/* Name and Welcome Msg Section */}
{/* Weather */}
- - - - +

Friday, Feb 23 rd @@ -48,7 +33,7 @@ const HomePage = () => {

- {/* Logo */} + {/* Image Section*/}
@@ -57,38 +42,15 @@ const HomePage = () => {
- - - - - -

- Connected to https://isaac.dev.onecoopbank.com -

+
+ {isMobile ? ( + + ) : ( + + )} +

Connected to

+
+ https://isaac.dev.onecoopbank.com
diff --git a/frontend/src/app/home/styles.module.css b/frontend/src/app/home/styles.module.css index baded54..d22cc5d 100644 --- a/frontend/src/app/home/styles.module.css +++ b/frontend/src/app/home/styles.module.css @@ -11,7 +11,6 @@ flex: 1 0 0; align-self: stretch; background: #191a24; - background: color(display-p3 0.098 0.102 0.1373); } .userDashContainer { display: flex; @@ -20,7 +19,6 @@ flex: 1 0 0; align-self: stretch; background: #191a24; - background: color(display-p3 0.098 0.102 0.1373); } .userNameContainer { display: flex; @@ -29,14 +27,7 @@ align-items: center; align-self: stretch; border-radius: 8px; - border-radius: 8px; background: linear-gradient(180deg, #21232f 0%, #34366f 100%); - background: linear-gradient( - 180deg, - color(display-p3 0.1294 0.1373 0.1804) 0%, - color(display-p3 0.205 0.2122 0.4215) 100% - ); - position: relative; overflow: hidden; } .nameSection { @@ -48,20 +39,24 @@ } .logoSection { display: flex; - padding-right: 16px; + padding-right: 0.157px; flex-direction: column; justify-content: flex-end; align-items: center; align-self: stretch; - position: absolute; - right: 0; + position: relative; } + .gradientGlass { - width: 345.503px; + max-width: 345.503px; height: 345.503px; - transform: rotate(3.836deg) translateX(-20px); + transform: rotate(3.836deg); aspect-ratio: 1/1; background: url(/images/idp.png) 50% / cover no-repeat; + pointer-events: none; + position: absolute; + right: 0; + top: 0; } .weather { display: flex; @@ -131,31 +126,90 @@ align-self: stretch; } .link { + display: flex; + gap: 5px; + align-items: center; +} +.linkIcon { display: flex; align-items: center; gap: 10px; align-self: stretch; } -.link > p { +.link, +.linkIcon > p { color: #959aff; - color: color(display-p3 0.5892 0.6031 0.9766); font-family: Inter; font-size: 18px; font-style: normal; font-weight: 400; line-height: normal; letter-spacing: -0.18px; - width: 463px; -} - -/* Tablet */ -@media (max-width: 1024px) { + /* width: 463px; */ } /* Mobile */ @media (max-width: 768px) { + .mainContainer { + padding: 16px; + } + .userDashContainer { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 16px; + flex: 1 0 0; + } + .userNameContainer { + border-radius: 12px; + flex-direction: column; + gap: 24px; + } + .linkMainContainer { + padding: 10px; + border-radius: 12px; + background: #1e202e; + } + .welcomeMsg { + align-self: stretch; + font-size: 36px; + line-height: normal; + letter-spacing: 0.36px; + } + + .logoSection { + display: flex; + height: 144px; + justify-content: flex-end; + align-items: flex-end; + gap: 10px; + align-self: stretch; + } + .gradientGlass { + left: -29.114px; + } + + .link { + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + gap: 10px; + align-self: stretch; + } + .linkIcon > p { + color: #d2d3e1; + font-size: 14px; + } } -/* Small Mobile */ -@media (max-width: 400px) { +/* Tablet */ +@media (max-width: 1199px) { + .userNameContainer { + align-items: flex-start; + } + /* Pwede butngan ani pero modako lagi ang card */ + /* .logoSection { + padding-right: 369px; + } */ }