-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from luck-js/develop
v1.6-alpha
- Loading branch information
Showing
27 changed files
with
380 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
APPOLO_CLIENT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkYmViZTNkNDM3OGVhNTExZDE4MGIzZSIsImlzQWRtaW4iOnRydWUsImlhdCI6MTU3Mjc4MTY1NiwiZXhwIjoxNTc1MzczNjU2fQ.--S0L3AC0nJqskUp49_6_yYFs6oCmEyNhRCPsvnt68A | ||
APPOLO_CLIENT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkYmViZTNkNDM3OGVhNTExZDE4MGIzZSIsImlzQWRtaW4iOnRydWUsImlhdCI6MTU3Mjk3MjEwMiwiZXhwIjoxNTc1NTY0MTAyfQ.6dS0-u8mzdBN8N9cJ8e4NF5GMAx_zRe6HoJHojQc5OM | ||
CLIENT_URL=http://localhost:1337 | ||
SHOULD_SHOW_DRAFT=true |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import { Box } from './Box'; | ||
import { TextLink } from './TextLink'; | ||
import { SmallText } from './Typography'; | ||
import { Theme } from '../utils'; | ||
import media from '../utils/media'; | ||
import Link from 'next/link'; | ||
|
||
const Container = styled(Box)` | ||
text-align: center; | ||
color: ${Theme.colors.black}; | ||
background-color: ${Theme.colors.main}; | ||
padding: ${Theme.space.small}px ${Theme.space.xregular}px; | ||
${media.greaterThan('mobile')` | ||
`} | ||
${media.greaterThan('tablet')` | ||
padding: ${Theme.space.regular}px ${Theme.space.xregular}px; | ||
`} | ||
${media.greaterThan('desktop')` | ||
padding: ${Theme.space.xregular}px ${Theme.space.xregular}px; | ||
`} | ||
`; | ||
|
||
const Footer = () => { | ||
return ( | ||
<Container> | ||
<SmallText> | ||
Polityka prywatności{' '} | ||
<Link href={'./polityka-prywatnosci-strony'}> | ||
<TextLink | ||
href={'./polityka-prywatnosci-strony'} | ||
aria-label={'przejdź do polityki prywatnosci strony'} | ||
modifiers={['black']} | ||
underline | ||
> | ||
strony | ||
</TextLink> | ||
</Link>{' '} | ||
&{' '} | ||
<Link href={'./polityka-prywatnosci-pan-mikolaj-luck'}> | ||
<TextLink | ||
href={'./polityka-prywatnosci-pan-mikolaj-luck'} | ||
aria-label={'przejdź do polityki prywatnosci Pan Mikołaj Luck'} | ||
modifiers={['black']} | ||
underline | ||
> | ||
Pan Mikołaj Luck | ||
</TextLink> | ||
</Link> | ||
</SmallText> | ||
</Container> | ||
); | ||
}; | ||
export default Footer; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,40 @@ | ||
import styled from "styled-components" | ||
import styled, {css} from "styled-components" | ||
import {Theme} from "../utils" | ||
import {applyStyleModifiers, ModifierKeys, ModifiersConfig} from "styled-components-modifiers" | ||
|
||
const BUTTON_VARIANTS:ModifiersConfig = { | ||
darkGray: () => css` | ||
color: ${Theme.colors.darkGray}; | ||
&:hover { | ||
text-decoration-color: ${Theme.colors.darkGray}; | ||
} | ||
`, | ||
black: (props) => css` | ||
color: ${Theme.colors.black}; | ||
text-decoration-color: ${props.underline && Theme.colors.black}; | ||
&:hover { | ||
text-decoration-color: ${Theme.colors.black}; | ||
opacity: ${props.underline && 0.8}; | ||
} | ||
`, | ||
}; | ||
|
||
export const TextLink = styled('a')` | ||
color: ${Theme.colors.darkGray}; | ||
|
||
export const TextLink = styled('a')<{modifiers?:ModifierKeys, underline?:boolean}>` | ||
color: ${Theme.colors.main}; | ||
cursor: pointer; | ||
text-decoration: underline; | ||
text-decoration-color: transparent; | ||
transition: text-decoration-color 0.5s; | ||
transition: text-decoration-color 0.5s, opacity 0.5s; | ||
opacity: 1; | ||
&:hover { | ||
text-decoration-color: ${Theme.colors.darkGray}; | ||
text-decoration-color: ${Theme.colors.main}; | ||
} | ||
${applyStyleModifiers(BUTTON_VARIANTS)}; | ||
` |
4 changes: 2 additions & 2 deletions
4
pages/index/WelcomeSection/Content.tsx → components/WelcomeSection/Content.tsx
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
6 changes: 3 additions & 3 deletions
6
.../index/WelcomeSection/InputWithButton.tsx → ...onents/WelcomeSection/InputWithButton.tsx
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
2 changes: 1 addition & 1 deletion
2
pages/index/WelcomeSection/Logo.tsx → components/WelcomeSection/Logo.tsx
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
2 changes: 1 addition & 1 deletion
2
pages/index/WelcomeSection/index.tsx → components/WelcomeSection/index.tsx
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react' | ||
import {ErrorProps} from "next/error" | ||
import {NextPageContext} from "next" | ||
|
||
|
||
interface ErrorPage<P = { statusCode: number }> extends React.FunctionComponent<P> { | ||
getInitialProps?: ({ res, err, }: NextPageContext) => Promise<ErrorProps> | ErrorProps; | ||
} | ||
|
||
const Error: ErrorPage = ({ statusCode }) => { | ||
return <Error statusCode={statusCode} /> | ||
} | ||
|
||
Error.getInitialProps = ({ res, err }) => { | ||
const statusCode = res ? res.statusCode : err ? err.statusCode : 404 | ||
if(statusCode === 404 && res) { | ||
res.writeHead(301, { | ||
Location: '/e404' | ||
}) | ||
res.end() | ||
} | ||
return { statusCode: (statusCode as number) } | ||
} | ||
|
||
export default Error |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import React from 'react'; | ||
import BlogLayout from '../blog/BlogLayout'; | ||
import BlogLayout from '../../components/BlogLayout'; | ||
import { Theme } from '../../utils'; | ||
import { NextSeo } from 'next-seo/lib'; | ||
import styled from 'styled-components'; | ||
|
@@ -36,16 +36,16 @@ const Index = () => { | |
return ( | ||
<> | ||
<NextSeo | ||
title="Luck - Polityka prywatności bota Pan Mikołaj" | ||
title="Luck - Polityka prywatności Pan Mikołaj Luck" | ||
description="Zespół LUCK, jako twórca aplikacji LUCK, ułatwiającej organizowanie losowań prezentów, w swoich działaniach szanuje Twoją prywatność." | ||
/> | ||
<BlogLayout backgroundColor={Theme.colors.main}> | ||
<Container> | ||
<Canon>Polityka prywatności bota Pan Mikołaj</Canon> | ||
<Canon>Polityka prywatności Pan Mikołaj Luck</Canon> | ||
<Text> | ||
Zespół LUCK, jako twórca aplikacji LUCK, ułatwiającej organizowanie | ||
losowań prezentów, w swoich działaniach szanuje Twoją prywatność. Chronimy | ||
prywatność osób korzystających z bota Pan Mikołaj na platformie Google Asystent, | ||
prywatność osób korzystających z Pan Mikołaj Luck na platformie Google Asystent, | ||
w sposób opisany poniżej. | ||
</Text> | ||
<Text> | ||
|
@@ -73,14 +73,14 @@ const Index = () => { | |
<li> | ||
<Text> | ||
Administrator wyznaczył inspektora ochrony danych, z którym można | ||
skontaktować się poprzez email <TextLink href="mailto:[email protected]">[email protected]</TextLink>. Z Inspektorem ochrony danych można | ||
skontaktować się poprzez email <TextLink modifiers={["darkGray"]} href="mailto:[email protected]">[email protected]</TextLink>. Z Inspektorem ochrony danych można | ||
się kontaktować we wszystkich sprawach dotyczących przetwarzania danych osobowych | ||
oraz korzystania z praw związanych z przetwarzaniem danych. | ||
</Text> | ||
</li> | ||
<li> | ||
<Text> | ||
Twoje dane osobowe przetwarzane są w związku z komunikacją przy użyciu bota. Twoje | ||
Twoje dane osobowe przetwarzane są w związku z komunikacją przy użyciu Pan Mikołaj Luck. Twoje | ||
dane mogą być także przetwarzane, jeśli udzieliłeś odpowiedniej zgody, w celu | ||
prowadzenie komunikacji marketingowej, czyli wysyłki wiadomości z materiałami | ||
dotyczącymi aplikacji LUCK. | ||
|
@@ -100,12 +100,12 @@ const Index = () => { | |
</Text> | ||
</li> | ||
<li> | ||
<Text>dane przekazane za pomocą bota.</Text> | ||
<Text>dane przekazane za pomocą Pan Mikołaj Luck.</Text> | ||
</li> | ||
</List> | ||
<li> | ||
<Text> | ||
Przetwarzamy za pomocą usługi bota następujące dane osobowe naszych | ||
Przetwarzamy za pomocą usługi Pan Mikołaj Luck następujące dane osobowe naszych | ||
użytkowników: | ||
</Text> | ||
</li> | ||
|
@@ -129,7 +129,7 @@ const Index = () => { | |
przetwarzanie jest niezbędne do realizacje prawnie uzasadnionego interesu | ||
administratora danych, polegającego na komunikacji z użytkownikami za pomocą | ||
narzędzia bot, na platformie Google Asystent, oraz prowadzenia marketingu | ||
bezpośredniego do użytkowników bota po wyrażeniu przez Ciebie zgody na | ||
bezpośredniego do użytkowników Pan Mikołaj Luck po wyrażeniu przez Ciebie zgody na | ||
otrzymywanie wiadomości marketingowych od zespołu LUCK, zawierających informacje o | ||
naszych usługach. | ||
</Text> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
import Error from "next/error" | ||
|
||
const E404 = () => { | ||
return <Error statusCode={404} /> | ||
} | ||
|
||
export default E404 |
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
Oops, something went wrong.