Worked on the blog page a bit
This commit is contained in:
parent
50b8b75129
commit
eb97ceaef1
@ -99,65 +99,104 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<Header>
|
<Header>
|
||||||
<c>{data.title}</c>
|
{data.title}
|
||||||
<p>{data.author} | {data.date}</p>
|
|
||||||
</Header>
|
</Header>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<audio bind:this={audio} preload="auto">
|
<audio bind:this={audio} preload="auto">
|
||||||
<source src="/click.wav" type="audio/mpeg" />
|
<source src="/click.wav" type="audio/mpeg" />
|
||||||
</audio>
|
</audio>
|
||||||
|
<div class="header">
|
||||||
|
<p><b>Author:</b> {data.author} <b>| Date:</b> {data.date}</p>
|
||||||
|
<div>
|
||||||
|
<button on:click={async ()=>{upvote()}} class="{upvote_status}">
|
||||||
|
<i class="nf nf-md-arrow_up_bold"></i>
|
||||||
|
</button>
|
||||||
|
<p>{data.vote}</p>
|
||||||
|
<button on:click={async ()=>{downvote()}} class="{downvote_status}">
|
||||||
|
<i class="nf nf-md-arrow_down_bold"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="content markdown-body">
|
<div class="content markdown-body">
|
||||||
{@html sanitized}
|
{@html sanitized}
|
||||||
</div>
|
</div>
|
||||||
<div class="votes">
|
</main>
|
||||||
<h3 on:click={async ()=>{upvote()}} class="{upvote_status}">
|
|
||||||
<i class="nf nf-md-arrow_up_bold"></i>
|
|
||||||
</h3>
|
|
||||||
<p>{data.vote}</p>
|
|
||||||
<h3 on:click={async ()=>{downvote()}} class="{downvote_status}">
|
|
||||||
<i class="nf nf-md-arrow_down_bold"></i>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
p {
|
p {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
padding: 50px;
|
padding: 50px 10% 50px 10%;
|
||||||
color: white;
|
color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
gap: 20px;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
max-width: 80%;
|
padding: 50px;
|
||||||
padding: 40px;
|
background: var(--dark-four);
|
||||||
background: var(--dark-two);
|
border-radius: 0 0 7px 7px;
|
||||||
box-shadow: var(--box-shadow);
|
box-shadow: var(--box-shadow);
|
||||||
border-radius: 7px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.votes {
|
@media only screen and (max-width: 1316px) {
|
||||||
display: flex;
|
main {
|
||||||
|
padding: 10px 5% 0% 5%;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding: 30px;
|
||||||
|
background: var(--dark-four);
|
||||||
|
border-radius: 0 0 7px 7px;
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
|
||||||
|
background: var(--dark-two);
|
||||||
|
border-radius: 7px 7px 0 0;
|
||||||
|
padding: 30px;
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header div{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: var(--text-shadow);
|
text-shadow: var(--text-shadow);
|
||||||
gap: 3px;
|
gap: 10px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.votes h3{
|
.header p {
|
||||||
font-size: 27px;
|
font-size: 20px;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.votes h3:hover {
|
.header div button{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 10px;
|
||||||
|
background: none;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
font-size: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header div p {
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header div button:hover {
|
||||||
animation-name: colorAnimation;
|
animation-name: colorAnimation;
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-duration: 10s;
|
animation-duration: 10s;
|
||||||
|
@ -703,7 +703,7 @@ https://github.com/ngn13/ngn13.fun/raw/main/static/fonts/latin.woff2
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
white-space: break-spaces;
|
white-space: break-spaces;
|
||||||
background-color: var(--dark-three);
|
background-color: var(--dark-two);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -745,10 +745,10 @@ https://github.com/ngn13/ngn13.fun/raw/main/static/fonts/latin.woff2
|
|||||||
.markdown-body .highlight pre,
|
.markdown-body .highlight pre,
|
||||||
.markdown-body pre {
|
.markdown-body pre {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
overflow: auto;
|
overflow: scroll;
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
background-color: var(--dark-three);
|
background-color: var(--dark-two);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user