Skip to content

Commit

Permalink
Add recap2023
Browse files Browse the repository at this point in the history
  • Loading branch information
trpfrog committed Dec 31, 2023
1 parent cb352e1 commit e28b1c7
Show file tree
Hide file tree
Showing 4 changed files with 475 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/app/blog/_renderer/DevBlogMarkdown/ImageDragAndDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function ImageDragAndDrop(props: { slug: string }) {
const [isDragging, setIsDragging] = useState(false)
const [isTabOpen, setIsTabOpen] = useState(false)
const [recentlyUploaded, setRecentlyUploaded] = useState('')
const [horizontalImages, setHorizontalImages] = useState(false)
const uploadImage = useUploadFunction(props.slug)

const onDragEnter = useCallback((e: React.DragEvent<HTMLDivElement>) => {
Expand Down Expand Up @@ -71,8 +72,20 @@ export function ImageDragAndDrop(props: { slug: string }) {
</div>
{recentlyUploaded !== '' && (
<div className={styles.code_block}>
<form>
<input
type="checkbox"
checked={horizontalImages}
onChange={e => setHorizontalImages(e.target.checked)}
/>
<label style={{ verticalAlign: '0.2em' }}>
Horizontal Images
</label>
</form>
<CodeBlock language={'markdown'} fileName={'Recently Uploaded'}>
{recentlyUploaded}
{horizontalImages
? '```horizontal-images\n' + recentlyUploaded + '\n```'
: recentlyUploaded}
</CodeBlock>
</div>
)}
Expand Down
1 change: 1 addition & 0 deletions src/components/organisms/LinkCard/LinkCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
display: block;
width: 250px;
max-width: 30vw;
max-height: 140px;
object-fit: cover;
border-left: 1px lightgray solid;
}
Expand Down
Loading

1 comment on commit e28b1c7

@vercel
Copy link

@vercel vercel bot commented on e28b1c7 Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.