diff --git a/server/index.js b/server/index.js index 057344bab0..e4efa46c20 100644 --- a/server/index.js +++ b/server/index.js @@ -86,7 +86,7 @@ app.post('/ask', async (req, res) => { } if ( - gptResponse.text.includes('2023') || + (gptResponse.text.includes('2023') && !gptResponse.text.trim().includes(' ')) || gptResponse.text.toLowerCase().includes('no response') || gptResponse.text.toLowerCase().includes('no answer') ) { diff --git a/src/components/main/Landing.jsx b/src/components/main/Landing.jsx index c0282d1023..950827166d 100644 --- a/src/components/main/Landing.jsx +++ b/src/components/main/Landing.jsx @@ -1,6 +1,10 @@ import React from 'react'; import { useDispatch } from 'react-redux'; import { setText } from '~/store/textSlice'; +import Templates from './Templates'; +import SunIcon from '../svg/SunIcon'; +import LightningIcon from '../svg/LightningIcon'; +import CautionIcon from '../svg/CautionIcon'; export default function Landing() { const dispatch = useDispatch(); @@ -12,7 +16,7 @@ export default function Landing() { dispatch(setText(quote)); }; return ( -
+

ChatGPT Clone @@ -20,103 +24,33 @@ export default function Landing() {

- - - - - - - - - - - + Examples

    - - -

- + Capabilities

    @@ -133,32 +67,7 @@ export default function Landing() {

- - - - - + Limitations

    @@ -174,6 +83,10 @@ export default function Landing() {
+ +

); diff --git a/src/components/main/Templates.jsx b/src/components/main/Templates.jsx new file mode 100644 index 0000000000..6dd7102791 --- /dev/null +++ b/src/components/main/Templates.jsx @@ -0,0 +1,71 @@ +import React from 'react'; +import ChatIcon from '../svg/ChatIcon'; + +export default function Templates() { + return ( +
+
+ +

Prompt Templates

+
    +
      + +
      + + Showing -4{' '} + to 0 of{' '} + + 0 Entries + + +
      +

      + DAN (Do Anything Now) +

      + + Use prompt → +
      +
      + + +
      +
      +
    +
    +
    + ); +} diff --git a/src/components/svg/CautionIcon.jsx b/src/components/svg/CautionIcon.jsx new file mode 100644 index 0000000000..31f5f4b5f7 --- /dev/null +++ b/src/components/svg/CautionIcon.jsx @@ -0,0 +1,32 @@ +import React from 'react'; + +export default function CautionIcon() { + return ( + + + + + + ); +} diff --git a/src/components/svg/ChatIcon.jsx b/src/components/svg/ChatIcon.jsx new file mode 100644 index 0000000000..67de63c0e9 --- /dev/null +++ b/src/components/svg/ChatIcon.jsx @@ -0,0 +1,24 @@ +import React from 'react'; + +export default function ChatIcon() { + return ( + + + + ); +} diff --git a/src/components/svg/LightningIcon.jsx b/src/components/svg/LightningIcon.jsx new file mode 100644 index 0000000000..2df70aba0e --- /dev/null +++ b/src/components/svg/LightningIcon.jsx @@ -0,0 +1,21 @@ +import React from 'react'; + +export default function LightningIcon() { + return ( + + ); +} diff --git a/src/components/svg/SunIcon.jsx b/src/components/svg/SunIcon.jsx new file mode 100644 index 0000000000..0a1125ce83 --- /dev/null +++ b/src/components/svg/SunIcon.jsx @@ -0,0 +1,72 @@ +import React from 'react'; + +export default function SunIcon() { + return ( + + + + + + + + + + + + ); +} diff --git a/src/components/svg/UserIcon.jsx b/src/components/svg/UserIcon.jsx new file mode 100644 index 0000000000..1ebfbf41d2 --- /dev/null +++ b/src/components/svg/UserIcon.jsx @@ -0,0 +1,25 @@ +import React from 'react'; + +export default function UserIcon() { + return ( + + + + + ); +} diff --git a/src/style.css b/src/style.css index 22e8101e06..33abac2be7 100644 --- a/src/style.css +++ b/src/style.css @@ -14,7 +14,7 @@ 0% { opacity: 1; } - 50% { + 80% { opacity: 0; } 100% {