Skip to content

page #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Page of Tarot
## Build
`npm install`
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).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mahtaako tarkotuksella vai vahingossa olla tää og README?


`npm run dev`
## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

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.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Binary file added app/favicon.ico
Binary file not shown.
193 changes: 193 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
.container {
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
}

.tervetuloa {
font-size: 20px;
font-family: 'Courier New', Courier, monospace;
font-weight: bold;
}
Comment on lines +8 to +12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fonttikoko: 1.25rem

Tän vois nimetä uudestaan --> ehkä miettii oisko se joku tyyli mitä voi käyttää muuallakin vai onks se just tätä varten mieluiten varmaan kaikki nimet enkuks niin pysyy yhtenäisenä :)


.sidebar {
width: 250px;
background-color: rgba(231, 169, 240, 0.9);
padding: 0px;
position: fixed;
top: 0;
right: -250px;
height: 100%;
overflow-y: auto;
transition: right 0.3s;
z-index: 1000;
}

.sidebar.open {
right: 0;
}

.button {
border: none;
background-color: inherit;
padding: 10px 10px;
font-size: 14px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fontit ois hyvä olla rem pikseleiden sijaan --> jos rootin fonttikoko muttuu niin nää osaa mukautua sit siihen.

tän vois siis vaihtaa et 14px sijaan se ois 0.875rem

font-family: 'Courier New', Courier, monospace;
font-weight: bold;
cursor: pointer;
display: block;
width: 100%;
text-align: left;
}

.button:hover {
background: #eee;
}

.sidebar-content {
padding: 16px;
}

.sidebar ul {
list-style-type: none;
padding: 0;
}

.card-subject-button {
font-size: small;
position: absolute;
bottom: 40%;
left: 10%;
text-align: center;
background-color: pink;
}

.sidebar li {
margin-bottom: 10px;
}

.space-for-card {
width: 70%;
height: 60%;
display: flex;
flex-direction: column;
background-color: #fff;
justify-content: center;
align-items: center;
text-align: center;
font-size: 14px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.875rem

font-family: 'Courier New', Courier, monospace;
font-weight: bold;
margin: auto;
margin-top: 140px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
position: relative;
}

.page-of-tarot-bar {
width: 100%;
height: 50px;
background-color: rgb(237, 168, 243);
position: fixed;
top: 0;
left: 0;
text-align: center;
font-size: 24px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1,5rem

font-family: 'Courier New', Courier, monospace;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
}

.add1 {
width: 100%;
height: 40px;
background-color: rgb(6, 124, 6);
position: fixed;
top: 50px;
left: 0;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
}

.sidebar-toggle {
position: fixed;
top: 10px;
right: 10px;
z-index: 1001;
background-color: #ddd;
border: none;
padding: 10px;
border-radius: 4px;
cursor: pointer;
}

.nav-buttons {
display: flex;
justify-content: center;
margin-top: 100px;
gap: 0;
margin-left: 10px;

}

.nav-button {
background-color: #f0b3ff;
border: none;
padding: 2px 14px;
font-family: 'Courier New', Courier, monospace;
font-weight: bold;
cursor: pointer;
border-radius: 25px;
color: white;
text-align: center;
}

.nav-button:hover {
background-color: #da84ff;
}

.arrow-button {
font-size: 40px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.75rem --> vois muuttaa nää tohon ja et se vastaa 44px niin on standardi

font-family: 'Courier New', Courier, monospace;
font-weight: bold;
text-align: center;
cursor: pointer;
color: black;
background: none;
border: none;
position: absolute;
}

.arrow-left {
left: -40px;
top: 50%;
transform: translateY(-50%);
}

.arrow-up {
top: -45px;
left: 50%;
transform: translateX(-50%);
}

.arrow-right {
right: -40px;
top: 50%;
transform: translateY(-50%);
}

.arrow-down {
bottom: -40px;
left: 50%;
transform: translateX(-50%);
}
24 changes: 24 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
Comment on lines +7 to +10
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ei ehkä just akuutti, mut nää vois muuttaa jo nyt niin ei pääse unohtumaan


export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>
{children}
</body>
</html>
);
}
Loading