Skip to content

Commit 54cf95a

Browse files
committed
created app
0 parents  commit 54cf95a

31 files changed

+5623
-0
lines changed

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
```
12+
13+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14+
15+
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
16+
17+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
18+
19+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20+
21+
## Learn More
22+
23+
To learn more about Next.js, take a look at the following resources:
24+
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27+
28+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29+
30+
## Deploy on Vercel
31+
32+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33+
34+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

component/Footer.js

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import React from 'react'
2+
import styles from '../styles/Footer.module.css'
3+
export default function Footer() {
4+
return (
5+
<footer className={styles.footer}>
6+
<div className="container__fluid">
7+
<div className={styles.footer__body}>
8+
<div className={styles.footer__main}>
9+
<img className={styles.footer__logo} src="./logo.png" alt='logofooter'/>
10+
<h3>Powered by:</h3>
11+
<img className={styles.footer__logo2} src="./footer__logo-img.png" />
12+
</div>
13+
<div className={styles.footer__menu}>
14+
<div className={styles.menu_footer}>
15+
<ul >
16+
<li><a href="docs.html">Qo‘llanma </a></li>
17+
<li>
18+
<a href="/#howto">Loyihada qatnashish </a>
19+
</li>
20+
<li><a href="/#partners">Hamkorlar </a></li>
21+
</ul>
22+
</div>
23+
<div className={styles.menu_footer}>
24+
<ul >
25+
<li>
26+
<a href="https://github.com/uzbekvoice">
27+
<img
28+
29+
src="./github.png"
30+
/>
31+
<span >Github</span>
32+
</a>
33+
</li>
34+
<li>
35+
<a href="https://t.me/joinchat/P84ptL81sN8yNWRi">
36+
<img
37+
38+
src="./telegramm.png"
39+
/>
40+
<span>Telegram jamoa</span>
41+
</a>
42+
</li>
43+
<li>
44+
<a href="https://discourse.mozilla.org/c/voice/uz/">
45+
<img
46+
className="menu-footer-block-img"
47+
src="./mozila.png"
48+
/>
49+
<span>Mozilla discourse</span>
50+
</a>
51+
</li>
52+
</ul>
53+
</div>
54+
</div>
55+
</div>
56+
<h3 >UzbekVoice.ai © 2021. Barcha huquqlar himoyalangan.</h3>
57+
</div>
58+
</footer>
59+
)
60+
}

component/Header.js

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import styles from "../styles/Header.module.css";
2+
import Link from "next/link";
3+
import { useRouter } from "next/router";
4+
import Image from "next/image";
5+
6+
function Header() {
7+
const router = useRouter();
8+
9+
return (
10+
<div className={styles.header__main}>
11+
<Link href="/">
12+
<a>
13+
<img src="./logo.png" alt="logo" />
14+
</a>
15+
</Link>
16+
17+
<div className={styles.header__menu}>
18+
<Link href="/bosqich">
19+
<a className={router.pathname == "/bosqich" ? "item active" : "item"}>
20+
Bosqichlar
21+
</a>
22+
</Link>
23+
<Link href="/hakaton">
24+
<a className={router.pathname == "/hakaton" ? "item active" : "item"}>
25+
Hakaton
26+
</a>
27+
</Link>
28+
<Link href="/yangilik">
29+
<a
30+
className={router.pathname == "/yangilik" ? "item active" : "item"}
31+
>
32+
Yangiliklar
33+
</a>
34+
</Link>
35+
36+
<Link href="/resus">
37+
<a className={router.pathname == "/resus" ? "item active" : "item"}>
38+
Resuslar
39+
</a>
40+
</Link>
41+
<Link href="/ishtirok">
42+
<a className={router.pathname == "/ishtirok" ? "btn active" : "btn"}>
43+
Ishtirok eting
44+
</a>
45+
</Link>
46+
</div>
47+
</div>
48+
);
49+
}
50+
51+
export default Header;

component/Layout.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Header from "./Header";
2+
import Footer from "./Footer";
3+
import styles from "../styles/Home.module.css";
4+
5+
function Layout({ children }) {
6+
return (
7+
<>
8+
<div className="container__fluid">
9+
<Header />
10+
{children}
11+
12+
13+
</div>
14+
<Footer />
15+
</>
16+
);
17+
}
18+
19+
export default Layout;

next.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
}
5+
6+
module.exports = nextConfig

0 commit comments

Comments
 (0)