π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add Space invite walkthrough and improve multi-photo browsing
Anand Baburajanf13fc3d8ecce
diff --git a/web/apps/space/public/images/about/chat-screen.webp b/web/apps/space/public/images/about/chat-screen.webpnew file mode 100644index 0000000000..5bbd1f4e12Binary files /dev/null and b/web/apps/space/public/images/about/chat-screen.webp differdiff --git a/web/apps/space/public/images/about/ducky-encryption.svg b/web/apps/space/public/images/about/ducky-encryption.svgnew file mode 100644index 0000000000..9d4b4bec14--- /dev/null+++ b/web/apps/space/public/images/about/ducky-encryption.svg@@ -0,0 +1,33 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="260 360 410 300" fill="none" width="410" height="300">+ <g>+ <path d="M503.768 615.763C524.497 635.824 541.489 640.297 500.343 639.721C459.197 639.145 482.684 614.258 482.684 614.258L503.768 615.763Z" fill="#F79545" />+ <path d="M506.748 641.58C521.427 641.58 526.008 640.606 527.12 637.683C528.277 634.539 524.496 631.395 517.601 625.638C514.043 622.671 509.55 618.951 505.013 614.523L504.568 614.08L482.016 612.441L481.437 613.061C481.037 613.504 471.518 623.734 475.076 632.148C477.656 638.17 486.152 641.359 500.342 641.536C502.655 641.536 504.79 641.58 506.748 641.58ZM523.74 636.443C523.473 636.665 522.361 637.285 518.091 637.683C514.354 637.993 508.705 638.126 500.387 637.993C487.887 637.816 480.281 635.336 478.324 630.775C476.277 625.904 480.903 619.084 483.439 616.117L502.967 617.534C507.459 621.83 511.819 625.461 515.288 628.384C519.114 631.528 523.428 635.115 523.74 636.443Z" fill="#0B0B0B" />+ <path d="M410.8 465.597C391.451 426.406 380.597 416.531 365.829 420.251C351.061 423.971 338.161 478.262 369.521 497.57C400.881 516.878 410.8 465.597 410.8 465.597Z" fill="#FBAC44" />+ <path d="M402.221 449.167C402.266 449.211 402.266 449.256 402.266 449.256C402.043 449.654 401.776 450.053 401.554 450.496C401.51 450.451 401.51 450.407 401.465 450.363C401.776 449.92 401.999 449.566 402.221 449.167ZM349.821 447.086C352.09 432.339 358.584 420.781 365.568 419.01C378.468 415.733 388.298 422.42 401.732 445.58C402.177 446.333 402.577 447.086 403.022 447.883C403.022 447.927 403.066 447.927 403.066 447.972C405.024 451.47 407.114 455.367 409.249 459.574C410.139 461.301 411.029 463.117 411.963 464.977C412.096 465.242 412.141 465.508 412.052 465.774C411.829 466.969 406.314 494.602 390.345 501.555C385.496 503.68 380.247 503.636 374.687 501.511C373.886 501.201 373.13 500.891 372.329 500.492C371.173 499.961 370.016 499.296 368.86 498.588C366.636 497.215 364.589 495.665 362.766 493.938C362.721 493.894 362.677 493.849 362.588 493.805C361.965 493.23 361.342 492.61 360.808 491.99C349.643 479.856 347.553 461.699 349.821 447.086ZM364.189 491.857C365.968 493.584 367.97 495.134 370.194 496.507C371.484 497.304 372.73 497.968 373.975 498.544C379.535 501.068 384.695 501.333 389.366 499.341C403.111 493.318 408.805 469.183 409.516 465.774C408.894 464.534 408.271 463.294 407.693 462.098C405.557 457.891 403.511 454.038 401.599 450.496C401.554 450.451 401.554 450.407 401.51 450.363C401.109 449.61 400.664 448.901 400.264 448.193C387.186 425.21 377.979 418.523 366.146 421.49C360.319 422.951 354.314 434.155 352.268 447.529C350.133 461.345 352.045 478.483 362.321 489.997C362.855 490.617 363.433 491.192 364.056 491.768C364.1 491.768 364.145 491.812 364.189 491.857ZM402.221 449.167C402.266 449.211 402.266 449.256 402.266 449.256C402.043 449.654 401.776 450.053 401.554 450.496C401.51 450.451 401.51 450.407 401.465 450.363C401.776 449.92 401.999 449.566 402.221 449.167Z" fill="#010101" />+ <path d="M383.537 600.396C387.096 601.149 389.854 597.296 387.985 594.241C377.576 577.236 350.131 571.435 339.678 580.336C330.425 588.218 367.034 596.942 383.537 600.396Z" fill="#F79545" />+ <path d="M384.426 602.256C386.339 602.256 388.118 601.37 389.275 599.732C390.654 597.783 390.743 595.348 389.497 593.311C382.647 582.151 369.703 576.483 359.872 574.933C350.976 573.516 343.191 574.977 338.521 578.963C336.296 580.823 336.252 582.727 336.563 584.011C337.186 586.358 339.811 590.078 355.691 595.126C364.987 598.093 375.752 600.573 383.181 602.123C383.581 602.212 383.981 602.256 384.426 602.256ZM353.511 577.944C355.335 577.944 357.292 578.077 359.294 578.431C368.324 579.848 380.245 585.03 386.428 595.171C387.14 596.366 386.517 597.429 386.339 597.695C386.116 598.005 385.316 598.979 383.892 598.669C352.755 592.159 340.789 586.225 339.988 583.17C339.944 582.993 339.811 582.55 340.834 581.708C343.68 579.228 348.218 577.944 353.511 577.944Z" fill="#0B0B0B" />+ <g>+ <path d="M535.262 514.574L523.786 555.005L524.409 574.224C560.795 573.604 578.899 567.36 587.039 553.455C588.908 550.311 590.242 546.768 591.176 542.827C594.779 527.461 564.398 519.623 546.961 516.39C540.111 515.106 535.262 514.574 535.262 514.574Z" fill="#FFCD3F" />+ <path d="M545.534 518.693C545.534 518.693 565.951 524.45 578.05 529.056C590.194 533.617 591.261 544.954 581.742 557.087L581.386 557.486L587.08 553.456C588.948 550.312 590.283 546.769 591.217 542.828C594.82 527.462 564.439 519.623 547.002 516.391L545.534 518.693Z" fill="white" />+ <path d="M522.142 553.897L533.574 513.466C533.752 512.891 534.286 512.492 534.909 512.581C535.487 512.625 540.024 513.156 546.296 514.308C546.341 514.308 546.385 514.308 546.385 514.308C546.785 514.396 547.186 514.441 547.586 514.529C548.164 514.618 548.698 514.751 549.321 514.883C549.41 514.883 549.499 514.928 549.588 514.928C563.511 517.673 583.172 523.12 589.844 532.553C591.401 534.767 592.202 537.158 592.202 539.594C592.202 540.479 592.113 541.409 591.89 542.339C587.22 562.223 572.63 571.434 539.802 574.002C539.757 574.002 539.757 574.002 539.713 574.002C538.734 574.091 537.756 574.135 536.777 574.224C536.288 574.268 535.798 574.268 535.309 574.312C531.706 574.534 527.925 574.666 523.922 574.711C523.744 574.711 523.61 574.711 523.432 574.622C522.987 574.445 522.632 574.002 522.632 573.515L522.009 554.296C522.053 554.163 522.098 554.03 522.142 553.897ZM525.167 572.187C528.948 572.098 532.507 571.965 535.932 571.788C536.332 571.744 536.732 571.744 537.133 571.699C538.111 571.611 539.09 571.567 540.069 571.478C540.113 571.478 540.158 571.478 540.158 571.478C553.458 570.415 563.555 568.201 571.162 564.614C575.298 562.666 578.724 560.274 581.437 557.44C581.526 557.352 581.57 557.307 581.659 557.219C581.659 557.219 581.659 557.174 581.704 557.174C581.748 557.13 581.793 557.086 581.793 557.086C585.574 552.967 588.065 547.963 589.488 541.808C590.155 539.062 589.577 536.494 587.842 534.014C584.818 529.763 578.679 526.309 571.651 523.607C564.089 520.729 555.504 518.648 548.52 517.275C548.476 517.275 548.387 517.275 548.342 517.23C547.764 517.098 547.186 517.009 546.652 516.92L546.163 516.832C545.985 516.788 545.807 516.743 545.584 516.743C541.003 515.902 537.444 515.415 535.754 515.193L524.633 554.429L525.167 572.187Z" fill="#010101" />+ <path fill="#08c225" d="M650.501 504.592L606.79 474.64L556.5 506.994C560.848 599.675 623.42 604.71 623.42 604.71C662.412 571.515 650.501 504.592 650.501 504.592Z" />+ <path d="M622.425 524.681L621.692 519.283C620.883 513.323 615.394 509.145 609.432 509.954C603.471 510.763 599.293 516.253 600.103 522.214L600.836 527.612C597.854 528.017 595.766 530.761 596.171 533.742L598.369 549.934C598.774 552.916 601.518 555.004 604.499 554.599L626.089 551.668C629.07 551.263 631.159 548.519 630.754 545.538L628.555 529.345C628.151 526.364 625.406 524.276 622.425 524.681ZM605.5 521.482C605.095 518.5 607.184 515.756 610.165 515.351C613.146 514.947 615.89 517.035 616.295 520.016L617.028 525.413L606.233 526.879L605.5 521.482Z" fill="#232323" />+ <path d="M633.763 589.509C651.925 557.713 644.649 508.587 644.649 508.587L610.096 483.727L557.916 507.259L607.033 474.761L651.682 505.299C651.682 505.299 656.66 537.792 650.354 558.042C644.048 578.292 635.449 592.048 635.449 592.048L633.763 589.509Z" fill="white" />+ <path d="M620.781 604.449C622.018 604.652 622.773 604.692 622.938 604.719L624.188 604.84L625.079 604.062C641.722 589.99 650.667 570.679 653.216 542.533C655.107 521.42 652.343 506.868 652.218 506.091L651.995 504.879L606.218 472.887L556.218 506.714L556.276 508.404C558.635 557.519 575.364 578.195 590.717 590.292C604.185 600.987 615.753 603.624 620.781 604.449ZM622.939 601.742C619.064 601.106 606.286 598.505 593.354 588.15C573.158 572.066 561.397 544.427 559.341 508.3L606.891 477.877L648.277 506.091C649.587 515.044 656.481 572.044 622.939 601.742Z" fill="#1E1E1E" />+ </g>+ <path d="M351.286 558.769C353.91 565.987 357.513 571.656 360.716 575.597C361.784 576.925 362.762 578.032 363.696 578.918C373.349 588.705 395.457 596.277 414.228 597.473C414.539 597.517 414.806 597.517 415.118 597.517C421.078 597.827 426.639 597.473 431.354 596.322C431.354 596.322 438.871 601.636 449.814 607.392C464.982 615.364 486.689 624.265 503.815 620.988C505.594 620.678 507.329 620.19 508.975 619.571C531.439 611.289 540.557 585.206 540.379 564.172C540.335 557.839 539.445 551.949 537.844 547.167L537.132 531.136C545.228 525.423 549.276 516.567 551.278 508.95C553.413 500.802 553.279 494.07 553.279 494.07C563.288 472.194 563.466 453.462 556.704 437.874C549.632 421.534 534.953 408.603 516.181 399.17C513.29 397.709 510.31 396.336 507.196 395.008C503.37 393.414 499.589 392.174 495.808 391.288C473.701 386.107 452.883 393.281 434.645 408.78C421.924 419.585 410.403 434.509 400.617 452.134L380.155 475.427L364.942 490.395C344.614 519.002 345.414 542.65 351.286 558.769Z" fill="#FFCD3F" />+ <path d="M503.77 621.033C505.549 620.723 507.284 620.235 508.93 619.615C531.394 611.334 540.512 585.251 540.379 564.261L537.71 558.637C536.198 581.354 525.611 609.652 507.685 618.553C505.861 619.483 504.571 620.324 503.77 621.033Z" fill="white" />+ <path d="M351.281 558.77C353.906 565.988 357.509 571.656 360.711 575.598C357.864 568.645 355.64 556.999 357.509 537.691C361.468 496.507 392.516 486.632 408.485 460.859C424.41 435.085 452.611 384.469 496.604 391.82L497.182 392.042L495.804 391.422C458.261 382.653 424.454 409.401 400.612 452.223L380.15 475.516L364.937 490.529C344.609 519.003 345.409 542.651 351.281 558.77Z" fill="#FBAC44" />+ <path d="M516.137 399.26C517.694 402.094 521.564 405.991 528.814 411.394C564.489 438.008 556.527 472.284 546.563 493.053C546.563 493.053 550.877 503.947 544.65 519.092L551.278 508.995C553.413 500.847 553.279 494.116 553.279 494.116C563.288 472.239 563.421 453.507 556.705 437.92C549.587 421.623 534.953 408.737 516.137 399.26Z" fill="white" />+ <path d="M379.349 521.748C368.763 549.204 384.554 581.398 415.113 597.562C421.074 597.872 426.634 597.518 431.349 596.366C431.349 596.366 438.867 601.68 449.809 607.437C477.966 609.209 503.544 596.056 512.573 572.63C524.272 542.385 503.899 506.426 467.113 492.388C430.326 478.35 391.048 491.458 379.349 521.748Z" fill="#FFD56C" />+ <path d="M344.93 541.899C345.375 549.029 347.021 556.114 349.868 562.712C351.291 565.989 352.982 569.178 354.939 572.189C355.917 573.65 356.985 575.112 358.097 576.529C359.209 577.946 360.455 579.319 361.789 580.559C367.171 585.607 373.621 588.928 380.249 591.585C382.785 592.604 385.365 593.489 387.945 594.331C392.126 595.659 396.441 596.678 400.755 597.519C407.027 598.671 413.388 599.379 419.794 599.158C420.55 599.113 421.306 599.113 422.107 599.025C423.886 598.848 425.71 598.759 427.489 598.405L429.624 598.051L430.114 598.405L431.226 599.158C434.206 601.106 437.186 602.966 440.256 604.737C446.394 608.28 452.666 611.557 459.161 614.391C465.655 617.225 472.327 619.661 479.311 621.3C480.868 621.654 482.425 622.008 484.026 622.274C489.497 623.248 495.147 623.602 500.751 622.805C508.046 621.831 514.808 618.465 520.368 613.816C525.928 609.122 530.199 603.143 533.312 596.678C536.426 590.212 538.339 583.304 539.54 576.263C539.673 575.554 539.762 574.802 539.851 574.093C539.896 573.916 539.896 573.783 539.896 573.606C539.985 572.942 540.029 572.233 540.118 571.569C540.296 569.576 540.34 567.583 540.296 565.591C540.296 565.148 540.251 564.661 540.251 564.218C540.074 561.118 539.629 558.062 538.828 555.051C538.739 554.741 538.428 554.52 538.072 554.608C537.805 554.697 537.627 554.918 537.627 555.184C537.627 556.38 537.672 557.62 537.672 558.815C537.672 563.155 537.494 567.451 537.093 571.746C537.049 572.41 536.96 573.075 536.871 573.783C536.871 573.96 536.826 574.093 536.826 574.27C536.782 574.802 536.693 575.289 536.648 575.82C535.714 582.64 533.757 589.282 530.777 595.438C527.841 601.593 523.749 607.262 518.544 611.601C516.454 613.328 514.185 614.878 511.783 616.163C508.224 618.067 504.354 619.395 500.395 619.927C494.969 620.68 489.408 620.281 483.893 619.263C482.603 618.997 481.313 618.731 480.023 618.421C473.306 616.827 466.767 614.436 460.406 611.646C457.559 610.406 454.712 609.033 451.91 607.616C448.485 605.889 445.104 604.029 441.812 602.125C438.788 600.353 435.852 598.538 432.916 596.634L431.848 595.925L431.27 595.526C430.914 595.305 430.47 595.128 430.069 595.084C429.847 595.039 429.624 595.039 429.402 595.084C429.224 595.084 428.913 595.172 428.868 595.172L428.245 595.261L427 595.482C425.354 595.836 423.619 595.925 421.929 596.058C421.262 596.102 420.55 596.146 419.883 596.146C418.86 596.146 417.837 596.146 416.814 596.191C415.257 596.102 413.7 596.102 412.143 595.969C411.965 595.969 411.787 595.925 411.654 595.925C408.228 595.615 404.759 595.216 401.378 594.552C395.818 593.534 390.302 592.072 384.964 590.168C383.808 589.77 382.607 589.327 381.45 588.84C379.804 588.264 378.292 587.467 376.691 586.758C375.134 586.05 373.621 585.208 372.109 584.411L369.929 583.083L368.817 582.418L367.794 581.666C367.127 581.179 366.415 580.691 365.748 580.16L363.88 578.477C363.524 578.123 363.124 577.769 362.768 577.37C361.878 576.44 361.033 575.466 360.188 574.447C359.209 573.207 358.275 571.923 357.43 570.639C355.562 567.805 353.916 564.749 352.581 561.649C349.868 555.361 348.267 548.63 347.822 541.81C347.421 534.991 348.178 528.082 349.957 521.484C350.802 518.163 352.003 514.93 353.249 511.697C354.583 508.509 356.051 505.409 357.741 502.398C358.586 500.892 359.432 499.386 360.366 497.925L361.745 495.711L362.857 494.072L363.213 493.541C363.302 493.364 363.435 493.187 363.568 493.01C363.791 492.655 364.058 492.257 364.28 491.903C364.369 491.725 364.503 491.548 364.592 491.371L366.237 489.511C366.504 489.201 366.771 488.847 367.038 488.537C367.883 487.518 368.728 486.456 369.485 485.349C369.618 485.127 369.574 484.861 369.351 484.729C369.173 484.64 368.995 484.64 368.817 484.729C367.349 485.703 365.97 486.81 364.592 487.961L363.568 488.803L363.079 489.245C362.901 489.423 362.812 489.467 362.501 489.821C362.456 489.865 362.412 489.954 362.367 489.998C362.101 490.353 361.834 490.707 361.567 491.017C361.344 491.327 361.122 491.637 360.899 491.991C360.899 492.035 360.855 492.035 360.855 492.08C360.366 492.788 359.876 493.497 359.387 494.205L357.964 496.464C356.985 497.969 356.14 499.475 355.25 501.025C353.515 504.125 352.003 507.358 350.58 510.59C349.29 513.912 348 517.233 347.154 520.687C345.331 527.551 344.53 534.725 344.93 541.899Z" fill="#1E1E1E" />+ <path d="M396.03 455.898C396.297 456.075 396.652 456.075 396.919 455.854C397.453 455.322 398.031 454.791 398.565 454.259L399.366 453.462L399.766 453.064C399.9 452.975 400.166 452.532 400.211 452.444C400.656 451.735 401.056 451.071 401.501 450.363C401.768 449.964 401.99 449.565 402.213 449.167C402.346 448.945 402.48 448.768 402.568 448.547C402.702 448.325 402.835 448.148 402.969 447.927C403.725 446.687 404.526 445.447 405.282 444.207C405.994 443.1 406.705 441.949 407.417 440.841C410.753 435.793 414.312 430.878 418.137 426.228C419.294 424.811 420.495 423.438 421.696 422.065C428.502 414.404 436.153 407.452 444.827 402.049C449.897 398.861 455.324 396.248 461.018 394.344C466.712 392.528 472.628 391.465 478.588 391.288C479.967 391.244 481.391 391.288 482.77 391.332C487.307 391.554 491.844 392.307 496.203 393.502C496.515 393.591 496.826 393.679 497.138 393.768C499.717 394.521 502.208 395.406 504.655 396.425C505.9 396.956 507.102 397.488 508.347 398.019C508.48 398.063 508.658 398.152 508.792 398.196L509.593 398.595L510.838 399.215L512.884 400.189C515.242 401.385 517.599 402.625 519.868 403.909C522.804 405.592 525.651 407.407 528.408 409.311C528.453 409.356 528.497 409.356 528.542 409.4C528.942 409.71 529.387 409.976 529.787 410.286C530.143 410.551 530.544 410.817 530.899 411.083C534.903 414.05 538.639 417.371 541.976 421.002C550.16 429.638 555.854 440.576 557.5 452.311C559.235 464.046 557.01 476.091 552.74 487.207C552.251 488.624 551.628 489.996 551.05 491.369L550.605 492.388L550.383 492.919C550.383 492.963 550.249 493.185 550.205 493.362C550.16 493.539 550.116 493.761 550.071 493.982L549.982 496.373C549.849 499.296 549.449 502.263 548.87 505.141C548.247 508.241 547.402 511.253 546.379 514.22C546.157 514.84 545.979 515.415 545.756 516.035C545.668 516.257 545.623 516.434 545.534 516.611C545.312 517.187 545.089 517.762 544.867 518.338C544.778 518.559 544.689 518.781 544.6 518.958C544.2 519.932 543.755 520.906 543.31 521.925C543.132 522.324 543.31 522.766 543.71 522.944C544.022 523.076 544.378 522.988 544.6 522.766C545.534 521.748 546.335 520.641 547.091 519.445C547.18 519.312 547.269 519.179 547.313 519.047C547.714 518.427 548.07 517.762 548.425 517.098C548.514 516.921 548.648 516.7 548.737 516.522C549.048 515.947 549.315 515.371 549.582 514.751C550.827 511.873 551.717 508.817 552.34 505.761C552.963 502.706 553.363 499.606 553.496 496.462L553.541 495.266V494.336V494.292L553.763 493.761L554.208 492.698C554.786 491.281 555.454 489.864 555.943 488.402C558.167 482.601 559.857 476.578 560.747 470.423C561.637 464.268 561.815 457.935 560.88 451.735C559.146 439.292 553.007 427.645 544.422 418.611C540.196 414.05 535.392 410.02 530.321 406.477C530.054 406.3 529.832 406.123 529.565 405.946C529.12 405.636 528.675 405.326 528.231 405.016C527.786 404.75 527.385 404.44 526.941 404.175C526.54 403.909 526.184 403.687 525.784 403.422C525.384 403.156 524.983 402.935 524.583 402.669C521.247 400.632 517.822 398.772 514.308 397.045L511.772 395.849L510.527 395.274L510.126 395.096C509.859 394.964 509.593 394.875 509.281 394.742C508.125 394.255 507.013 393.768 505.856 393.281C503.276 392.262 500.652 391.332 497.983 390.579C497.627 390.491 497.315 390.402 496.96 390.314C490.91 388.72 484.638 387.878 478.366 388.1C472.094 388.321 465.867 389.472 459.95 391.421C454.034 393.458 448.43 396.248 443.181 399.569C435.129 404.706 428.012 411.039 421.651 418.035C419.739 420.161 417.87 422.331 416.047 424.545C412.177 429.328 408.618 434.332 405.282 439.469C403.992 441.461 402.746 443.499 401.545 445.536C401.279 445.978 401.056 446.377 400.834 446.82C400.745 446.997 400.656 447.174 400.522 447.351C400.389 447.573 400.255 447.838 400.122 448.104C399.544 449.211 398.965 450.318 398.387 451.425C398.254 451.647 398.298 451.558 398.209 451.735L397.853 452.178L397.142 453.108C396.697 453.728 396.208 454.304 395.763 454.924C395.674 455.278 395.718 455.677 396.03 455.898Z" fill="#010101" />+ <path d="M460.489 461.655C462.446 457.493 471.654 460.814 482.597 465.862C493.539 470.911 502.035 475.782 500.078 479.989C498.121 484.196 486.467 486.056 475.524 480.963C464.581 475.871 458.532 465.818 460.489 461.655Z" fill="#F79545" />+ <path d="M527.302 485.347C529.304 482.292 530.683 478.661 530.772 474.719C530.861 472.771 530.594 470.734 529.882 468.741C529.126 466.792 527.925 464.8 525.923 463.383C524.944 462.674 523.788 462.187 522.587 461.877C521.386 461.656 520.096 461.567 518.939 461.788C516.582 462.187 514.669 463.338 513.157 464.623C511.6 465.907 510.399 467.412 509.376 468.918C508.353 470.468 507.552 472.062 506.84 473.701C506.44 474.631 506.885 475.738 507.863 476.136C508.664 476.446 509.554 476.225 510.043 475.561L510.087 475.516C512.089 472.948 514.135 470.468 516.448 468.874C517.605 468.121 518.761 467.545 519.829 467.457C520.363 467.368 520.808 467.412 521.252 467.501C521.697 467.634 522.098 467.811 522.498 468.121C524.144 469.228 525.256 471.974 525.434 474.764C525.656 477.642 525.033 480.653 524.055 483.709V483.753C523.743 484.727 524.277 485.746 525.256 486.056C526.012 486.366 526.857 486.056 527.302 485.347Z" fill="#010101" />+ <path d="M442.209 441.728C444.478 439.381 446.88 437.344 449.549 436.104C452.129 434.864 455.065 434.51 456.888 435.396C457.378 435.573 457.689 435.883 458.045 436.193C458.356 436.547 458.623 436.901 458.846 437.388C459.335 438.318 459.424 439.602 459.379 440.975C459.246 443.765 458.178 446.821 457.066 449.921L457.022 449.965C456.666 450.895 457.155 451.913 458.089 452.268C458.846 452.533 459.646 452.268 460.136 451.692C462.315 448.858 464.183 445.581 464.851 441.595C465.162 439.602 465.118 437.388 464.228 435.13C463.828 434.023 463.071 432.96 462.271 432.074C461.381 431.189 460.358 430.436 459.246 429.993C456.977 429.063 454.664 429.019 452.574 429.373C450.483 429.771 448.615 430.613 446.969 431.676C443.633 433.846 441.275 436.945 439.852 440.267C439.54 440.975 439.852 441.817 440.563 442.127C441.142 442.304 441.764 442.171 442.209 441.728Z" fill="#010101" />+ <path d="M497.987 407.938L527.123 413.518C527.656 412.323 528.146 411.215 528.591 410.153C536.464 390.269 520.851 394.21 520.851 394.21C520.317 374.947 500.389 369.456 493.983 380.394C490.914 385.664 491.048 394.742 497.987 407.938Z" fill="#FFCD3F" />+ <path d="M494.025 380.394C494.114 380.527 494.47 380.35 495.093 379.818C499.897 375.567 515.332 379.065 518.758 393.546L522.627 396.07C522.627 396.07 530.056 397.576 527.298 410.64L528.633 410.152C536.506 390.269 520.893 394.21 520.893 394.21C520.314 374.947 500.386 369.5 494.025 380.394Z" fill="white" />+ <path d="M528.278 414.05C529.79 412.19 530.813 410.02 531.525 407.718C532.326 405.459 532.859 402.979 532.904 400.322C532.859 399.614 532.77 398.949 532.681 398.241C532.503 397.532 532.192 396.824 531.925 396.115C531.525 395.451 531.08 394.742 530.502 394.167C529.879 393.635 529.256 393.104 528.545 392.794C527.166 392.041 525.698 391.864 524.363 391.775C522.984 391.731 521.739 391.864 520.315 392.218L522.895 394.167C522.851 388.011 520.582 381.413 515.6 377.073C513.154 374.903 510.084 373.398 506.748 372.822C503.457 372.202 499.854 372.689 496.784 374.416C493.76 376.188 491.491 379.243 490.601 382.476C489.667 385.664 489.623 388.941 490.023 391.997C490.512 395.052 491.269 398.019 492.381 400.809C492.87 402.226 493.537 403.555 494.249 404.883C495.005 406.168 495.85 407.408 496.873 408.515C497.363 409.046 498.163 409.09 498.697 408.603C499.008 408.293 499.142 407.895 499.097 407.452V407.363C498.875 405.902 498.386 404.573 497.941 403.245C497.541 401.916 496.962 400.632 496.517 399.304C495.583 396.691 494.916 394.034 494.516 391.377C494.204 388.72 494.293 386.107 495.05 383.76C495.761 381.413 497.274 379.553 499.186 378.402C501.144 377.295 503.635 376.896 506.037 377.339C508.439 377.782 510.796 378.845 512.664 380.527C514.577 382.166 516.09 384.247 517.113 386.639C518.136 389.03 518.67 391.598 518.847 394.3V394.344C518.936 395.495 519.915 396.337 521.072 396.292C521.205 396.292 521.338 396.248 521.427 396.248C523.207 395.938 525.386 395.982 526.676 396.691C528.011 397.267 528.589 398.595 528.722 400.499C528.722 402.404 528.456 404.485 527.788 406.566C527.255 408.648 526.276 410.685 526.054 412.987V413.12C525.965 413.829 526.498 414.449 527.21 414.537C527.566 414.582 528.011 414.36 528.278 414.05Z" fill="#010101" />+ <path d="M521.696 396.205C520.228 396.603 519.205 397.577 518.582 398.374C518.449 398.552 518.138 398.419 518.226 398.197C518.538 396.869 518.849 394.61 518.582 392.219C518.182 388.632 520.762 392.352 521.029 392.75C521.029 392.75 521.073 392.795 521.073 392.839L521.874 395.983C521.874 396.072 521.785 396.16 521.696 396.205Z" fill="#010101" />+ </g>+</svg>diff --git a/web/apps/space/public/images/about/feed-screen.webp b/web/apps/space/public/images/about/feed-screen.webpnew file mode 100644index 0000000000..bedf6f1a1eBinary files /dev/null and b/web/apps/space/public/images/about/feed-screen.webp differdiff --git a/web/apps/space/public/images/about/friends-screen.webp b/web/apps/space/public/images/about/friends-screen.webpnew file mode 100644index 0000000000..4191811b79Binary files /dev/null and b/web/apps/space/public/images/about/friends-screen.webp differdiff --git a/web/apps/space/public/images/about/poke-screen.webp b/web/apps/space/public/images/about/poke-screen.webpnew file mode 100644index 0000000000..0e9bb67f1eBinary files /dev/null and b/web/apps/space/public/images/about/poke-screen.webp differdiff --git a/web/apps/space/src/components/AboutSpaceButton.tsx b/web/apps/space/src/components/AboutSpaceButton.tsxnew file mode 100644index 0000000000..e6c21b93c7--- /dev/null+++ b/web/apps/space/src/components/AboutSpaceButton.tsx@@ -0,0 +1,181 @@+import { Box, SwipeableDrawer } from "@mui/material";+import { SpaceAboutContent } from "components/AboutSpaceContent";+import {+ SpaceAddFriendButton,+ type SpaceAddFriendButtonProps,+} from "components/AddFriendButton";+import { SpaceBackIcon } from "components/BackIcon";+import { useBrowserBackClose } from "hooks/use-browser-back-close";+import React, { useState } from "react";++export const SpaceAboutButton: React.FC<+ SpaceAddFriendButtonProps & { username: string }+> = ({ isAddingFriend, onAddFriend, showAddingFriendSpinner, username }) => {+ const [open, setOpen] = useState(false);+ const close = () => setOpen(false);++ const { clearBrowserBackState } = useBrowserBackClose({+ open,+ onClose: close,+ stateKey: "space-about",+ });++ const addFriend = async () => {+ await clearBrowserBackState("back");+ close();+ onAddFriend();+ };++ return (+ <>+ <Box+ component="button"+ type="button"+ onClick={() => setOpen(true)}+ sx={{+ alignItems: "center",+ bgcolor: "rgba(0, 0, 0, 0.28)",+ border: 0,+ borderRadius: "999px",+ color: "white",+ cursor: "pointer",+ display: "flex",+ fontFamily: '"Inter Variable", Inter, sans-serif',+ fontSize: 12,+ fontWeight: 500,+ lineHeight: "18px",+ p: "8px 16px",+ "&:hover": { bgcolor: "rgba(0, 0, 0, 0.36)" },+ "&:focus-visible": {+ outline: "2px solid white",+ outlineOffset: 3,+ },+ }}+ >+ What's Ente Space?+ </Box>+ <SwipeableDrawer+ anchor="right"+ open={open}+ onOpen={() => setOpen(true)}+ onClose={close}+ disableSwipeToOpen+ hysteresis={0.2}+ elevation={0}+ slotProps={{+ backdrop: { sx: { bgcolor: "transparent" } },+ paper: {+ role: "dialog",+ "aria-modal": true,+ "aria-label": "About Ente Space",+ sx: {+ bgcolor: "#F5F5F7",+ backgroundImage: "none",+ borderRadius: 0,+ color: "black",+ height: "100dvh",+ overscrollBehaviorY: "contain",+ width: "100%",+ },+ },+ }}+ >+ <Box+ component="header"+ sx={{+ flexShrink: 0,+ pt: "calc(10px + env(safe-area-inset-top))",+ px: 2,+ }}+ >+ <Box+ sx={{+ alignItems: "center",+ display: "grid",+ gridTemplateColumns: "44px 1fr 44px",+ maxWidth: 480,+ mx: "auto",+ }}+ >+ <Box+ component="button"+ type="button"+ aria-label="Back to invite"+ autoFocus+ onClick={close}+ sx={{+ alignItems: "center",+ bgcolor: "transparent",+ border: 0,+ borderRadius: "12px",+ color: "black",+ cursor: "pointer",+ display: "flex",+ height: 44,+ justifyContent: "center",+ ml: "-12px",+ p: 0,+ width: 44,+ "&:hover": { bgcolor: "rgba(0, 0, 0, 0.06)" },+ "&:focus-visible": {+ outline: "2px solid black",+ outlineOffset: 3,+ },+ }}+ >+ <SpaceBackIcon />+ </Box>+ <Box+ component="h1"+ sx={{+ fontFamily: "Nunito, sans-serif",+ fontSize: 16,+ fontWeight: 700,+ lineHeight: "24px",+ m: 0,+ textAlign: "center",+ }}+ >+ Ente Space+ </Box>+ </Box>+ </Box>+ <Box+ sx={{+ boxSizing: "border-box",+ display: "flex",+ flexDirection: "column",+ gap: 3,+ flexShrink: 0,+ pt: 1.25,+ pb: "calc(32px + env(safe-area-inset-bottom))",+ px: 2,+ }}+ >+ <Box+ sx={{+ display: "flex",+ flexDirection: "column",+ gap: 3,+ maxWidth: 480,+ mx: "auto",+ width: "100%",+ }}+ >+ <SpaceAboutContent>+ <SpaceAddFriendButton+ fullWidth+ isAddingFriend={isAddingFriend}+ label={`Add @${username} as friend`}+ onAddFriend={() => void addFriend()}+ showAddingFriendSpinner={+ showAddingFriendSpinner+ }+ />+ </SpaceAboutContent>+ </Box>+ </Box>+ </SwipeableDrawer>+ </>+ );+};diff --git a/web/apps/space/src/components/AboutSpaceContent.tsx b/web/apps/space/src/components/AboutSpaceContent.tsxnew file mode 100644index 0000000000..5fa63d9ba7--- /dev/null+++ b/web/apps/space/src/components/AboutSpaceContent.tsx@@ -0,0 +1,137 @@+import React from "react";+import styles from "styles/about-space.module.css";++const photo = (name: string) => `/images/about/${name}.webp`;++const Feature: React.FC<{+ title: React.ReactNode;+ cropVisual?: boolean;+ children: React.ReactNode;+}> = ({ title, cropVisual, children }) => (+ <section+ className={+ cropVisual+ ? `${styles.feature} ${styles.cropVisual}`+ : styles.feature+ }+ >+ <div className={styles.featureHeading}>+ <h2>{title}</h2>+ </div>+ {children}+ </section>+);++const FeedPreview: React.FC = () => (+ <img+ className={styles.feedPreview}+ src={photo("feed-screen")}+ alt="Spaceβs feed showing Sophieβs cat by the window and Chloeβs bookshelf."+ width={780}+ height={1560}+ loading="lazy"+ />+);++export const SpaceAboutContent: React.FC<{ children: React.ReactNode }> = ({+ children,+}) => (+ <div className={styles.content}>+ <section className={`${styles.hero} green-bg`}>+ <div className={styles.heroCopy}>+ <h2>Share everyday photos with your people.</h2>+ </div>+ <div className={styles.heroVisual}>+ <FeedPreview />+ </div>+ </section>++ <Feature+ title={+ <>+ No brain rot. No ads.+ <br />+ Just your friends.+ </>+ }+ cropVisual+ >+ <div className={styles.quietVisual}>+ <img+ className={styles.quietIllustration}+ src="/images/ducky-space.svg"+ alt=""+ width={282}+ height={246}+ loading="lazy"+ />+ </div>+ </Feature>++ <Feature title="See what your friends and family are up to." cropVisual>+ <div className={`${styles.screenPreview} ${styles.shortPreview}`}>+ <img+ className={styles.screenCapture}+ src={photo("friends-screen")}+ alt="Further down the feed: Benβs pancakes, Alexβs park photos, and Emmaβs walk around Laurelhurst Park."+ width={780}+ height={1768}+ loading="lazy"+ />+ </div>+ </Feature>++ <Feature title="Like and reply to their posts." cropVisual>+ <div className={`${styles.screenPreview} ${styles.chatPreview}`}>+ <img+ className={styles.screenCapture}+ src={photo("chat-screen")}+ alt="Alex replies to Benβs breakfast post, βi owe you half a pancakeβ. Ben answers, βYou can get coffee next timeβ."+ width={780}+ height={1020}+ loading="lazy"+ />+ </div>+ </Feature>++ <Feature title="Poke a friend who hasnβt posted in a while." cropVisual>+ <div className={`${styles.screenPreview} ${styles.pokePreview}`}>+ <img+ className={styles.screenCapture}+ src={photo("poke-screen")}+ alt="Alex pokes Liam, who posts his first photo in over two weeks. Alex replies to the bike photo, βfixed it??β. Liam replies, βNoah did. I was about to buy a new tireβ."+ width={780}+ height={1160}+ loading="lazy"+ />+ </div>+ </Feature>++ <Feature+ title={+ <>+ Truly private with+ <br />+ end-to-end encryption.+ </>+ }+ cropVisual+ >+ <div className={styles.privacyVisual}>+ <img+ className={styles.privacyIllustration}+ src="/images/about/ducky-encryption.svg"+ alt=""+ width={410}+ height={300}+ loading="lazy"+ />+ </div>+ </Feature>++ <section className={`${styles.closing} green-bg`}>+ <h2 className={styles.tagline}>More social, less media.</h2>+ {children}+ </section>+ </div>+);diff --git a/web/apps/space/src/components/AddFriendButton.tsx b/web/apps/space/src/components/AddFriendButton.tsxnew file mode 100644index 0000000000..11fa9adc0d--- /dev/null+++ b/web/apps/space/src/components/AddFriendButton.tsx@@ -0,0 +1,66 @@+import { Box } from "@mui/material";+import { SpaceButtonSpinner } from "components/ButtonSpinner";+import React from "react";+import { onboardingGreen } from "screens/OnboardingScreen";++export interface SpaceAddFriendButtonProps {+ isAddingFriend: boolean;+ onAddFriend: () => void;+ showAddingFriendSpinner: boolean;+}++export const SpaceAddFriendButton: React.FC<+ SpaceAddFriendButtonProps & {+ green?: boolean;+ label?: string;+ fullWidth?: boolean;+ }+> = ({+ isAddingFriend,+ onAddFriend,+ showAddingFriendSpinner,+ green = false,+ label = "Add Friend",+ fullWidth = false,+}) => (+ <Box+ component="button"+ type="button"+ className={green ? "green-bg" : undefined}+ disabled={isAddingFriend}+ aria-label={isAddingFriend ? "Adding friend" : undefined}+ aria-busy={isAddingFriend ? true : undefined}+ onClick={onAddFriend}+ sx={{+ alignItems: "center",+ appearance: "none",+ bgcolor: green ? onboardingGreen : "white",+ border: 0,+ borderRadius: "24px",+ color: green ? "white" : "black",+ cursor: isAddingFriend ? "default" : "pointer",+ display: "flex",+ fontFamily: '"Inter Variable", Inter, sans-serif',+ fontSize: 16,+ fontWeight: 700,+ justifyContent: "center",+ lineHeight: "24px",+ minHeight: 60,+ overflowWrap: "anywhere",+ p: "18px 24px",+ mx: "auto",+ width: fullWidth ? "100%" : "min(100%, 300px)",+ "&:hover": isAddingFriend+ ? undefined+ : green+ ? { filter: "brightness(0.94)" }+ : { bgcolor: "#F4F4F4" },+ "&:focus-visible": {+ outline: `2px solid ${green ? onboardingGreen : "rgba(255 255 255 / 0.88)"}`,+ outlineOffset: 3,+ },+ }}+ >+ {showAddingFriendSpinner ? <SpaceButtonSpinner /> : label}+ </Box>+);diff --git a/web/apps/space/src/components/FileViewer.tsx b/web/apps/space/src/components/FileViewer.tsxindex d240080248..72f112dc30 100644--- a/web/apps/space/src/components/FileViewer.tsx+++ b/web/apps/space/src/components/FileViewer.tsx@@ -20,6 +20,7 @@ import { SpaceAvatarImage } from "components/AvatarImage";import { SpaceCaptionText } from "components/CaptionText";import { ConfirmationActionSheet } from "components/ConfirmationActionSheet";import { spacePostLikePopDurationMs } from "components/post-like-animation";+import { SpacePostPhotosCounter } from "components/PostPhotosCounter";import { SpacePostReplyControls } from "components/PostReplyControls";import log from "ente-base/log";import type PhotoSwipe from "photoswipe";@@ -1496,34 +1497,10 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({/></Box>)}- {postPhotoCount > 1 && (- <Box- component="span"- aria-live="polite"- aria-label={`Photo ${postPhotoIndex + 1} of ${postPhotoCount}`}- sx={{- alignItems: "center",- bgcolor: "#FFFFFF",- borderRadius: "999px",- boxSizing: "border-box",- color: "#000000",- display: "inline-flex",- fontFamily:- '"Inter Variable", Inter, sans-serif',- fontSize: 12,- fontVariantNumeric: "tabular-nums",- fontWeight: 700,- height: 24,- justifyContent: "center",- lineHeight: "16px",- minWidth: 48,- px: "10px",- whiteSpace: "nowrap",- }}- >- {postPhotoIndex + 1} / {postPhotoCount}- </Box>- )}+ <SpacePostPhotosCounter+ index={postPhotoIndex}+ count={postPhotoCount}+ /><Boxcomponent="button"type="button"diff --git a/web/apps/space/src/components/PostPhotoStrip.tsx b/web/apps/space/src/components/PostPhotoStrip.tsxindex cac50d8e1d..54446fb573 100644--- a/web/apps/space/src/components/PostPhotoStrip.tsx+++ b/web/apps/space/src/components/PostPhotoStrip.tsx@@ -406,6 +406,25 @@ export const SpacePostPhotoStrip: React.FC<{</Box></Box>))}+ {onAdd && photos.length < maxSpacePostPhotos && (+ <Box+ component="button"+ type="button"+ aria-label="Add photos"+ disabled={disabled}+ onClick={onAdd}+ sx={{+ ...iconButtonSx,+ bgcolor: "#242424",+ borderRadius: "9px",+ flexShrink: 0,+ width: photoSize,+ height: photoSize,+ }}+ >+ <HugeiconsIcon icon={Add01Icon} size={20} />+ </Box>+ )}</Box>{hasPhotosOnRight && (<Box@@ -423,36 +442,6 @@ export const SpacePostPhotoStrip: React.FC<{/>)}</Box>- {onAdd && photos.length < maxSpacePostPhotos && (- <Box- component="button"- type="button"- aria-label="Add photos"- disabled={disabled}- onClick={onAdd}- sx={{- ...iconButtonSx,- flexShrink: 0,- width: 44,- height: 44,- }}- >- <Box- component="span"- sx={{- alignItems: "center",- bgcolor: "#242424",- borderRadius: "50%",- display: "flex",- justifyContent: "center",- width: 32,- height: 32,- }}- >- <HugeiconsIcon icon={Add01Icon} size={20} />- </Box>- </Box>- )}</Box><Boxrole="status"diff --git a/web/apps/space/src/components/PostPhotosBadge.tsx b/web/apps/space/src/components/PostPhotosBadge.tsxindex 1ddcdf969c..d8dd106255 100644--- a/web/apps/space/src/components/PostPhotosBadge.tsx+++ b/web/apps/space/src/components/PostPhotosBadge.tsx@@ -2,7 +2,13 @@ import { Album02Icon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { Box } from "@mui/material";-export const SpacePostPhotosBadge = ({ count }: { count: number }) =>+export const SpacePostPhotosBadge = ({+ count,+ inset = 10,+}: {+ count: number;+ inset?: number;+}) =>count > 1 ? (<Boxcomponent="span"@@ -17,8 +23,8 @@ export const SpacePostPhotosBadge = ({ count }: { count: number }) =>opacity: 0.8,pointerEvents: "none",position: "absolute",- right: 10,- top: 10,+ right: inset,+ top: inset,width: 30,zIndex: 2,}}diff --git a/web/apps/space/src/components/PostPhotosCounter.tsx b/web/apps/space/src/components/PostPhotosCounter.tsxnew file mode 100644index 0000000000..ecb613bbd5--- /dev/null+++ b/web/apps/space/src/components/PostPhotosCounter.tsx@@ -0,0 +1,38 @@+import { Box } from "@mui/material";++export const SpacePostPhotosCounter = ({+ index,+ count,+ compact = false,+}: {+ index: number;+ count: number;+ compact?: boolean;+}) =>+ count > 1 ? (+ <Box+ component="span"+ aria-live="polite"+ aria-label={`Photo ${index + 1} of ${count}`}+ sx={{+ alignItems: "center",+ bgcolor: "#FFFFFF",+ borderRadius: "999px",+ boxSizing: "border-box",+ color: "#000000",+ display: "inline-flex",+ fontFamily: '"Inter Variable", Inter, sans-serif',+ fontSize: compact ? 11 : 12,+ fontVariantNumeric: "tabular-nums",+ fontWeight: 700,+ height: compact ? 20 : 24,+ justifyContent: "center",+ lineHeight: "16px",+ minWidth: compact ? 40 : 48,+ px: compact ? "8px" : "10px",+ whiteSpace: "nowrap",+ }}+ >+ {index + 1} / {count}+ </Box>+ ) : null;diff --git a/web/apps/space/src/pages/index.tsx b/web/apps/space/src/pages/index.tsxindex c3185a7080..9d9c7e4834 100644--- a/web/apps/space/src/pages/index.tsx+++ b/web/apps/space/src/pages/index.tsx@@ -1,6 +1,7 @@import { Box } from "@mui/material";+import { SpaceAboutButton } from "components/AboutSpaceButton";+import { SpaceAddFriendButton } from "components/AddFriendButton";import { AuthenticatedFriendProfile } from "components/AuthenticatedFriendProfile";-import { SpaceButtonSpinner } from "components/ButtonSpinner";import { SpaceMobileBestToast } from "components/MobileBestToast";import { SpacePageMeta } from "components/PageMeta";import { SpacePublicProfileNotificationControl } from "components/PublicProfileNotificationControl";@@ -144,7 +145,6 @@ const PublicFriendRequestScreen: React.FC<PublicFriendRequestScreenProps> = ({color: "white",display: "flex",flexDirection: "column",- justifyContent: "space-between",minHeight: { xs: "calc(100svh - 16px)", sm: "100svh" },overflow: "hidden",position: "relative",@@ -199,6 +199,7 @@ const PublicFriendRequestScreen: React.FC<PublicFriendRequestScreenProps> = ({</Box><Box /></Box>+ <Box sx={{ flex: 1, minHeight: 24 }} /><Boxsx={{alignItems: "center",@@ -244,6 +245,22 @@ const PublicFriendRequestScreen: React.FC<PublicFriendRequestScreenProps> = ({{`Add @${identity.username} as a friend to see what they're up to on Ente Space`}</Box></Box>+ <Box+ sx={{+ alignItems: "center",+ display: "flex",+ flex: 1,+ justifyContent: "center",+ minHeight: 80,+ }}+ >+ <SpaceAboutButton+ isAddingFriend={isAddingFriend}+ onAddFriend={onAddFriend}+ showAddingFriendSpinner={showAddingFriendSpinner}+ username={identity.username}+ />+ </Box><Boxsx={{boxSizing: "border-box",@@ -252,50 +269,14 @@ const PublicFriendRequestScreen: React.FC<PublicFriendRequestScreenProps> = ({mx: "auto",pb: "calc(env(safe-area-inset-bottom) + clamp(36px, calc(5.5svh + 12px), 56px))",px: 3,- pt: 3,width: "100%",}}>- <Box- component="button"- type="button"- disabled={isAddingFriend}- aria-label={isAddingFriend ? "Adding friend" : undefined}- aria-busy={isAddingFriend ? true : undefined}- onClick={onAddFriend}- sx={{- alignItems: "center",- appearance: "none",- bgcolor: "white",- border: 0,- borderRadius: "24px",- color: "black",- cursor: isAddingFriend ? "default" : "pointer",- display: "flex",- fontFamily: '"Inter Variable", Inter, sans-serif',- fontSize: 16,- fontWeight: 700,- justifyContent: "center",- lineHeight: "24px",- minHeight: 60,- p: "18px 24px",- mx: "auto",- width: "min(100%, 300px)",- "&:hover": isAddingFriend- ? undefined- : { bgcolor: "#F4F4F4" },- "&:focus-visible": {- outline: "2px solid rgba(255 255 255 / 0.88)",- outlineOffset: 3,- },- }}- >- {showAddingFriendSpinner ? (- <SpaceButtonSpinner />- ) : (- "Add Friend"- )}- </Box>+ <SpaceAddFriendButton+ isAddingFriend={isAddingFriend}+ onAddFriend={onAddFriend}+ showAddingFriendSpinner={showAddingFriendSpinner}+ /></Box></Box><SpaceMobileBestToast />diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsxindex cebca70e23..03c282bd3a 100644--- a/web/apps/space/src/screens/HomeScreen.tsx+++ b/web/apps/space/src/screens/HomeScreen.tsx@@ -22,7 +22,7 @@ import {spacePostLikePopTiming,} from "components/post-like-animation";import { SpacePostPhotoInput } from "components/PostPhotoInput";-import { SpacePostPhotosBadge } from "components/PostPhotosBadge";+import { SpacePostPhotosCounter } from "components/PostPhotosCounter";import { SpacePWAInstallPrompt } from "components/PWAInstallPrompt";import { SpaceLoadingSpinner } from "components/RouteFallback";import { SpaceShareInviteButton } from "components/ShareInviteButton";@@ -35,6 +35,7 @@ import {type SpacePost,type SpacePostAssetURLLoader,type SpacePostAvatarURLLoader,+ type SpacePostPhoto,} from "services/space";import type { LocalSpaceFeedPost } from "state/app-state";import { spaceEmptyStateButtonSx } from "styles/buttons";@@ -49,7 +50,7 @@ import {} from "styles/colors";import { spaceTouchTargetSize } from "styles/touch-targets";import { firstNameFrom, formatSpaceDate } from "utils/display";-import { viewerPhotosFromPost } from "utils/post-photos";+import { spacePostPhotos, viewerPhotosFromPost } from "utils/post-photos";import { thumbHashDataURLFromBase64 } from "utils/thumbhash";const homeBackground = spaceAppBackgroundColor;@@ -128,10 +129,6 @@ interface FeedPhotoDimensions {width: number;}-interface LoadedFeedPhotoDimensions extends FeedPhotoDimensions {- src: string;-}-interface DecodedImageState {failed?: boolean;height?: number;@@ -141,6 +138,7 @@ interface DecodedImageState {}interface SelectedHomeViewer {+ photoIndex: number;photos: SpaceViewerPhoto[];focusReplyOnOpen?: boolean;photo: SpaceViewerPhoto;@@ -358,8 +356,17 @@ class FeedMotionList extends React.Component<FeedMotionListProps> {type FeedTimestampStatus = "failed" | "post-limit" | "posted" | "posting";+interface FeedPostPhoto extends SpacePostPhoto {+ isUnavailable?: boolean;+}++type FeedPhotoSource = SpacePostPhoto & Pick<SpacePost, "postId" | "spaceId">;+interface FeedItemProps {photoCount?: number;+ photoIndex?: number;+ photos?: FeedPostPhoto[];+ onPhotoIndexChange?: (index: number) => void;aspectRatio: number;avatarUrl: string | null;caption?: string;@@ -370,7 +377,7 @@ interface FeedItemProps {isUnavailable?: boolean;name: string;onLoadAvatar?: () => Promise<string | null | undefined>;- onLoadImage?: () => Promise<string | undefined>;+ onLoadImage?: (index: number) => Promise<string | undefined>;onOpenFriend?: (friendID: string, username?: string) => void;onOpenPhoto?: (photo: SpaceViewerPhoto, focusReplyOnOpen?: boolean) => void;onOpenProfile?: () => void;@@ -406,14 +413,7 @@ const dimensionsFromAspectRatio = (return { height, width: Math.round(safeAspectRatio * height) };};-const feedPhotoFrameDimensionsFor = (- dimensions: FeedPhotoDimensions,-): FeedPhotoDimensions =>- dimensions.width / dimensions.height < minimumFeedPhotoFrameAspectRatio- ? { height: 4, width: 3 }- : dimensions;--const feedPostImageCacheKey = (item: SpacePost) =>+const feedPostImageCacheKey = (item: FeedPhotoSource) =>[item.postId,item.imageAsset?.spaceId ?? item.spaceId,@@ -636,8 +636,170 @@ const FeedPhotoCaption: React.FC<{ caption: string }> = ({ caption }) => {);};+const FeedPhoto: React.FC<{+ imageUrl?: string;+ isActive: boolean;+ isUnavailable: boolean;+ name: string;+ onLoadImage?: () => Promise<string | undefined>;+ onOpenPhoto?: () => void;+ shouldLoad: boolean;+ thumbHash?: string;+}> = ({+ imageUrl,+ isActive,+ isUnavailable,+ name,+ onLoadImage,+ onOpenPhoto,+ shouldLoad,+ thumbHash,+}) => {+ const decodedPhoto = useDecodedImage(imageUrl, true);+ const isPostUnavailable = isUnavailable || Boolean(decodedPhoto.failed);+ const displayImageUrl = decodedPhoto.src ?? undefined;+ const isPhotoReady = Boolean(displayImageUrl) && decodedPhoto.ready;+ const canOpenPhoto =+ !isPostUnavailable && isPhotoReady && Boolean(onOpenPhoto);+ const [showResolvedPhoto, setShowResolvedPhoto] = useState(false);+ const thumbHashDataURL = React.useMemo(+ () => thumbHashDataURLFromBase64(thumbHash),+ [thumbHash],+ );++ React.useEffect(() => {+ if (shouldLoad && !imageUrl && !isUnavailable) void onLoadImage?.();+ }, [imageUrl, isUnavailable, onLoadImage, shouldLoad]);++ React.useEffect(() => {+ if (!isPhotoReady || showResolvedPhoto) return;+ if (!thumbHashDataURL) {+ setShowResolvedPhoto(true);+ return;+ }+ const frameID = window.requestAnimationFrame(() =>+ setShowResolvedPhoto(true),+ );+ return () => window.cancelAnimationFrame(frameID);+ }, [isPhotoReady, showResolvedPhoto, thumbHashDataURL]);++ return (+ <Box+ component="button"+ type="button"+ aria-label={+ isPostUnavailable ? "Post unavailable" : `Open ${name} photo`+ }+ disabled={!canOpenPhoto}+ tabIndex={isActive ? 0 : -1}+ onClick={onOpenPhoto}+ sx={{+ appearance: "none",+ bgcolor: "transparent",+ border: 0,+ cursor: canOpenPhoto ? "pointer" : "default",+ display: "block",+ height: "100%",+ flex: "0 0 100%",+ scrollSnapAlign: "start",+ scrollSnapStop: "always",+ maxWidth: "100%",+ minWidth: 0,+ overflow: "hidden",+ p: 0,+ position: "relative",+ width: "100%",+ "&:focus-visible": {+ outline: `2px solid ${green}`,+ outlineOffset: -2,+ },+ }}+ >+ {!isPostUnavailable && !thumbHashDataURL && !isPhotoReady && (+ <Skeleton+ variant="rectangular"+ sx={{+ bgcolor: feedSkeletonElementBackground,+ display: "block",+ height: "100%",+ transform: "none",+ width: "100%",+ }}+ />+ )}+ {!isPostUnavailable && !isPhotoReady && thumbHashDataURL ? (+ <Box+ component="img"+ alt=""+ aria-hidden+ src={thumbHashDataURL}+ sx={{+ display: "block",+ filter: "blur(14px)",+ height: "100%",+ inset: 0,+ objectFit: "cover",+ objectPosition: "center",+ position: "absolute",+ transform: "scale(1.08)",+ width: "100%",+ }}+ />+ ) : null}+ {!isPostUnavailable && isPhotoReady && (+ <Box+ component="img"+ alt={`${name} post`}+ src={displayImageUrl}+ draggable={false}+ sx={{+ display: "block",+ height: "100%",+ inset: 0,+ maxWidth: "100%",+ minWidth: 0,+ objectFit: "cover",+ objectPosition: "center",+ opacity: showResolvedPhoto ? 1 : 0,+ position: "absolute",+ transition: thumbHashDataURL+ ? "opacity 220ms ease"+ : "none",+ width: "100%",+ zIndex: 1,+ "@media (prefers-reduced-motion: reduce)": {+ opacity: 1,+ transition: "none",+ },+ }}+ />+ )}+ {isPostUnavailable && (+ <Box+ sx={{+ alignItems: "center",+ bgcolor: feedSkeletonElementBackground,+ color: spaceTextMuted,+ display: "flex",+ fontSize: 14,+ fontWeight: 600,+ height: "100%",+ justifyContent: "center",+ width: "100%",+ }}+ >+ Post unavailable+ </Box>+ )}+ </Box>+ );+};+const FeedItem: React.FC<FeedItemProps> = ({photoCount = 1,+ photoIndex = 0,+ photos,+ onPhotoIndexChange,aspectRatio,avatarUrl,caption,@@ -666,15 +828,137 @@ const FeedItem: React.FC<FeedItemProps> = ({const [shouldLoadMedia, setShouldLoadMedia] = useState(!isUnavailable && Boolean(imageUrl) && !isAvatarPending,);+ const feedPhotos = photos ?? [{ imageUrl, thumbHash }];+ const activePhoto = feedPhotos[photoIndex]!;+ const [settledPhotoIndex, setSettledPhotoIndex] = useState(photoIndex);+ const carouselRef = React.useRef<HTMLDivElement | null>(null);+ const photoAnimationRef = React.useRef<number | null>(null);+ const swipeRef = React.useRef<{+ pointerID: number;+ index: number;+ startLeft: number;+ x: number;+ y: number;+ dragging: boolean;+ } | null>(null);+ const suppressPhotoClickRef = React.useRef(false);+ const scrollToPhoto = React.useCallback(+ (index: number) => {+ const carousel = carouselRef.current;+ if (!carousel) return;+ if (photoAnimationRef.current != null) {+ cancelAnimationFrame(photoAnimationRef.current);+ photoAnimationRef.current = null;+ }+ const nextIndex = Math.max(+ 0,+ Math.min(index, feedPhotos.length - 1),+ );+ const left = nextIndex * carousel.clientWidth;+ const startLeft = carousel.scrollLeft;+ carousel.style.scrollSnapType = "none";+ if (+ Math.abs(startLeft - left) < 1 ||+ window.matchMedia("(prefers-reduced-motion: reduce)").matches+ ) {+ carousel.scrollLeft = left;+ carousel.style.scrollSnapType = "";+ setSettledPhotoIndex(nextIndex);+ return;+ }+ const startTime = performance.now();+ const animate = (time: number) => {+ const progress = Math.min(1, (time - startTime) / 280);+ carousel.scrollLeft =+ startLeft + (left - startLeft) * (1 - (1 - progress) ** 3);+ if (progress < 1) {+ photoAnimationRef.current = requestAnimationFrame(animate);+ } else {+ photoAnimationRef.current = null;+ carousel.style.scrollSnapType = "";+ setSettledPhotoIndex(nextIndex);+ }+ };+ photoAnimationRef.current = requestAnimationFrame(animate);+ },+ [feedPhotos.length],+ );+ const finishPhotoSwipe = (event: React.PointerEvent<HTMLDivElement>) => {+ const swipe = swipeRef.current;+ if (swipe?.pointerID != event.pointerId) return;+ swipeRef.current = null;+ const dx = event.clientX - swipe.x;+ const direction =+ swipe.dragging &&+ event.type != "pointercancel" &&+ Math.abs(dx) >= 40+ ? -Math.sign(dx)+ : 0;+ scrollToPhoto(swipe.index + direction);+ };+ React.useEffect(+ () => () => {+ if (photoAnimationRef.current != null)+ cancelAnimationFrame(photoAnimationRef.current);+ },+ [],+ );+ React.useEffect(() => {+ const carousel = carouselRef.current;+ if (!carousel || feedPhotos.length < 2) return;+ let delta = 0;+ let advanced = false;+ let wheelEndTimeout: ReturnType<typeof setTimeout>;+ const handleWheel = (event: WheelEvent) => {+ if (+ event.ctrlKey ||+ Math.abs(event.deltaX) <= Math.abs(event.deltaY)+ )+ return;+ event.preventDefault();+ clearTimeout(wheelEndTimeout);+ wheelEndTimeout = setTimeout(() => {+ delta = 0;+ advanced = false;+ }, 180);+ if (advanced) return;+ delta += event.deltaX;+ if (Math.abs(delta) < 20) return;+ advanced = true;+ scrollToPhoto(+ Math.round(carousel.scrollLeft / carousel.clientWidth) ++ Math.sign(delta),+ );+ };+ carousel.addEventListener("wheel", handleWheel, { passive: false });+ return () => {+ clearTimeout(wheelEndTimeout);+ carousel.removeEventListener("wheel", handleWheel);+ };+ }, [feedPhotos.length, scrollToPhoto]);+ React.useEffect(() => {+ const carousel = carouselRef.current;+ if (!carousel) return;+ if (+ Math.round(carousel.scrollLeft / carousel.clientWidth) != photoIndex+ ) {+ if (photoAnimationRef.current != null) {+ cancelAnimationFrame(photoAnimationRef.current);+ photoAnimationRef.current = null;+ }+ carousel.style.scrollSnapType = "";+ carousel.scrollTo({+ left: photoIndex * carousel.clientWidth,+ behavior: "instant",+ });+ setSettledPhotoIndex(photoIndex);+ }+ }, [photoIndex]);const rootRef = React.useRef<HTMLElement | null>(null);const firstName = firstNameFrom(name);const dateLabel = formatSpaceDate(timestampMs);const postingDotCount = usePostingDotCount(timestampStatus == "posting");const displayCaption = caption?.trim();- const thumbHashDataURL = React.useMemo(- () => thumbHashDataURLFromBase64(thumbHash),- [thumbHash],- );const canOpenAuthor = isOwnPost? Boolean(onOpenProfile): Boolean(onOpenFriend);@@ -688,18 +972,17 @@ const FeedItem: React.FC<FeedItemProps> = ({}onOpenFriend?.(friendID, username);};- const [loadedPhotoDimensions, setLoadedPhotoDimensions] =- useState<LoadedFeedPhotoDimensions | null>(null);- const decodedPhoto = useDecodedImage(imageUrl, true);+ const decodedPhoto = useDecodedImage(activePhoto.imageUrl);const decodedAvatar = useDecodedImage(avatarUrl, true);- const isPostUnavailable = isUnavailable || decodedPhoto.failed;+ const isPostUnavailable =+ isUnavailable || activePhoto.isUnavailable || decodedPhoto.failed;const showFooter = !isOwnPost && !isPostUnavailable;const displayImageUrl =(decodedPhoto.failed? undefined: decodedPhoto.ready? decodedPhoto.src- : imageUrl) ?? undefined;+ : activePhoto.imageUrl) ?? undefined;const displayAvatarUrl =(decodedAvatar.failed? undefined@@ -707,60 +990,54 @@ const FeedItem: React.FC<FeedItemProps> = ({? decodedAvatar.src: avatarUrl) ?? undefined;const isAvatarReady = !isAvatarPending && decodedAvatar.ready;- const photoDimensions =- loadedPhotoDimensions && loadedPhotoDimensions.src == displayImageUrl- ? loadedPhotoDimensions- : dimensionsFromAspectRatio(aspectRatio);- const feedPhotoFrameDimensions =- feedPhotoFrameDimensionsFor(photoDimensions);+ const photoDimensions = {+ height:+ decodedPhoto.height ??+ activePhoto.height ??+ dimensionsFromAspectRatio(aspectRatio).height,+ width:+ decodedPhoto.width ??+ activePhoto.width ??+ dimensionsFromAspectRatio(aspectRatio).width,+ };+ const photoFrameAspectRatio = Math.max(+ minimumFeedPhotoFrameAspectRatio,+ photoDimensions.width / photoDimensions.height,+ );+ const [frameAspectRatio, setFrameAspectRatio] = useState(+ photoFrameAspectRatio,+ );const isPhotoReady = Boolean(displayImageUrl) && decodedPhoto.ready;const canOpenPhoto =!isPostUnavailable && isPhotoReady && Boolean(onOpenPhoto);- const [showResolvedPhoto, setShowResolvedPhoto] = useState(false);- const decodedPhotoHeight = decodedPhoto.height;- const decodedPhotoSrc = decodedPhoto.src;- const decodedPhotoWidth = decodedPhoto.width;- const rememberLoadedPhotoDimensions: React.ReactEventHandler<- HTMLImageElement- > = ({ currentTarget }) => {- if (!displayImageUrl) return;- const { naturalHeight, naturalWidth } = currentTarget;- if (!naturalHeight || !naturalWidth) return;-- setLoadedPhotoDimensions((currentDimensions) => {- if (- currentDimensions?.height == naturalHeight &&- currentDimensions.src == displayImageUrl &&- currentDimensions.width == naturalWidth- ) {- return currentDimensions;- }-- return {- height: naturalHeight,- src: displayImageUrl,- width: naturalWidth,- };- });- };- const openPhoto = (focusReplyOnOpen = false) => {- if (!canOpenPhoto || !displayImageUrl) return;+ const openPhoto = (focusReplyOnOpen = false, index = photoIndex) => {+ const selectedPhoto = feedPhotos[index]!;+ if (!selectedPhoto.imageUrl || isUnavailable) return;onOpenPhoto?.({+ ...selectedPhoto,alt: `${name} post`,avatarUrl: displayAvatarUrl ?? null,caption,friendID,- height: photoDimensions.height,- imageUrl: displayImageUrl,+ height:+ index == photoIndex+ ? photoDimensions.height+ : selectedPhoto.height,+ imageUrl: selectedPhoto.imageUrl,name,postId,+ postPhotoIndex: index,+ postPhotoCount: photoCount,spaceId,timestampMs,username,viewerLiked: isLiked,- width: photoDimensions.width,+ width:+ index == photoIndex+ ? photoDimensions.width+ : selectedPhoto.width,},focusReplyOnOpen,);@@ -811,20 +1088,10 @@ const FeedItem: React.FC<FeedItemProps> = ({if (isPostUnavailable) return;if (!shouldLoadMedia) return;- if (!imageUrl) {- void onLoadImage?.();- }if (isAvatarPending) {void onLoadAvatar?.();}- }, [- imageUrl,- isAvatarPending,- isPostUnavailable,- onLoadAvatar,- onLoadImage,- shouldLoadMedia,- ]);+ }, [isAvatarPending, isPostUnavailable, onLoadAvatar, shouldLoadMedia]);React.useEffect(() => {if (!decodedPhoto.failed) return;@@ -834,25 +1101,10 @@ const FeedItem: React.FC<FeedItemProps> = ({}, [decodedPhoto.failed, postId]);React.useEffect(() => {- if (!decodedPhotoHeight || !decodedPhotoWidth) return;- if (!decodedPhotoSrc) return;-- setLoadedPhotoDimensions((currentDimensions) => {- if (- currentDimensions?.height == decodedPhotoHeight &&- currentDimensions.src == decodedPhotoSrc &&- currentDimensions.width == decodedPhotoWidth- ) {- return currentDimensions;- }-- return {- height: decodedPhotoHeight,- src: decodedPhotoSrc,- width: decodedPhotoWidth,- };- });- }, [decodedPhotoHeight, decodedPhotoSrc, decodedPhotoWidth]);+ if (photoIndex == settledPhotoIndex) {+ setFrameAspectRatio(photoFrameAspectRatio);+ }+ }, [photoFrameAspectRatio, photoIndex, settledPhotoIndex]);React.useEffect(() => {if (likePopID == 0) return;@@ -864,20 +1116,6 @@ const FeedItem: React.FC<FeedItemProps> = ({return () => window.clearTimeout(timeoutID);}, [likePopID]);- React.useEffect(() => {- setShowResolvedPhoto(false);- if (!isPhotoReady) return;- if (!thumbHashDataURL) {- setShowResolvedPhoto(true);- return;- }-- const frameID = window.requestAnimationFrame(() =>- setShowResolvedPhoto(true),- );- return () => window.cancelAnimationFrame(frameID);- }, [displayImageUrl, isPhotoReady, thumbHashDataURL]);-return (<Boxref={rootRef}@@ -895,124 +1133,183 @@ const FeedItem: React.FC<FeedItemProps> = ({><Boxsx={{- aspectRatio: `${feedPhotoFrameDimensions.width} / ${feedPhotoFrameDimensions.height}`,+ aspectRatio: frameAspectRatio,bgcolor: "transparent",borderRadius: "16px",maxWidth: "100%",minWidth: 0,overflow: "hidden",position: "relative",+ transition: "aspect-ratio 220ms ease",width: "100%",+ "@media (prefers-reduced-motion: reduce)": {+ transition: "none",+ },}}>- <SpacePostPhotosBadge count={photoCount} />+ {photoCount > 1 && (+ <Box+ sx={{+ display: "flex",+ position: "absolute",+ right: 16,+ top: 16,+ zIndex: 3,+ pointerEvents: "none",+ }}+ >+ <SpacePostPhotosCounter+ compact+ index={photoIndex}+ count={photoCount}+ />+ </Box>+ )}<Box- component="button"- type="button"- aria-label={- isPostUnavailable- ? "Post unavailable"- : `Open ${name} photo`- }- disabled={!canOpenPhoto}- onClick={() => openPhoto()}+ ref={carouselRef}+ role={photoCount > 1 ? "group" : undefined}+ aria-label={photoCount > 1 ? "Post photos" : undefined}+ onPointerDown={(event) => {+ suppressPhotoClickRef.current = false;+ if (+ !event.isPrimary ||+ event.button != 0 ||+ feedPhotos.length < 2+ )+ return;+ const carousel = event.currentTarget;+ if (photoAnimationRef.current != null) {+ cancelAnimationFrame(photoAnimationRef.current);+ photoAnimationRef.current = null;+ }+ const index = Math.round(+ carousel.scrollLeft / carousel.clientWidth,+ );+ swipeRef.current = {+ pointerID: event.pointerId,+ index,+ startLeft: carousel.scrollLeft,+ x: event.clientX,+ y: event.clientY,+ dragging: false,+ };+ }}+ onPointerMove={(event) => {+ const swipe = swipeRef.current;+ if (swipe?.pointerID != event.pointerId) return;+ const dx = event.clientX - swipe.x;+ const dy = event.clientY - swipe.y;+ if (!swipe.dragging) {+ if (Math.max(Math.abs(dx), Math.abs(dy)) < 8)+ return;+ if (Math.abs(dy) >= Math.abs(dx)) {+ swipeRef.current = null;+ scrollToPhoto(swipe.index);+ return;+ }+ swipe.dragging = true;+ suppressPhotoClickRef.current = true;+ event.currentTarget.setPointerCapture(+ event.pointerId,+ );+ event.currentTarget.style.scrollSnapType = "none";+ }+ const carousel = event.currentTarget;+ carousel.scrollLeft = Math.max(+ (swipe.index - 1) * carousel.clientWidth,+ Math.min(+ (swipe.index + 1) * carousel.clientWidth,+ swipe.startLeft - dx,+ ),+ );+ }}+ onPointerUp={finishPhotoSwipe}+ onPointerCancel={finishPhotoSwipe}+ onClickCapture={(event) => {+ if (!suppressPhotoClickRef.current || event.detail == 0)+ return;+ suppressPhotoClickRef.current = false;+ event.preventDefault();+ event.stopPropagation();+ }}+ onScroll={(event) => {+ const carousel = event.currentTarget;+ const index = Math.round(+ carousel.scrollLeft / carousel.clientWidth,+ );+ if (index != photoIndex) onPhotoIndexChange?.(index);+ }}+ onScrollEnd={(event) => {+ if (+ swipeRef.current?.dragging ||+ photoAnimationRef.current != null+ )+ return;+ const carousel = event.currentTarget;+ setSettledPhotoIndex(+ Math.round(+ carousel.scrollLeft / carousel.clientWidth,+ ),+ );+ }}+ onKeyDown={(event) => {+ if (+ event.key != "ArrowLeft" &&+ event.key != "ArrowRight"+ )+ return;+ event.preventDefault();+ const index = Math.max(+ 0,+ Math.min(+ photoIndex ++ (event.key == "ArrowLeft" ? -1 : 1),+ feedPhotos.length - 1,+ ),+ );+ (+ event.currentTarget.children[index] as HTMLElement+ ).focus({ preventScroll: true });+ scrollToPhoto(index);+ }}sx={{- appearance: "none",- bgcolor: "transparent",- border: 0,- cursor: canOpenPhoto ? "pointer" : "default",- display: "block",+ display: "flex",height: "100%",- maxWidth: "100%",- minWidth: 0,- overflow: "hidden",- p: 0,- position: "relative",- width: "100%",- "&:focus-visible": {- outline: `2px solid ${green}`,- outlineOffset: -2,- },+ overflowX: "hidden",+ overscrollBehaviorX: "contain",+ scrollSnapType: "x mandatory",+ scrollbarWidth: "none",+ touchAction: "pan-y pinch-zoom",+ userSelect: "none",+ "&::-webkit-scrollbar": { display: "none" },}}>- {!isPostUnavailable &&- !thumbHashDataURL &&- !isPhotoReady && (- <Skeleton- variant="rectangular"- sx={{- bgcolor: feedSkeletonElementBackground,- display: "block",- height: "100%",- transform: "none",- width: "100%",- }}- />- )}- {!isPostUnavailable && thumbHashDataURL ? (- <Box- component="img"- alt=""- aria-hidden- src={thumbHashDataURL}- sx={{- display: "block",- filter: "blur(14px)",- height: "100%",- inset: 0,- objectFit: "cover",- objectPosition: "center",- position: "absolute",- transform: "scale(1.08)",- width: "100%",- }}+ {feedPhotos.map((photo, index) => (+ <FeedPhoto+ key={index}+ imageUrl={photo.imageUrl}+ isActive={index == photoIndex}+ isUnavailable={+ isUnavailable || Boolean(photo.isUnavailable)+ }+ name={name}+ onLoadImage={+ onLoadImage+ ? () => onLoadImage(index)+ : undefined+ }+ onOpenPhoto={+ onOpenPhoto+ ? () => openPhoto(false, index)+ : undefined+ }+ shouldLoad={+ shouldLoadMedia &&+ Math.abs(index - photoIndex) <= 1+ }+ thumbHash={photo.thumbHash}/>- ) : null}- {!isPostUnavailable && isPhotoReady && (- <Box- component="img"- alt={`${name} post`}- src={displayImageUrl}- onLoad={rememberLoadedPhotoDimensions}- sx={{- display: "block",- height: "100%",- inset: 0,- maxWidth: "100%",- minWidth: 0,- objectFit: "cover",- objectPosition: "center",- opacity: showResolvedPhoto ? 1 : 0,- position: "absolute",- transition: thumbHashDataURL- ? "opacity 220ms ease"- : "none",- width: "100%",- zIndex: 1,- "@media (prefers-reduced-motion: reduce)": {- opacity: 1,- transition: "none",- },- }}- />- )}- {isPostUnavailable && (- <Box- sx={{- alignItems: "center",- bgcolor: feedSkeletonElementBackground,- color: spaceTextMuted,- display: "flex",- fontSize: 14,- fontWeight: 600,- height: "100%",- justifyContent: "center",- width: "100%",- }}- >- Post unavailable- </Box>- )}+ ))}</Box><Boxaria-hidden@@ -1043,7 +1340,7 @@ const FeedItem: React.FC<FeedItemProps> = ({minHeight: 32,pointerEvents: "none",position: "absolute",- right: 12,+ right: photoCount > 1 ? 68 : 12,top: 12,zIndex: 2,}}@@ -1459,6 +1756,9 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({}) => {const [selectedViewer, setSelectedViewer] =useState<SelectedHomeViewer | null>(null);+ const [feedPhotoIndices, setFeedPhotoIndices] = useState<+ Record<number, number>+ >({});const [isInviteSharing, setIsInviteSharing] = useState(false);const [loadedFeedAvatarURLsByKey, setLoadedFeedAvatarURLsByKey] = useState<Record<string, string | null>@@ -1475,13 +1775,9 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({const feedAvatarLoadsInFlightRef = React.useRef<Map<string, Promise<string | null>>>(new Map());- const feedImageLoadsInFlightRef = React.useRef<+ const feedImageLoadsRef = React.useRef<Map<string, Promise<string | undefined>>>(new Map());- const isPostPhotoButtonDisabled =- !profile ||- !viewerSpaceId ||- localFeedPosts.some((item) => item.status == "pending");const selectedPhotoFriendID = selectedViewer?.photo.friendID;const selectedPhotoIsOwn =Boolean(viewerSpaceId) && selectedPhotoFriendID == viewerSpaceId;@@ -1527,8 +1823,6 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({!selectedViewer;const showUnreadIndicator = hasUnreadMessages === true;const openPostPhotoPicker = () => {- if (isPostPhotoButtonDisabled) return;-postInputRef.current?.click();};const openFeedPhoto = (@@ -1538,8 +1832,16 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({) => {const isOwnPost =Boolean(viewerSpaceId) && photo.friendID == viewerSpaceId;+ const photoIndex = photo.postPhotoIndex ?? 0;+ const photos = viewerPhotosFromPost({+ ...post,+ avatarUrl: photo.avatarUrl,+ viewerLiked: photo.viewerLiked,+ });+ photos[photoIndex] = { ...photos[photoIndex]!, ...photo };setSelectedViewer({- photos: viewerPhotosFromPost({ ...photo, photos: post.photos }),+ photoIndex,+ photos,focusReplyOnOpen: isOwnPost ? false : focusReplyOnOpen,photo,postActionMode: isOwnPost ? "hidden" : "like-only",@@ -1563,7 +1865,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({await onDeletePost(postId);};const loadedFeedImageURLFor = React.useCallback(- (item: SpacePost) =>+ (item: FeedPhotoSource) =>item.imageUrl ??loadedFeedImageURLsByKey[feedPostImageCacheKey(item)],[loadedFeedImageURLsByKey],@@ -1577,7 +1879,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({[loadedFeedAvatarURLsByKey],);const loadFeedPostImage = React.useCallback(- (item: SpacePost) => {+ (item: FeedPhotoSource) => {const loadedImageUrl = loadedFeedImageURLFor(item);if (loadedImageUrl) return Promise.resolve(loadedImageUrl);if (!item.imageAsset || !onLoadPostImage) {@@ -1588,8 +1890,8 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({if (unavailableFeedPostsByKey[cacheKey]) {return Promise.resolve(undefined);}- const inFlight = feedImageLoadsInFlightRef.current.get(cacheKey);- if (inFlight) return inFlight;+ const existingLoad = feedImageLoadsRef.current.get(cacheKey);+ if (existingLoad) return existingLoad;const load = onLoadPostImage(item.imageAsset).then((imageUrl) => {@@ -1601,6 +1903,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({return imageUrl;}).catch((error: unknown) => {+ feedImageLoadsRef.current.delete(cacheKey);log.warn("Failed to load feed post image", error);if (isSpaceContentError(error)) {setUnavailableFeedPostsByKey((current) => ({@@ -1609,11 +1912,8 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({}));}return undefined;- })- .finally(() => {- feedImageLoadsInFlightRef.current.delete(cacheKey);});- feedImageLoadsInFlightRef.current.set(cacheKey, load);+ feedImageLoadsRef.current.set(cacheKey, load);return load;},[loadedFeedImageURLFor, onLoadPostImage, unavailableFeedPostsByKey],@@ -1663,7 +1963,21 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({key: React.Key,timestampStatus?: FeedTimestampStatus,) => {- const imageUrl = loadedFeedImageURLFor(item);+ const postPhotos = spacePostPhotos(item).map((photo, index) => ({+ ...photo,+ postId: item.postId,+ spaceId: item.spaceId,+ imageUrl:+ photo.imageUrl ?? (index == 0 ? item.imageUrl : undefined),+ }));+ const photos = postPhotos.map((photo) => ({+ ...photo,+ imageUrl: loadedFeedImageURLFor(photo),+ isUnavailable: Boolean(+ unavailableFeedPostsByKey[feedPostImageCacheKey(photo)],+ ),+ }));+ const imageUrl = photos[0]?.imageUrl;const avatarUrl = loadedFeedAvatarURLFor(item);const isAvatarPending = !item.isUnavailable && avatarUrl === undefined;const isUnavailable =@@ -1690,18 +2004,22 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({? () => loadFeedPostAvatar(item): undefined}- onLoadImage={- imageUrl || isUnavailable- ? undefined- : () => loadFeedPostImage(item)- }+ onLoadImage={(index) => loadFeedPostImage(postPhotos[index]!)}onOpenFriend={onOpenFriend}onOpenPhoto={(photo, focusReply) =>- openFeedPhoto(item, photo, focusReply)+ openFeedPhoto({ ...item, photos }, photo, focusReply)}onOpenProfile={onOpenProfile}onSetPostLiked={onSetPostLiked}- photoCount={item.photos?.length ?? 1}+ photos={photos}+ photoCount={photos.length}+ photoIndex={feedPhotoIndices[item.postId] ?? 0}+ onPhotoIndexChange={(index) =>+ setFeedPhotoIndices((current) => ({+ ...current,+ [item.postId]: index,+ }))+ }postId={item.postId}spaceId={item.spaceId}thumbHash={item.thumbHash}@@ -2046,7 +2364,6 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({)}</Box><SpaceFeedPostButton- disabled={isPostPhotoButtonDisabled}onClick={openPostPhotoPicker}showFirstPostPrompt={showFirstPostPrompt}/>@@ -2056,6 +2373,18 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({focusReplyOnOpen={selectedViewer.focusReplyOnOpen}photo={selectedViewer.photo}photos={selectedViewer.photos}+ photoIndex={selectedViewer.photoIndex}+ onPhotoIndexChange={(index) => {+ setSelectedViewer((current) =>+ current+ ? { ...current, photoIndex: index }+ : null,+ );+ setFeedPhotoIndices((current) => ({+ ...current,+ [selectedViewer.photo.postId!]: index,+ }));+ }}onLoadPhoto={onLoadPostImage}postActionMode={selectedViewer.postActionMode}onClose={closeSelectedPhoto}diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsxindex 7d5e6a3da2..2425880adf 100644--- a/web/apps/space/src/screens/ProfileScreen.tsx+++ b/web/apps/space/src/screens/ProfileScreen.tsx@@ -456,7 +456,10 @@ const ProfilePostTile: React.FC<ProfilePostTileProps> = ({/>) : null}{!isUnavailable && (- <SpacePostPhotosBadge count={item.photos?.length ?? 1} />+ <SpacePostPhotosBadge+ count={item.photos?.length ?? 1}+ inset={8}+ />)}{isUnavailable && (<Boxdiff --git a/web/apps/space/src/styles/about-space.module.css b/web/apps/space/src/styles/about-space.module.cssnew file mode 100644index 0000000000..fcd93ac7b7--- /dev/null+++ b/web/apps/space/src/styles/about-space.module.css@@ -0,0 +1,185 @@+.content {+ display: flex;+ flex-direction: column;+ gap: 24px;+ color: #202522;+ font-family: "Inter Variable", Inter, sans-serif;+}++.content * {+ box-sizing: border-box;+}++.content h2 {+ max-width: 260px;+ margin: 0 auto;+ font-family: Nunito, sans-serif;+ font-size: clamp(24px, 6.7vw, 30px);+ font-weight: 800;+ letter-spacing: -0.8px;+ line-height: 1.08;+ text-wrap: balance;+}++.hero,+.feature,+.closing {+ border-radius: 32px;+ overflow: hidden;+}++.hero,+.closing {+ background-color: #08c225;+ color: #fff;+}++.heroCopy,+.featureHeading {+ padding-block: 48px 42px;+ text-align: center;+}++.heroCopy {+ padding-inline: 24px;+}++.heroVisual,+.screenPreview {+ padding: 8px;+ overflow: hidden;+ border-radius: 30px 30px 0 0;+}++.heroVisual {+ width: calc(100% - 48px);+ max-width: 320px;+ aspect-ratio: 4 / 5.7;+ margin: 0 auto -8px;+ background: #fff6;+ box-shadow: 0 12px 28px #073d1724;+}++.feedPreview,+.screenCapture {+ display: block;+ width: 100%;+ height: auto;+ padding-top: 4px;+ border-radius: 22px 22px 0 0;+ background: #1c1c1e;+}++.quietVisual {+ width: 84%;+ max-width: 260px;+ aspect-ratio: 4 / 2.72;+ margin: 0 auto;+ overflow: hidden;+ transform: translateX(4px);+}++.quietIllustration {+ display: block;+ width: 100%;+ height: auto;+ margin: 0 auto;+}++.screenPreview {+ width: 100%;+ max-width: 350px;+ aspect-ratio: 4 / 5.3;+ margin: 0 auto -8px;+ background: #59665d;+ box-shadow: 0 10px 22px #18281c15;+}++.chatPreview,+.pokePreview {+ aspect-ratio: auto;+}++.shortPreview {+ aspect-ratio: 4 / 4.95;+}++.feature {+ padding: 0 20px 24px;+ background: #e9ece7;+}++.feature.cropVisual {+ padding-bottom: 0;+}++.featureHeading {+ position: relative;+ z-index: 1;+}++.feature:has(.privacyVisual) h2 {+ max-width: none;+}++.privacyVisual {+ position: relative;+ width: 100%;+ max-width: 330px;+ min-height: 0;+ aspect-ratio: 4 / 2.4;+ margin: 0 auto;+}++.privacyIllustration {+ display: block;+ width: 100%;+ height: auto;+ transform: translate(-8px, -5px) rotate(-42deg);+}++.closing {+ display: flex;+ flex-direction: column;+ gap: 80px;+ padding: 80px 24px 32px;+ color: #18211b;+}++.content .tagline {+ max-width: none;+ color: #d9ffd8;+ text-align: center;+ white-space: nowrap;+}++@media (min-width: 440px) {+ .heroCopy,+ .featureHeading {+ padding-top: 54px;+ }++ .heroCopy {+ padding-inline: 36px;+ }++ .feature {+ padding: 0 28px 28px;+ }+}++@media (max-width: 359px) {+ .heroCopy,+ .featureHeading {+ padding-top: 44px;+ }++ .heroCopy {+ padding-inline: 20px;+ }++ .feature {+ padding-right: 16px;+ padding-left: 16px;+ }+}