diff --git a/fc-community-extension/config/webpack.config.js b/fc-community-extension/config/webpack.config.js index 6d3e80b8..f7775748 100644 --- a/fc-community-extension/config/webpack.config.js +++ b/fc-community-extension/config/webpack.config.js @@ -14,7 +14,7 @@ const config = (env, argv) => rateNotes: PATHS.src + '/pages/rateNotes.js', mintXNote: PATHS.src + '/pages/mintXNote.js', mintFactchainNote: PATHS.src + '/pages/mintFactchainNote.js', - components: PATHS.src + '/pages/components.js', + components: PATHS.src + '/pages/components/index.js', defaultContentScript: PATHS.src + '/defaultContentScript.js', statusContentScript: PATHS.src + '/statusContentScript.js', subscribeContentScript: PATHS.src + '/subscribeContentScript.js', diff --git a/fc-community-extension/public/logos/lens.png b/fc-community-extension/public/logos/lens.png new file mode 100644 index 00000000..118935f7 Binary files /dev/null and b/fc-community-extension/public/logos/lens.png differ diff --git a/fc-community-extension/public/logos/warpcast.png b/fc-community-extension/public/logos/warpcast.png new file mode 100644 index 00000000..85a05fd6 Binary files /dev/null and b/fc-community-extension/public/logos/warpcast.png differ diff --git a/fc-community-extension/public/logos/x.png b/fc-community-extension/public/logos/x.png new file mode 100644 index 00000000..6a6a1602 Binary files /dev/null and b/fc-community-extension/public/logos/x.png differ diff --git a/fc-community-extension/public/ui/icons/menu.png b/fc-community-extension/public/ui/icons/menu.png new file mode 100644 index 00000000..4ecd9f67 Binary files /dev/null and b/fc-community-extension/public/ui/icons/menu.png differ diff --git a/fc-community-extension/public/ui/icons/star-awesome.png b/fc-community-extension/public/ui/icons/star-awesome.png new file mode 100644 index 00000000..dde8a437 Binary files /dev/null and b/fc-community-extension/public/ui/icons/star-awesome.png differ diff --git a/fc-community-extension/public/ui/icons/star-outline.png b/fc-community-extension/public/ui/icons/star-outline.png new file mode 100644 index 00000000..9fc92883 Binary files /dev/null and b/fc-community-extension/public/ui/icons/star-outline.png differ diff --git a/fc-community-extension/src/pages/components/FCEmptyState.js b/fc-community-extension/src/pages/components/FCEmptyState.js new file mode 100644 index 00000000..2abf024d --- /dev/null +++ b/fc-community-extension/src/pages/components/FCEmptyState.js @@ -0,0 +1,26 @@ +const IconNotebook = ({ size, ...p }) => { + return ( + + + + ); +}; + +const FCEmptyState = ({ text }) => { + return ( +
+
+ +
{text}
+
+
+ ); +}; + +export default FCEmptyState; diff --git a/fc-community-extension/src/pages/components/FCNote.js b/fc-community-extension/src/pages/components/FCNote.js new file mode 100644 index 00000000..63ddb5a3 --- /dev/null +++ b/fc-community-extension/src/pages/components/FCNote.js @@ -0,0 +1,42 @@ +import { elipseText } from '../../utils/constants'; + +const FCNote = (props) => { + // assuming `postUrl` looks like: https://x.com/foo/status/ + const postId = props.postUrl.split('/').slice(-1)[0]; + return ( + +
+
+
+ {elipseText(props.creator, 10)} + {' - '} + {postId} +
+
+
+
{props.content}
+
+
+
+ {/* TODO proper note + dynamic image based on note */} + {'4.9'} + + star-awesome + +
+
+
+
+ ); +}; + +export default FCNote; diff --git a/fc-community-extension/src/pages/components.js b/fc-community-extension/src/pages/components/index.js similarity index 55% rename from fc-community-extension/src/pages/components.js rename to fc-community-extension/src/pages/components/index.js index 30d24edf..a57dfd83 100644 --- a/fc-community-extension/src/pages/components.js +++ b/fc-community-extension/src/pages/components/index.js @@ -25,34 +25,17 @@ export function FCContainer({ children }) { export function FCHeader({ title }) { return ( -
+
{title}
-
); } - -// yeah baptiste i know it's not the same icon -// as in the design but i'm out of time lol -export function SettingsIcon({ size = 16 }) { - return ( - - - - - - ); -} diff --git a/fc-community-extension/src/pages/createNote.js b/fc-community-extension/src/pages/createNote.js index 7eaf1f5c..39298a2a 100644 --- a/fc-community-extension/src/pages/createNote.js +++ b/fc-community-extension/src/pages/createNote.js @@ -36,7 +36,9 @@ export function FCCreateNote({ postUrl, createNote }) {
Provide additional context for{' '} - {cutText(postUrl, 35)} + + {cutText(postUrl, 35)} +