diff --git a/client/index.html b/client/index.html index aa4c700..7bc0488 100644 --- a/client/index.html +++ b/client/index.html @@ -18,4 +18,4 @@ gtag('js', new Date()); gtag('config', 'UA-139616701-3'); - + \ No newline at end of file diff --git a/client/patterns/accordion/Details.tsx b/client/patterns/accordion/Details.tsx index 0bd314d..0903b21 100644 --- a/client/patterns/accordion/Details.tsx +++ b/client/patterns/accordion/Details.tsx @@ -64,89 +64,24 @@ const Details: React.FC<{}> = () => {
-
-
} - > -
- -
} - > -
- - } - > -
-
- - - )} - source={` +html={` -
+
-
+
-
+
-
...
+
...
-
+
...
-
+
...
@@ -155,7 +90,86 @@ const Details: React.FC<{}> = () => { ...
`} - /> +css={` +.container { + /* Border */ + border: 1px solid rgba(0, 0, 0, 0.3); + border-bottom-color: transparent; + border-radius: 4px; +} + +.item { + border-bottom: 1px solid rgba(0, 0, 0, 0.3); +} + +.header { + /* Center the content horizontally */ + align-items: center; + display: flex; + + cursor: pointer; + padding: 16px; +} +.toggle { + margin-right: 12px; +} +.title { + /* Take remaining width */ + flex: 1; +} + +.content { + /* For not selected item */ + display: none; + + border-top: 1px solid rgba(0, 0, 0, 0.3); + padding: 16px; +} +.content.selected { + /* For selected item */ + display: block; +} +`} + > +
+
+
} + > +
+ +
} + > +
+ +
} + > +
+ +
+
+
diff --git a/client/patterns/arrow-buttons/Details.tsx b/client/patterns/arrow-buttons/Details.tsx index 3fdc596..779da39 100644 --- a/client/patterns/arrow-buttons/Details.tsx +++ b/client/patterns/arrow-buttons/Details.tsx @@ -20,151 +20,7 @@ const Details: React.FC<{}> = () => {
-
-
- -
-
- -
-
- -
-
- -
-
-
- )} - source={` +html={`
`} - /> +css={``} + > +
+
+
+
+
+
+5
+
+ = () => {
-
- - - -
-
- )} - source={` +html={`
+ + +
+ + diff --git a/client/patterns/badge/Details.tsx b/client/patterns/badge/Details.tsx index 025df0a..9d853f7 100644 --- a/client/patterns/badge/Details.tsx +++ b/client/patterns/badge/Details.tsx @@ -20,36 +20,7 @@ const Details: React.FC<{}> = () => {
-
- 1 -
-
- )} - source={` +html={`
= () => { ...
`} - /> +css={``} + > +
+
+
+
/
+
+
/
+
+
/
+
+
+
+ ); diff --git a/client/patterns/button-with-icon/Details.tsx b/client/patterns/button-with-icon/Details.tsx index c47699a..578f603 100644 --- a/client/patterns/button-with-icon/Details.tsx +++ b/client/patterns/button-with-icon/Details.tsx @@ -21,36 +21,7 @@ const Details: React.FC<{}> = () => {
-
- -
-
- )} - source={` +html={` - - )} - source={` +html={` `} - /> +css={``} + > +
+ +
+ diff --git a/client/patterns/cookie-banner/Details.tsx b/client/patterns/cookie-banner/Details.tsx index aec2f57..6469e28 100644 --- a/client/patterns/cookie-banner/Details.tsx +++ b/client/patterns/cookie-banner/Details.tsx @@ -22,40 +22,7 @@ const Details: React.FC<{}> = () => {
-
-
- -
-
- -
-
-
- )} - source={` +html={`
@@ -109,7 +65,51 @@ const Details: React.FC<{}> = () => {
`} - /> +css={``} + > +
+
+
+
+
+
+
+
diff --git a/client/patterns/curved-background/Details.tsx b/client/patterns/curved-background/Details.tsx index 6d467bf..d09fb7b 100644 --- a/client/patterns/curved-background/Details.tsx +++ b/client/patterns/curved-background/Details.tsx @@ -20,25 +20,7 @@ const Details: React.FC<{}> = () => {
-
-
- )} - source={` +html={`
= () => { ...
`} - /> +css={``} + > +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
diff --git a/client/patterns/custom-radio-button/Details.tsx b/client/patterns/custom-radio-button/Details.tsx index d36cd06..2398ce1 100644 --- a/client/patterns/custom-radio-button/Details.tsx +++ b/client/patterns/custom-radio-button/Details.tsx @@ -71,53 +71,7 @@ const Details: React.FC<{}> = () => {
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
- )} - source={` +html={`