diff --git a/frontend/files/records/app.js b/frontend/files/records/app.js
index bc2c7b4..272390a 100644
--- a/frontend/files/records/app.js
+++ b/frontend/files/records/app.js
@@ -144,34 +144,15 @@ function RecordTemplate({
`;
}
-function TableRowTemplate({
- artists,
- identifier,
- label,
- rowNumber,
- name,
- year,
-}) {
- return `
-
- ${name}
- |
- ${artists.join(", ")} |
- ${label} |
- ${identifier} |
- ${year} |
-
`;
+function TableRowTemplate({ name, coverURL }) {
+ return `
+
+
${name}
+
`;
}
function TableTemplate(records) {
- return `
-
-
-
-
-
-
-
${records.reduce((acc, record) => {
- return acc.concat(TableRowTemplate(record));
- }, "")}
`;
+ return `${records.reduce((acc, record) => {
+ return acc.concat(TableRowTemplate(record));
+ }, "")}
`;
}
diff --git a/frontend/files/records/index.html b/frontend/files/records/index.html
index 4b3ae1e..4fe32e4 100644
--- a/frontend/files/records/index.html
+++ b/frontend/files/records/index.html
@@ -38,7 +38,6 @@
/>
- No Record Selected
diff --git a/frontend/files/records/style.css b/frontend/files/records/style.css
index c516cd2..07c0ff6 100644
--- a/frontend/files/records/style.css
+++ b/frontend/files/records/style.css
@@ -174,99 +174,37 @@ body {
color: #d8d0a0;
}
-#current {
- background-color: #f7f3dc;
- width: calc(40vw - 40px);
- height: calc(100vh - 80px);
- padding: 20px;
+#records .flow {
+ height: calc(100vh - 35px - 15px);
+ padding-top: 5px;
+ padding-left: 20px;
+ padding-right: 20px;
+ display: flex;
+ justify-content: space-evenly;
+ align-items: flex-start;
+ flex-wrap: wrap;
overflow: auto;
- float: left;
}
-#records {
- width: calc(60vw - 40px);
- height: calc(100vh - 80px);
- padding: 20px;
- overflow: auto;
- float: left;
+#records .flow .record {
+ display: inline-block;
+ width: 250px;
+ padding: 15px;
+ border-radius: 3px;
}
-.recordTable th {
- font-weight: bold;
- text-align: left;
- font-family: "Libre Baskerville", sans-serif;
-}
-
-.recordTable th[data-sort-by] {
- cursor: pointer;
-}
-
-.recordTable th[data-sort-by]::after {
- content: "\f0dc";
- font-family: FontAwesome;
- font-size: x-small;
- position: relative;
- left: 4px;
- bottom: 2px;
-}
-
-.recordTable th.asc::after {
- content: "\f0de";
- font-family: FontAwesome;
- font-size: x-small;
- position: relative;
- left: 4px;
- bottom: 2px;
-}
-
-.recordTable th.desc::after {
- content: "\f0dd";
- font-family: FontAwesome;
- font-size: x-small;
- position: relative;
- left: 4px;
- bottom: 2px;
-}
-
-.recordTable td,
-.recordTable th {
- padding: 5px;
- min-width: 50px;
-}
-
-.tRow:nth-child(odd) {
+#records .flow .record:nth-child(odd) {
background: #f9f8ed;
- border-bottom: 1px solid #d8d0a0;
}
-.recordTable .tRow {
- cursor: pointer;
-}
-
-.recordTable .tRow .name {
- font-style: italic;
- max-width: 600px;
-}
-
-#current h1 {
- font-size: x-large;
- font-weight: bold;
- font-style: italic;
- padding: 10px 0;
-}
-
-#current h2 {
- font-size: large;
- padding: 7px 0;
-}
-
-#current img {
- max-height: 400px;
- max-width: 100%;
+#records .flow .record .cover {
+ border-radius: 3px;
+ max-width: 250px;
display: block;
- margin: 0 auto;
+ margin: 0 auto 3px;
+ overflow: unset;
}
-#current .description p {
- padding: 20px 0;
+#records .flow .record .name {
+ font-style: italic;
}