Skip to content

Commit

Permalink
Some basic styling, bit of a cute touch
Browse files Browse the repository at this point in the history
  • Loading branch information
Challe-P committed Sep 28, 2024
1 parent 77f38de commit 89a5afb
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 6 deletions.
Binary file added public/arches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
18 changes: 14 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
ul {
list-style: none;
margin: 0 auto;
max-width: 600px;
max-width: 80%;
}

li {
max-width: 600px;
border-bottom: 1px solid #c2c4c9;
padding: 1rem;
max-width: 100%;
text-align: left;
margin-bottom: 20px;
}
Expand All @@ -35,13 +37,15 @@ li a {
font-size: 1.6rem;
}

.doc-content-div {
padding-top: 2rem;
}

label {
margin-right: 5px;
font-size: 1.6rem;
}



.ql-editor {
min-height: 200px;
}
Expand Down Expand Up @@ -69,3 +73,9 @@ label {
transform: rotate(360deg);
}
}

.docs {
padding: 2rem;
border-radius: 15px;
background-color: rgb(236, 229, 216);
}
2 changes: 1 addition & 1 deletion src/all-documents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function AllDocuments() {
</li>
);

return <ul>{docItems}</ul>;
return <ul className="docs">{docItems}</ul>;
} catch (error) {
console.error("An error occurred.", error);
return (
Expand Down
18 changes: 18 additions & 0 deletions src/doc.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
form {
padding: 2rem;
border-radius: 15px;
background-color: rgb(236, 229, 216);
margin: 1rem 2rem;
label {
font-size: 1rem;
}
}

.ql-editor {
background-color: #fff;
}

#title {
font-size: 1rem;
}

23 changes: 23 additions & 0 deletions src/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.top {
display: flex;
gap: 10px;
row-gap: 10px;
column-gap: 10px;
justify-content: space-between;
margin-left: 3rem;
margin-right: 4rem;
img {
margin: 1rem;
border-radius: 15px;
}
}

.nav {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-end;
a {
text-decoration: none;
}
}
7 changes: 6 additions & 1 deletion src/header.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import "./header.css";

function Header() {
return (
<header>
{
<div>
<div className="top">
<a href="/"><img src='/images/logo192.png' /></a>
<div className="nav">
<a href="/"><h1>Home</h1></a>
<a href="/new"><h1>New</h1></a>
</div>
</div>
}
</header>
);
Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ body {
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #009fe8;
background-image: url("../public/arches.png");
}

code {
Expand Down
1 change: 1 addition & 0 deletions src/new-doc.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./doc.css";
import { NewForm } from './forms/new-form.jsx';

export default function NewDoc() {
Expand Down
1 change: 1 addition & 0 deletions src/update-doc.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./doc.css";
import { UpdateForm } from './forms/update-form.jsx';

export default function UpdateDoc() {
Expand Down

0 comments on commit 89a5afb

Please sign in to comment.