added catalog view

This commit is contained in:
plebbitor
2023-02-19 16:48:46 +01:00
parent e99217c239
commit 4d1fe1355b
7 changed files with 509 additions and 5 deletions
+64
View File
@@ -1009,7 +1009,17 @@ export const TopBar = styled.div`
.style-changer {
margin-left: 5px;
margin-right: 10px;
font-size: 10pt;
}
a {
color: #00e;
text-decoration: none;
}
a:hover {
color: red;
}`;
case 'Yotsuba B':
@@ -1022,29 +1032,63 @@ export const TopBar = styled.div`
.style-changer {
margin-left: 5px;
margin-right: 10px;
font-size: 10pt;
}
a {
color: #34345c;
text-decoration: none;
}
a:hover {
color: red;
}`;
case 'Futaba':
return `clear: both;
font-size: 12pt;
hr {
clear: both;
}
.style-changer {
margin-left: 5px;
margin-right: 10px;
font-size: 12pt;
}
a {
color: #00e;
text-decoration: underline;
}
a:hover {
color: red;
}`;
case 'Burichan':
return `clear: both;
font-size: 12pt;
hr {
clear: both;
}
.style-changer {
margin-left: 5px;
margin-right: 10px;
font-size: 12pt;
}
a {
color: #34345c;
text-decoration: underline;
}
a:hover {
color: red;
}`;
case 'Tomorrow':
@@ -1057,7 +1101,17 @@ export const TopBar = styled.div`
.style-changer {
margin-left: 5px;
margin-right: 10px;
font-size: 10pt;
}
a {
color: #81a2be;
text-decoration: none;
}
a:hover {
color: #5f89ab;
}`;
case 'Photon':
@@ -1070,7 +1124,17 @@ export const TopBar = styled.div`
.style-changer {
margin-left: 5px;
margin-right: 10px;
font-size: 10pt;
}
a {
color: #f60;
text-decoration: none;
}
a:hover {
color: red;
}`;
}
+83
View File
@@ -0,0 +1,83 @@
import styled from 'styled-components';
export const Threads = styled.div`
padding: 20px 0;
text-align: center;
margin: 0;
.thread {
width: 180px;
max-height: 320px;
vertical-align: top;
display: inline-block;
word-wrap: break-word;
overflow: hidden;
margin-top: 5px;
margin-bottom: 20px;
padding: 5px 0 3px;
position: relative;
}
img {
max-width: 150px;
max-height: 150px;
display: inline;
margin: auto;
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
min-height: 50px;
min-width: 50px;
border: 0;
}
.thread-icons {
display: inline;
height: 16px;
margin: 2px 0 0 -101px;
position: absolute;
width: 100px;
text-align: right;
}
.sticky-icon {
background-image: url(/assets/sticky.gif);
width: 16px;
height: 16px;
display: inline-block;
}
.meta {
cursor: help;
font-size: 11px;
line-height: 8px;
margin-top: 2px;
margin-bottom: 1px;
}
.teaser {
display: block;
padding: 0 15px;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return ``;
case 'Yotsuba B':
return ``;
case 'Futaba':
return `font-size: 12pt;`;
case 'Burichan':
return `font-size: 12pt;`;
case 'Tomorrow':
return ``;
case 'Photon':
return ``;
}
}}
`;
+5
View File
@@ -471,6 +471,9 @@ export const ReplyFormTable = styled.table`
`;
export const TopBar = styled.div`
.return-button {
padding-top: 3px;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
@@ -541,6 +544,7 @@ export const TopBar = styled.div`
.return-button {
float: right;
margin-right: 4px;
padding-top: 2px;
font-size: 12pt;
a, a:visited {
@@ -566,6 +570,7 @@ export const TopBar = styled.div`
.return-button {
float: right;
margin-right: 4px;
padding-top: 2px;
font-size: 12pt;
a, a:visited {