34 | )
35 | }
--------------------------------------------------------------------------------
/src/pages/Landing/index.ts:
--------------------------------------------------------------------------------
1 | import './index.css'
2 |
3 | import { HeadShowcase } from './HeadShowcase'
4 | import { TutorialShowcase } from './TutorialShowcase'
5 | import { TutorialTips } from './TutorialTips'
6 | import { LandingFooterDesc, LandingFooterNav } from './LandingFooterNav'
7 |
8 | const fullBgImageB: any = new URL('./assets/full-bg-text.png', import.meta.url)
9 | const fullBgImageBMobile: any = new URL('./assets/full-bg-text_mobile.png', import.meta.url)
10 |
11 | const promiseImages: any = {
12 | '00': new URL('./assets/promise-0-0.png', import.meta.url),
13 | '01': new URL('./assets/promise-0-1.png', import.meta.url),
14 | '10': new URL('./assets/promise-1-0.png', import.meta.url),
15 | '11': new URL('./assets/promise-1-1.png', import.meta.url),
16 | '20': new URL('./assets/promise-2-0.png', import.meta.url),
17 | '21': new URL('./assets/promise-2-1.png', import.meta.url),
18 | }
19 |
20 | export {
21 | HeadShowcase,
22 | TutorialShowcase,
23 | TutorialTips,
24 | LandingFooterNav,
25 | LandingFooterDesc,
26 | fullBgImageB,
27 | fullBgImageBMobile,
28 | promiseImages,
29 | }
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Logseq
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/src/components/Animations.tsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useState } from 'react'
2 | import { useInView } from 'react-intersection-observer'
3 |
4 | export function delay (ms = 1000) {
5 | return new Promise((resolve) => {
6 | setTimeout(resolve, ms)
7 | })
8 | }
9 |
10 | export function AnimateInTurnStage (
11 | props: any
12 | ) {
13 | let { ani, ticks, children, ...rest } = props
14 | const [turnState, setTurnState] = useState([])
15 | const { ref, inView, entry } = useInView({
16 | threshold: 0
17 | })
18 |
19 | children = children(turnState)
20 |
21 | useEffect(() => {
22 | const len = children.props?.children?.length
23 | if (!len) return
24 |
25 | const run = async () => {
26 | for (let i = 0; i < len; i++) {
27 | if (inView) {
28 | await delay(ticks?.[i] || 200)
29 | }
30 |
31 | turnState[i] = inView ? (ani || true) : false
32 | setTurnState([...turnState])
33 | }
34 | }
35 |
36 | if (turnState.length || inView) {
37 | run().catch(console.error)
38 | }
39 | }, [inView])
40 |
41 | return (
42 |
41 | By clicking “Accept All Cookies”, you agree to the storing of
42 | cookies
43 | on
44 | your device to enhance site navigation, and analyze site usage.
45 | View our Privacy Policy for more.
50 |
51 | Overwhelmed and constantly
53 | afraid of losing your
54 | thoughts?
55 |
56 |
57 |
62 | Everyday you’re bombarded with information.
63 | Your non-connected notes lead to missing context when
64 |
65 | you need it.
66 | That gets future-you into trouble.
67 |
68 |
209 | )
210 | }
211 |
--------------------------------------------------------------------------------
/src/pages/Pro/modals.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | ArrowSquareOut,
3 | CaretLeft,
4 | Check, CheckSquareOffset, CopySimple,
5 | IdentificationBadge,
6 | Info, PaperPlaneTilt,
7 | Student,
8 | UserCirclePlus
9 | } from '@phosphor-icons/react'
10 | import copy from 'copy-to-clipboard'
11 | import { Dropdown } from '../../components/Dropdown'
12 | import toast from 'react-hot-toast'
13 | import { useNavigate } from 'react-router-dom'
14 | import { useAppState } from '../../state'
15 |
16 | export const discountStudentEmailTemplate = {
17 | subject: 'Logseq Pro Student Discount Request',
18 | body: `
19 | Instructions from the Logseq Team:
20 |
21 | Thank you for wanting to use Logseq Pro! Students and educational professionals can apply for a 50% discount on the monthly or annual Logseq Pro plan.
22 | To receive a discount coupon, please follow the steps below and answer the questions:
23 | Attach a photo/scan of your school ID. Please hide any personal information, but clearly show both your name and the expiry/validity date of the ID.
24 |
25 | 1. What is your full name?
26 | 2. What is your school's name?
27 | 3. What is your Logseq username?
28 | 4. What is your email address (the one you used to sign up for Logseq Pro)?
29 |
30 | Please answer all questions and attach a photo/scan of your school ID.
31 | Talk to you soon!
32 |
33 | — The Logseq team
34 | `
35 | }
36 |
37 | export function UnlockStudentDiscount (props: any) {
38 | const { close } = props || {}
39 | const navigate = useNavigate()
40 | const appState = useAppState()
41 | const supportEmail = 'support@logseq.com'
42 | const isLogged = !!appState.value.userInfo?.username
43 |
44 | return (
45 |
46 |
47 | Unlock your student discount.
48 |
49 |
50 |
51 | Maximize your academic potential with 50% off Logseq Pro.
52 | If you’re currently studying at a high school or university,
53 | here’s how you can take advantage:
54 |
73 |
74 | Using a university email during this step speeds up your student discount approval.
75 |
76 |
77 |
99 |
100 |
101 |
102 |
103 | 2
104 |
105 |
Request your discount
106 |
107 |
108 |
Already used a school email address for sign-up?
109 |
Simply email us directly from that school/university email address to request your discount. Make
110 | sure to also mention the username you chose for your Logseq account.
111 |
112 |
113 |
121 |
122 |
123 |
124 |
125 |
Signed up with a non-educational email address?
126 |
Email us a clear picture or scan of your valid student ID or other proof of student status. Mention
127 | both the email address and username you used for your Logseq account.
128 |
129 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | Open email client
142 |
143 |
144 | Use our pre-filled template to request your student discount
145 |
146 |
194 | Ensure your ID displays a visible expiry date.
195 |
196 |
197 | Feel free to blur out any sensitive information (beside your name and the university name);
198 | we only need to verify your student status.
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 | Once your status is verified, we’ll provide you with a unique discount code.
209 |
210 | Use this code when subscribing to Logseq Pro to get the discount.
212 |
213 |
214 |
215 | )
216 | }
217 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Visit https://aka.ms/tsconfig to read more about this file */
4 |
5 | /* Projects */
6 | // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12 |
13 | /* Language and Environment */
14 | "target": "es2016",
15 | /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
16 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
17 | "jsx": "preserve",
18 | /* Specify what JSX code is generated. */
19 | // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
20 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
21 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
22 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
23 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
24 | // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
25 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
26 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
27 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
28 |
29 | /* Modules */
30 | "module": "esnext",
31 | /* Specify what module code is generated. */
32 | // "rootDir": "./", /* Specify the root folder within your source files. */
33 | "moduleResolution": "node",
34 | /* Specify how TypeScript looks up a file from a given module specifier. */
35 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
36 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
37 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
38 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
39 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */
40 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
41 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
42 | // "resolveJsonModule": true, /* Enable importing .json files. */
43 | // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */
44 |
45 | /* JavaScript Support */
46 | "allowJs": true,
47 | /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48 | "checkJs": false,
49 | /* Enable error reporting in type-checked JavaScript files. */
50 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
51 |
52 | /* Emit */
53 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
54 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */
55 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
56 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
57 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58 | // "outDir": "./", /* Specify an output folder for all emitted files. */
59 | // "removeComments": true, /* Disable emitting comments. */
60 | // "noEmit": true, /* Disable emitting files from a compilation. */
61 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
67 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
68 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
69 | // "newLine": "crlf", /* Set the newline character for emitting files. */
70 | // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
71 | // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
72 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
73 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
74 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
75 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
76 |
77 | /* Interop Constraints */
78 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
79 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80 | "esModuleInterop": true,
81 | /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
82 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
83 | "forceConsistentCasingInFileNames": true,
84 | /* Ensure that casing is correct in imports. */
85 |
86 | /* Type Checking */
87 | "strict": true,
88 | /* Enable all strict type-checking options. */
89 | "noImplicitAny": false, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
90 | "strictNullChecks": false, /* When type checking, take into account 'null' and 'undefined'. */
91 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
92 | // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
93 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
94 | // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
95 | // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
96 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
97 | // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
98 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
99 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
100 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
101 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
102 | // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
103 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
104 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
105 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
106 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
107 |
108 | /* Completeness */
109 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
110 | "skipLibCheck": true
111 | /* Skip type checking all .d.ts files. */
112 | },
113 | "include": [
114 | "src/**/*",
115 | "index.ts",
116 | "node_modules/@cloudflare/workers-types/**/*.ts"
117 | ]
118 | }
119 |
--------------------------------------------------------------------------------
/src/pages/Landing/DailyShowcase.tsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useRef, useState, useCallback } from 'react'
2 | import cx from 'classnames'
3 | import { ArrowSquareOut, CaretDown, DiscordLogo, TwitterLogo } from '@phosphor-icons/react'
4 | import { AnimateInTurnStage } from '../../components/Animations'
5 | import { useAppState } from '../../state'
6 | import { slugify, navigateTabs } from '../../components/utils'
7 |
8 | const IconImageRelations = new URL('assets/icon_relations.png', import.meta.url)
9 | const IconImageDailyPlan = new URL('assets/icon_daily_plan.png', import.meta.url)
10 | const IconImageJournals = new URL('assets/icon_journals.png', import.meta.url)
11 | const IconImageDataControl = new URL('assets/icon_data_control.png', import.meta.url)
12 |
13 | const showcases = [
14 | {
15 | label: 'Relationships',
16 | iconUrl: IconImageRelations,
17 | descImgUrl: new URL('./assets/benefit-0.png', import.meta.url),
18 | refLink: 'https://discord.com/channels/725182569297215569/725188616695054356/1045646531090448436',
19 | userName: 'oskr',
20 | refType: 'discord',
21 | desc: (
22 |
23 | Communicate better. Stay on top of your relationships, conversations, and meetings.
24 |
),
25 | feedback: (
26 |
27 | “I mostly use it for work: keeping daily notes & meeting notes. It's the best solution I've found
28 | to managing my tasks
29 | (and I only use a fraction of the features there).”
30 |
47 | “I used to hate taking notes.
48 | If I told my past self that I wouldn't just like taking notes, but that I would become addicted to it, I
49 | wouldn't believe it.
50 | Logseq has changed my life 🔥🔥🔥”
51 |
40 | Always up-to-date notes
41 | between all your devices.
42 |
43 |
44 | With encrypted file syncing, you'll always have your notes
46 | backed up and securely available in real-time on any device.
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
Whiteboards BETA
61 |
62 |
63 | A new canvas
64 | for your thoughts.
65 |
66 |
67 |
68 | Place any of your thoughts from the knowledge base
69 | or new ones next to each other on an infinite canvas
70 | to connect, associate and understand in new ways.
71 |
168 | Get ready for
169 | knowledge work reimagined.
170 |
171 |
172 |
173 |
174 | By downloading Logseq, you are embarking on a journey. We are
175 | constantly trying to make it even more useful for all kinds of
176 | workflows.
177 |
178 | {' '}
179 |
180 | These exciting features are coming soon:
181 |
182 |
183 |
184 | > :
185 | <>
186 |
188 | A safe space for
189 | your thoughts.
190 |
191 |
192 |
193 | Designed to store your
194 | interests, questions, ideas, favorite quotes,
195 | reminders, reading and meeting
196 | notes
197 | easily and future-proof:
198 |
244 | By thinking and writing with Logseq, you'll
245 | gain confidence in what you know and
246 | stop worrying about forgetting
247 | anything.
248 |