fin design
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 285 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB |
@@ -1,14 +0,0 @@
|
|||||||
|
|
||||||
## Entry - 8:23:28 PM
|
|
||||||
|
|
||||||
**Rating:** 3/5
|
|
||||||
|
|
||||||
this is a test
|
|
||||||
|
|
||||||
## Entry - 10:05:53 PM
|
|
||||||
|
|
||||||
**Rating:** 5/5
|
|
||||||
|
|
||||||
hello
|
|
||||||
|
|
||||||
---
|
|
||||||
@@ -23,13 +23,16 @@ export default function Preview({daySelected}){
|
|||||||
|
|
||||||
return(
|
return(
|
||||||
<div className="Preview" key={preview?.files?.length}>
|
<div className="Preview" key={preview?.files?.length}>
|
||||||
{preview?.files?.map(((el,i)=>(
|
<div className="PreviewImages">
|
||||||
<div key={i} className="imagePreview">
|
{preview?.files?.map(((el,i)=>(
|
||||||
<img src={`/uploads/${daySelected}/${el}`}/>
|
<div key={i} className="imagePreviewBlock">
|
||||||
</div>
|
<img src={`/uploads/${daySelected}/${el}`}/>
|
||||||
|
</div>
|
||||||
|
|
||||||
)))}
|
)))}
|
||||||
<div>
|
</div>
|
||||||
|
|
||||||
|
<div className="PreviewNote">
|
||||||
<Markdown>{preview?.note || ""}</Markdown>
|
<Markdown>{preview?.note || ""}</Markdown>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default function Tracker({ calendar, setDaySelected }) {
|
|||||||
onClick={() => setDaySelected(dayString)}
|
onClick={() => setDaySelected(dayString)}
|
||||||
title={`${dayIndex + 1} ${month} (${rating}/5)`}
|
title={`${dayIndex + 1} ${month} (${rating}/5)`}
|
||||||
className="day"
|
className="day"
|
||||||
style={{ backgroundColor: getColor(rating) }}
|
style={{ backgroundColor: getColor(Math.floor(rating)) }}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -58,22 +58,31 @@ export default function Upload({setFetchKey, daySelected}){
|
|||||||
|
|
||||||
<DragDrop setPreview={setPreview} file={file} setFile={setFile}/>
|
<DragDrop setPreview={setPreview} file={file} setFile={setFile}/>
|
||||||
|
|
||||||
<label htmlFor="rating">Choose rating:</label>
|
<div className="input">
|
||||||
<select name="rating" type="select" value={rating} onChange={(e)=>{setRating(e.target.value)}}>
|
<label htmlFor="rating">Choose rating:</label>
|
||||||
<option value="1">1</option>
|
<select name="rating" type="select" value={rating} onChange={(e)=>{setRating(e.target.value)}}>
|
||||||
<option value="2">2</option>
|
<option value="1">1</option>
|
||||||
<option value="3">3</option>
|
<option value="2">2</option>
|
||||||
<option value="3">4</option>
|
<option value="3">3</option>
|
||||||
<option value="5">5</option>
|
<option value="4">4</option>
|
||||||
</select>
|
<option value="5">5</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<textarea value={note} onChange={(e)=>{setNote(e.target.value)}}>
|
<div className="input">
|
||||||
|
<label htmlFor="rating">Enter a note</label>
|
||||||
|
<textarea value={note} onChange={(e)=>{setNote(e.target.value)}}>
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
</textarea>
|
|
||||||
|
|
||||||
<p onClick={()=>{
|
<div className="input">
|
||||||
uploadFile()
|
<button onClick={()=>{
|
||||||
}}>Upload</p>
|
uploadFile()
|
||||||
|
}}>Upload</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="separation"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
h2
|
||||||
|
margin-bottom: 10px
|
||||||
.Home
|
.Home
|
||||||
display: flex
|
display: flex
|
||||||
width: 100%
|
width: 100%
|
||||||
padding:2%
|
padding: 2%
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
height: 100vh
|
align-items: flex-start
|
||||||
aside
|
aside
|
||||||
width: 30%
|
width: 30%
|
||||||
height: 100%
|
height: 100%
|
||||||
@@ -11,6 +13,7 @@ main
|
|||||||
width: 79%
|
width: 79%
|
||||||
height: 100%
|
height: 100%
|
||||||
padding: 1%
|
padding: 1%
|
||||||
|
height: 89vh
|
||||||
.Tracker
|
.Tracker
|
||||||
.month
|
.month
|
||||||
display: flex
|
display: flex
|
||||||
@@ -32,22 +35,78 @@ main
|
|||||||
|
|
||||||
.Upload
|
.Upload
|
||||||
display: flex
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
gap: 5%
|
gap: 5%
|
||||||
align-items: center
|
align-items: flex-start
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
|
gap: 5px
|
||||||
|
margin-bottom: 20px
|
||||||
|
gap: 20px
|
||||||
|
.input
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
gap: 20px
|
||||||
|
width: 100%
|
||||||
|
padding-bottom: 10px
|
||||||
|
label
|
||||||
|
width: 120px
|
||||||
.preview
|
.preview
|
||||||
height: 100px
|
height: 60px
|
||||||
|
|
||||||
img
|
img
|
||||||
height: 100%
|
height: 100%
|
||||||
select
|
select
|
||||||
height: 40px
|
height: 40px
|
||||||
|
button
|
||||||
|
margin: auto
|
||||||
|
.separation
|
||||||
|
width: 100%
|
||||||
|
height: 1px
|
||||||
|
display: block
|
||||||
|
background: white
|
||||||
|
animation: leftToRight .5s
|
||||||
|
|
||||||
.Preview
|
.Preview
|
||||||
display: flex
|
display: flex
|
||||||
flex-wrap: wrap
|
justify-content: space-between
|
||||||
|
margin-inline: 2%
|
||||||
|
padding-inline: 2%
|
||||||
gap : 5%
|
gap : 5%
|
||||||
.imagePreview
|
animation: appear .5s
|
||||||
height: 500px
|
border-right: 1px solid white
|
||||||
img
|
position: relative
|
||||||
max-height: 100%
|
hr
|
||||||
object-fit: contain
|
margin-top: 20px
|
||||||
|
margin-bottom: 20px
|
||||||
|
animation: leftToRight .5s
|
||||||
|
&Images
|
||||||
|
width: 87%
|
||||||
|
height: 90vh
|
||||||
|
overflow: scroll
|
||||||
|
-ms-overflow-style: none
|
||||||
|
scrollbar-width: none
|
||||||
|
&::-webkit-scrollbar
|
||||||
|
display: none
|
||||||
|
div
|
||||||
|
height: 500px
|
||||||
|
margin-bottom: 50px
|
||||||
|
img
|
||||||
|
height: 100%
|
||||||
|
object-fit: contain
|
||||||
|
&Note
|
||||||
|
min-width: 300px
|
||||||
|
|
||||||
|
@keyframes appear
|
||||||
|
from
|
||||||
|
opacity: 0
|
||||||
|
transform: translateX(2%)
|
||||||
|
to
|
||||||
|
opacity: 1
|
||||||
|
transform: translateX(0%)
|
||||||
|
|
||||||
|
@keyframes leftToRight
|
||||||
|
from
|
||||||
|
width: 0%
|
||||||
|
to
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user