This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(void) | |
{ | |
printf("Hello, world!\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.editor-group-watermark > .letterpress{ | |
backgroung-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important; | |
opacity: .75; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Box, Center, Flex } from "@chakra-ui/react"; | |
import { Html, Head, Main, NextScript } from "next/document"; | |
export default function Document() { | |
return ( | |
<Html lang="jp"> | |
<Head /> | |
<body> | |
<img src="/logo.png" alt={"logo"} width={"50%"} /> | |
<Menu /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function Menu() { | |
return ( | |
<Flex | |
bg="#2C56A0" | |
w={"100%"} | |
color={"white"} | |
position={"sticky"} | |
top={"0"} | |
zIndex={"10"} | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Flex bg="#2C56A0" w={"100%"} color={"white"}> | |
<Box w={"25%"}> | |
<a href="/"> | |
<Box w={"100%"} color="white"> | |
<Center>HOME</Center> | |
</Box> | |
</a> | |
</Box> | |
<Box w={"25%"}> | |
<a href="user"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useEffect, useState } from "react"; | |
import { createHash } from "crypto"; | |
const STORAGE_TOKEN = "storage_token"; | |
const STORAGE_NAME = "storage_name"; | |
const admin_id = process.env.NEXT_PUBLIC_ADMIN_ID; | |
const admin_password = process.env.NEXT_PUBLIC_ADMIN_PASS; | |
const user_id = process.env.NEXT_PUBLIC_USER_ID; | |
const user_password = process.env.NEXT_PUBLIC_USER_PASS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button } from "@chakra-ui/react"; | |
import { createHash } from "crypto"; | |
import { useState } from "react"; | |
export default function Main() { | |
const [inputValue, setInputValue] = useState(""); | |
const [hash, setHash] = useState(""); | |
const encryptSha256 = () => { | |
const hash = createHash("sha256"); | |
hash.update(inputValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button, HStack, VStack } from "@chakra-ui/react"; | |
import { useState } from "react"; | |
import { UseLoginState } from "@/hooks/LoginState"; | |
export default function Main() { | |
const [InputId, setInputId] = useState(""); | |
const [InputPass, setInputPass] = useState(""); | |
const [isAdmin, isUser, userName, setIsLogin, setLogout] = | |
UseLoginState(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useEffect, useState } from "react"; | |
const STORAGE_TOKEN = "storage_token"; | |
const STORAGE_NAME = "storage_name"; | |
const admin_id = process.env.NEXT_PUBLIC_ADMIN_ID; | |
const admin_password = process.env.NEXT_PUBLIC_ADMIN_PASS; | |
const user_id = process.env.NEXT_PUBLIC_USER_ID; | |
const user_password = process.env.NEXT_PUBLIC_USER_PASS; | |
export function UseLoginState( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button, HStack, VStack } from "@chakra-ui/react"; | |
import { useState } from "react"; | |
import { UseLoginState } from "@/hooks/LoginState"; | |
export default function Main() { | |
const [InputId, setInputId] = useState(""); | |
const [InputPass, setInputPass] = useState(""); | |
const [isLogin, setIsLogin, setLogout] = UseLoginState(false); | |
function login() { |
NewerOlder