Skip to content
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

who is J(A)SON and why is everybody talking about him #1

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 3 additions & 0 deletions package-lock.json

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

11 changes: 5 additions & 6 deletions postownik/app/client/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script>
import List from './Panels/List.svelte';
import { authenticated } from './store.js';
$: console.log($authenticated);
Copy link
Member

@mikolajkazmierczak mikolajkazmierczak Aug 14, 2021

Choose a reason for hiding this comment

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

Obaj edytowaliście App.svelte xD będzie konflikt. A ta autentykacja będzie musiała się odbywać w głównym pliku więc nie ma sensu tego wyrzucać. Chociaż tutaj oczywiście wrzuciłem to dla przykładu żeby dać hint gdzie to się powinno dziać, ale będzie to wyglądać trochę poważniej xD

import Postownik from './Panels/Postownik.svelte';
Copy link
Member

Choose a reason for hiding this comment

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

Tu już ci mówiłem, żeby nazwać to Post zamiast Postownik jak nazwa całej apki xD

</script>

{#if $authenticated}
<List />
{/if}
<Postownik />

<style>
</style>
72 changes: 72 additions & 0 deletions postownik/app/client/src/Panels/Postownik.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<script>
</script>

<div class="postownik__backgroundlayer">
<div class="postownik__content">
<div class="postownik__content--main">
<h3>Postownik</h3>
</div>
<div class="postownik__content--title">
<input class="postownik--title" type="text" placeholder="lorem" />
</div>
<div class="postownik__content--textarea">
<textarea
class="postownik--textarea"
wrap="hard"
rows="15"
cols="55"
placeholder="ipsum"
/>
</div>
</div>
</div>

<style>
h3 {
padding: 0;
margin: 0;
}

.postownik__backgroundlayer {
margin: 10px 200px;
}

.postownik__content {
width: 600px;
color: var(--light);
}

.postownik__content--main,
.postownik__content--title,
.postownik__content--textarea {
width: 100%;
cursor: default;
margin:5px 0;
}
.postownik--title {
position: static;
outline: none;
resize: none;
font-family: inherit;
width: 250px;
padding:4px;
border: 1px solid var(--grey);
border-radius: 0;
cursor: inherit;
background-color: var(--light);
color:black;
}

.postownik--textarea {
position: static;
box-shadow: inherit;
line-height: 1.5;
border: 1px solid var(--grey);
outline: none;
resize: none;
width: 100%;
padding:4px;
font-family: inherit;
background-color: var(--light);
}
</style>