-
- Wordcount: {storyData.word_count}
-
- EDIT
-
-
- >
- )
+const { filterList = [...filterList], highlights, clickables } = submissionsTableOptions
+export default function Story() {
+ const { storyId } = useParams()
+ const { stories } = useLoaderData()
+ const storyData = stories.find(row => row.id == storyId)
+
+ return (
+ <>
+
+
+
Wordcount: {storyData.word_count}
+
+
+
+
+
+ >
+ )
}
\ No newline at end of file
diff --git a/src/routes/submissions.jsx b/src/routes/submissions.jsx
index 9783b03..0690828 100644
--- a/src/routes/submissions.jsx
+++ b/src/routes/submissions.jsx
@@ -32,8 +32,11 @@ export function Submissions(){
const clickables = [
['story',(row)=>{
return `../../story/${row.story_id}`}],
- ['publication',(row)=>{return `../../publication/${row.pub_id}`}]
+ ['publication',(row)=>{return `../../publication/${row.pub_id}`}],
+ ['id',(row)=>{return `../../submission/${row.id}/edit`}]
]
+
+
return(
<>
diff --git a/src/styles/Form.css b/src/styles/Form.css
new file mode 100644
index 0000000..b7cace7
--- /dev/null
+++ b/src/styles/Form.css
@@ -0,0 +1,70 @@
+form{
+ --bg-color: hsl(var(--color-2),var(--lightest));
+ --fg-color: hsl(var(--color-3),var(--off-white));
+ font-size: 2rem;
+ background-color: var(--bg-color);
+ box-shadow: var(--box-shadow);
+ border-radius: 2rem;
+ padding:2rem;
+ width:max-content;
+ margin:auto;
+
+}
+
+fieldset{
+ width: fit-content;
+ padding:8px;
+}
+
+label{
+ border-radius: 1rem;
+ padding:1rem;
+ width:100%;
+ display:flex;
+ gap:3rem;
+ justify-content:space-between;
+ align-items: center;
+ font-weight: bold;
+}
+fieldset > label{
+ justify-content: flex-start;
+ font-weight: normal;
+}
+legend{
+ font-weight: bold;
+}
+input,select {
+ max-width: 30rem;
+ float:right;
+ font-size: 2rem;
+ padding:1rem;
+ border-radius: 1rem;
+ margin:1rem;
+ margin-left:2rem;
+ background-color: var(--fg-color);
+ box-shadow: var(--box-shadow-light);
+}
+form button, form a{
+ float:right;
+ font-size: 3.2rem;
+ padding: 1rem;
+ border-radius: 2rem;
+ box-shadow: var(--box-shadow);
+ margin:1rem;
+ margin-top: 4rem;
+ background-color: hsl(var(--color-3),var(--light));
+}
+form button:hover{
+ background-color: hsl(var(--color-3),var(--lightest));
+}
+
+#bottom-button-container{
+ width:fit-content;
+ margin:auto;
+}
+input[type=date]{
+ font-family: inherit;
+}
+input[type=text]{
+ width:fit-content;
+}
\ No newline at end of file
diff --git a/src/styles/index.css b/src/styles/index.css
index 1e6f7a5..ca14813 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -1,5 +1,6 @@
@import 'Table.css';
@import 'Variables.css';
+@import 'Form.css';
*,
*::before,
*::after {