Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply new Yorkie UI to homepage #138

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cf408ba
update code
vitran12 May 18, 2024
82ff750
uppdate footer
vitran12 May 18, 2024
e384d71
uppdate logo
vitran12 May 18, 2024
0a6a5db
update homepage
vitran12 May 19, 2024
3bf3165
update layout homepage
vitran12 May 19, 2024
793212a
update homepage
vitran12 May 20, 2024
cfad36e
Merge branch 'main' into alice/homepage
vitran12 May 20, 2024
41949ab
update homepage responsive
vitran12 May 22, 2024
590cf3c
update homepage
vitran12 May 23, 2024
c04777e
Apply new UI for Products (#132)
vitran12 May 25, 2024
1fd1e94
Apply new ui for Community (#131)
vitran12 May 27, 2024
8453ebf
Apply new ui for Examples (#133)
vitran12 May 27, 2024
6862329
update version next
vitran12 May 27, 2024
7a11966
update code responsive homepage
vitran12 May 27, 2024
6972803
Merge branch 'main' into apply-yorkie-ui
hackerwins Jun 10, 2024
4d4a456
clear & unuse struct react 14
vitran12 Jun 16, 2024
0e01cdd
remove icons duplica with library
vitran12 Jun 17, 2024
2d30039
update document page
vitran12 Jun 18, 2024
6c8ea1b
update content of table of document page
vitran12 Jun 18, 2024
9060c98
update theme dark/light for all page homepage,products,document,examp…
vitran12 Jun 18, 2024
3a1e846
update header sticky top
vitran12 Jun 18, 2024
7587942
remove icon & clearn oldd css ( 13870 => 4733 )
vitran12 Jun 19, 2024
f290f14
clearn and build page, check type for props
vitran12 Jun 19, 2024
6a79a30
update ci build 18 cause yorkie-js-sdk use > 16
vitran12 Jun 19, 2024
3b773ff
build package-lock version for build
vitran12 Jun 19, 2024
f806a74
Update package-lock.json to sync with package.json
vitran12 Jun 19, 2024
3ae528f
test clear package lock
vitran12 Jun 19, 2024
a6ee319
revert package lock
vitran12 Jun 19, 2024
bafcdf8
revert node version for ci
vitran12 Jun 19, 2024
2eda9a1
update footer change div -> footer
vitran12 Jun 19, 2024
c06ba04
fix menu responsive and height for content 404
vitran12 Jun 20, 2024
8c90f95
update header of mobile
vitran12 Jun 20, 2024
9bf2166
clearn button and header mobile
vitran12 Jun 21, 2024
b256423
change icon and update build package tsc -> rollup
vitran12 Jul 9, 2024
7539e45
apply new improve of ui library
vitran12 Jul 10, 2024
afed5fb
remove test package
vitran12 Jul 10, 2024
20b10c5
Merge branch 'main' into apply-yorkie-ui
vitran12 Jul 10, 2024
3f4d905
change icon component from new ui library:
vitran12 Jul 14, 2024
4e85f62
Merge branch 'main' into apply-yorkie-ui
vitran12 Jul 14, 2024
51767bb
update package lock
vitran12 Jul 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions components/Accordion/Accordion.context.ts

This file was deleted.

5 changes: 0 additions & 5 deletions components/Accordion/Accordion.errors.ts

This file was deleted.

82 changes: 0 additions & 82 deletions components/Accordion/Accordion.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions components/Accordion/AccordionControl.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions components/Accordion/AccordionItem.context.ts

This file was deleted.

11 changes: 0 additions & 11 deletions components/Accordion/AccordionItem.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions components/Accordion/AccordionPanel.tsx

This file was deleted.

102 changes: 0 additions & 102 deletions components/Button/Button.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions components/Button/ButtonBox.tsx

This file was deleted.

28 changes: 18 additions & 10 deletions components/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
import { ReactNode } from 'react';
import { CopyButton, Button, Icon } from '@/components';
import { CopyButton } from '@/components';
import { PrismCodeProps, PrismCode } from './PrismCode';
import { Box, IconCopy, IconCheck, Icon, Button } from 'yorkie-ui';
import React from 'react';

export function CodeBlock({ withCopyButton, ...restProps }: { withCopyButton?: boolean } & PrismCodeProps) {
if (withCopyButton) {
return (
<div className="codeblock_box">
<div className="codeblock">
<Box className="codeblock_box" fontSize="sm">
<Box className="codeblock" fontSize="sm">
<PrismCode {...restProps} />
</div>
</Box>
<CopyButtonBox value={restProps.code} />
</div>
</Box>
);
}

return (
<div className="codeblock">
<Box className="codeblock">
<PrismCode {...restProps} />
</div>
</Box>
);
}

function CopyButtonBox({ value, timeout = 1000 }: { value: string; timeout?: number }) {
function CopyButtonBox({ value, timeout = 1000 }: { value?: string; timeout?: number }) {
return (
<div className="btn_area">
<CopyButton value={value} timeout={timeout}>
{({ copied, copy }) => (
<>
<Button icon={<Icon type="copy" />} outline onClick={copy} title="Copy to clipboard" />
<Button
as="link"
href="https://github.com/yorkie-team/dashboard/issues"
variant="outline"
position="start"
icon={<Icon icon={<IconCopy />} />}
></Button>
{copied && (
<div className="toast_box shadow_l">
<Icon type="check" />
<Icon icon={<IconCheck stroke="#000" />} stroke="orange.default" position="start" size="lg" />
Copied
</div>
)}
Expand Down
Loading
Loading