Skip to content

Commit

Permalink
sitemap and other
Browse files Browse the repository at this point in the history
  • Loading branch information
Пётр Безденежных authored and Пётр Безденежных committed Feb 13, 2024
1 parent f24ef3a commit de479b0
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 30 deletions.
4 changes: 4 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
siteUrl: 'https://menzorg.github.io/vshsdt',
generateRobotsTxt: true
}
56 changes: 37 additions & 19 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint",
"serve": "npx serve@latest out"
Expand All @@ -17,6 +18,7 @@
"framer-motion": "^10.17.9",
"i": "^0.3.7",
"next": "14.0.4",
"next-sitemap": "^4.2.3",
"npm": "^10.2.5",
"react": "^18",
"react-dom": "^18",
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
9 changes: 9 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *
User-agent: *
Allow: /

# Host
Host: https://menzorg.github.io/vshsdt

# Sitemaps
Sitemap: https://menzorg.github.io/vshsdt/sitemap.xml
9 changes: 9 additions & 0 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://menzorg.github.io/vshsdt/education</loc><lastmod>2024-02-13T06:17:12.574Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://menzorg.github.io/vshsdt/contacts</loc><lastmod>2024-02-13T06:17:12.574Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://menzorg.github.io/vshsdt/education/style-consultant</loc><lastmod>2024-02-13T06:17:12.574Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://menzorg.github.io/vshsdt/intro</loc><lastmod>2024-02-13T06:17:12.574Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://menzorg.github.io/vshsdt/enrollment</loc><lastmod>2024-02-13T06:17:12.574Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://menzorg.github.io/vshsdt</loc><lastmod>2024-02-13T06:17:12.574Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
4 changes: 4 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://menzorg.github.io/vshsdt/sitemap-0.xml</loc></sitemap>
</sitemapindex>
Binary file removed src/app/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const alegriya = Alegreya_Sans({
})

export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
title: 'ВШСДТ',
description: 'Высшаая Школа Стилистики Дизайна и Технологий',
}

export default function RootLayout({
Expand Down
21 changes: 13 additions & 8 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
'use client';

import { Flex, Text, Box, Link } from '@chakra-ui/react'
import { Flex, Text, Box, Link, useMediaQuery } from '@chakra-ui/react'
import NextLink from 'next/link'
import Image from 'next/image';
import Footer from '../components/footer';
import Header from '../components/header';
import { useState } from 'react'

export default function Home() {
const [ logo, setLogo ] = useState(0);
const logoObj = [ 'Group_72.jpg', 'pawel-czerwinski-O3i.jpg']
const [ opacity, setOpacity ] = useState(0);
const [ isMax959 ] = useMediaQuery('(max-width: 959px)')
return (
<Flex direction="column">
<Header/>
<Flex direction="column" align="center" p="5rem 2rem">
<Image onMouseOut={e=>{setLogo(0)}} onMouseOver={e=>{setLogo(1)}} src={logoObj[logo]} width='200' height="200" alt="logo" />
<Flex direction="column" align="center" p="6rem 2rem 1rem">
<Image onMouseOut={e=>{setOpacity(0)}} onMouseOver={e=>{setOpacity(1)}} src="pawel-czerwinski-O3i.jpg" width='200' height="200" alt="logo" style={{
position:'absolute',
opacity: opacity,
transition:'opacity 0.5s linear'
}} />
<Image src="Group_72.jpg" width='200' height="200" alt="logo" />
</Flex>
<Flex direction="column" align="center" p="1rem">
<Text textStyle="h1" color="black">ВЫСШАЯ ШКОЛА СТИЛИСТИКИ</Text>
<Text textStyle="h1" color="black">ДИЗАЙНА И ТЕХНОЛОГИЙ</Text>
<Flex direction="column" align="center" p="1rem" justify={'center'}>
<Text textStyle="h1" color="black" align={isMax959 ? 'center' : 'left'}>ВЫСШАЯ ШКОЛА СТИЛИСТИКИ</Text>
<Text textStyle="h1" color="black" align={isMax959 ? 'center' : 'left'}>ДИЗАЙНА И ТЕХНОЛОГИЙ</Text>
</Flex>
<Flex direction="row" mb="1.5rem" p="1rem" justifyContent="center" alignItems="center">
<Box p="1rem" sx={{ borderRight: '1px solid black' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Header(props: any) {
<Flex direction="row" align="center" height="35" bg="#F9F9F9" color="black" p={isMax959 ? 0 : "2rem 6rem"} sx={{position: 'fixed', width: '100%'}}>
<IconButton aria-label='menu' icon={<HamburgerIcon />} onClick={onOpen}></IconButton>
<Box color="secondary" m="0 auto">
<Text> ВШСДТ{props.pageName ? ` ⬤ ${props.pageName}` : ''}</Text>
<Text> <Link as={NextLink} title="Авторизация" href="/">ВШСДТ</Link>{props.pageName ? ` ⬤ ${props.pageName}` : ''}</Text>
</Box>
<Link as={NextLink} title="Авторизация" href="/intro"><IconProvider size='1.5rem' icon={<PiUserFill/>} /></Link>
<Drawer placement="left" onClose={onClose} isOpen={isOpen} size="md">
Expand Down

0 comments on commit de479b0

Please sign in to comment.