Skip to content

Commit

Permalink
Merge pull request #1 from WebmasterCamp/fa
Browse files Browse the repository at this point in the history
Fa
  • Loading branch information
Fafromh0mee authored Jul 21, 2024
2 parents d29f6bd + 691ea5d commit 745b08b
Show file tree
Hide file tree
Showing 11 changed files with 513 additions and 19 deletions.
1 change: 1 addition & 0 deletions app/components/carousel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//
46 changes: 46 additions & 0 deletions app/components/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from "react";

const Footer = () => {
return (
<footer className="footer bg-base-200 text-base-content p-10">
<aside>
<svg
width="50"
height="50"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
fillRule="evenodd"
clipRule="evenodd"
className="fill-current"
>
<path d="M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"></path>
</svg>
<p>
Premieum Quest.CO
<br />
Copyright © 2024 - All right reserved by Premieum Quest.CO
</p>
</aside>
<nav>
<h6 className="footer-title">Services</h6>
<a className="link link-hover">Tax Package</a>
<a className="link link-hover">Design</a>
<a className="link link-hover">Marketing</a>
</nav>
<nav>
<h6 className="footer-title">Company</h6>
<a className="link link-hover">About us</a>
<a className="link link-hover">Contact</a>
<a className="link link-hover">Our goals</a>
</nav>
<nav>
<h6 className="footer-title">Legal</h6>
<a className="link link-hover">Terms of use</a>
<a className="link link-hover">Privacy policy</a>
<a className="link link-hover">Cookie policy</a>
</nav>
</footer>
);
};

export default Footer;
109 changes: 109 additions & 0 deletions app/components/navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
import * as React from "react";
import AppBar from "@mui/material/AppBar";
import Box from "@mui/material/Box";
import Toolbar from "@mui/material/Toolbar";
import IconButton from "@mui/material/IconButton";
import Typography from "@mui/material/Typography";
import Menu from "@mui/material/Menu";
import MenuIcon from "@mui/icons-material/Menu";
import Container from "@mui/material/Container";
import Avatar from "@mui/material/Avatar";
import Button from "@mui/material/Button";
import Tooltip from "@mui/material/Tooltip";
import MenuItem from "@mui/material/MenuItem";
import AdbIcon from "@mui/icons-material/Adb";
import Image from "next/image";

const pages = ["Home", "Blog", "Quest"];
const settings = ["Profile", "Account", "Dashboard", "Logout"];

function ResponsiveAppBar() {
const [anchorElNav, setAnchorElNav] = React.useState(null);
const [anchorElUser, setAnchorElUser] = React.useState(null);

const handleOpenNavMenu = (event) => {
setAnchorElNav(event.currentTarget);
};
const handleOpenUserMenu = (event) => {
setAnchorElUser(event.currentTarget);
};

const handleCloseNavMenu = () => {
setAnchorElNav(null);
};

const handleCloseUserMenu = () => {
setAnchorElUser(null);
};

return (
<AppBar position="static">
<Container maxWidth="xl">
<Toolbar disableGutters>
<Image src="/logo.png" width={100} height={100} />
{/* <AdbIcon sx={{ display: { xs: "flex", md: "none" }, mr: 1 }} /> */}
<Typography
variant="h5"
noWrap
component="a"
href="#app-bar-with-responsive-menu"
sx={{
mr: 2,
display: { xs: "flex", md: "none" },
flexGrow: 1,
fontFamily: "monospace",
fontWeight: 700,
letterSpacing: ".3rem",
color: "inherit",
textDecoration: "none",
}}
>
LOGO
</Typography>
<Box sx={{ flexGrow: 1, display: { xs: "none", md: "flex" } }}>
{pages.map((page) => (
<Button
key={page}
onClick={handleCloseNavMenu}
sx={{ my: 2, color: "white", display: "block" }}
>
{page}
</Button>
))}
</Box>

<Box sx={{ flexGrow: 0 }}>
<Tooltip title="Open settings">
<IconButton onClick={handleOpenUserMenu} sx={{ p: 0 }}>
<Avatar alt="Remy Sharp" src="/static/images/avatar/2.jpg" />
</IconButton>
</Tooltip>
<Menu
sx={{ mt: "45px" }}
id="menu-appbar"
anchorEl={anchorElUser}
anchorOrigin={{
vertical: "top",
horizontal: "right",
}}
keepMounted
transformOrigin={{
vertical: "top",
horizontal: "right",
}}
open={Boolean(anchorElUser)}
onClose={handleCloseUserMenu}
>
{settings.map((setting) => (
<MenuItem key={setting} onClick={handleCloseUserMenu}>
<Typography textAlign="center">{setting}</Typography>
</MenuItem>
))}
</Menu>
</Box>
</Toolbar>
</Container>
</AppBar>
);
}
export default ResponsiveAppBar;
18 changes: 9 additions & 9 deletions app/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"use client"
import { useEffect, useState } from "react";
import Box2 from "./components/box2";
"use client";
import Image from "next/image";
import AppBar from "./components/navbar";
// import Carousel from "./components/carousel";
import Footer from "./components/footer";

export default function Home() {

return (
<main className="flex gap-5 relative font-Itim">
<div className="bg-[#DEF9C4] -z-20 absolute w-full h-full"></div>
<div className="min-h-screen flex w-full justify-center mt-52">
<Box2 salary={250000} />
</div>
<main className="">
<AppBar />
{/* <Carousel /> */}
<Footer />
</main>
);
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@material-tailwind/react": "^2.1.9",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/styled-engine-sc": "^6.0.0-alpha.18",
"next": "14.2.5",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"styled-components": "^6.1.12"
},
"devDependencies": {
"daisyui": "^4.12.10",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"postcss": "^8",
Expand Down
Binary file added public/alexander-grey--8a5eJ1-mmQ-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/alexander-grey-8lnbXtxFGZw-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/charlesdeluvio-OqxPH8c1UFE-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
require("daisyui"),
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
plugins: [require("daisyui")],
theme: {
extend: {
backgroundImage: {
Expand All @@ -17,5 +19,4 @@ module.exports = {
Itim : ["Itim", "sans-serif"]
}
},
plugins: [],
};
Loading

0 comments on commit 745b08b

Please sign in to comment.