Skip to content

Commit

Permalink
Merge pull request #808 from xmtp/homepage-redesign
Browse files Browse the repository at this point in the history
Homepage Redesign and Updates
  • Loading branch information
darickdang authored Dec 6, 2024
2 parents 8912335 + 93763a8 commit d3beccc
Show file tree
Hide file tree
Showing 67 changed files with 1,743 additions and 253 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const config = {
type: "html",
position: "right",
value:
'<button type="button" onClick="window.open(`https://app.converse.xyz/conversation`, `_blank`);" class="navbar__chatbutton"><strong>Try Converse</strong></button>',
'<button type="button" onClick="window.open(`https://converse.xyz`, `_blank`);" class="navbar__chatbutton"><strong>Try Converse</strong></button>',
},
{
href: "https://github.com/xmtp",
Expand Down
614 changes: 489 additions & 125 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"clsx": "^1.1.1",
"docusaurus-plugin-plausible": "^0.0.5",
"ethers": "^5.7.2",
"@tailwindcss/forms": "^0.5.3",
"framer-motion": "^6.5.1",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.1",
Expand Down
816 changes: 698 additions & 118 deletions src/components/BuiltWithXmtp/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/FeedbackWidget/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@
.form {
margin-top: 4px;
width: 100%;
}
}
2 changes: 1 addition & 1 deletion src/components/ToggleButtons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function ToggleButtons() {
<div
ref={darkModeBtnRef}
onClick={handleDarkMode}
className="plausible-event-name=DarkMode w-11 h-11 rounded-full bg-gray-900 grid justify-center items-center border-2 border-solid border-gray-500 right-4 lg:right-12 bottom-5 z-[60] cursor-pointer fixed">
className="hidden opacity-0 plausible-event-name=DarkMode w-11 h-11 rounded-full bg-gray-900 grid justify-center items-center border-2 border-solid border-gray-500 right-4 lg:right-12 bottom-5 z-[60] cursor-pointer fixed">
<img src={`/img/${colorMode}.svg`} />
</div>
<div
Expand Down
27 changes: 27 additions & 0 deletions src/components/gradient.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { clsx } from 'clsx'

export function Gradient({ className, ...props }) {
return (
<div
{...props}
className={clsx(
className,
'bg-[linear-gradient(115deg,var(--tw-gradient-stops))] from-[#fff1be] from-[28%] via-[#ee87cb] via-[70%] to-[#b060ff] sm:bg-[linear-gradient(145deg,var(--tw-gradient-stops))]',
)}
/>
)
}

export function GradientBackground() {
return (
<div className="relative mx-auto max-w-7xl">
<div
className={clsx(
'absolute -right-60 -top-44 h-60 w-[36rem] transform-gpu md:right-0',
'bg-[linear-gradient(115deg,var(--tw-gradient-stops))] from-[#fff1be] from-[28%] via-[#ee87cb] via-[70%] to-[#b060ff]',
'rotate-[-10deg] rounded-full blur-3xl',
)}
/>
</div>
)
}
24 changes: 20 additions & 4 deletions src/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@

.navbar {
box-shadow: none;
background-color: rgba(255, 255, 255, 0.75);
background-color: rgba(255, 255, 255, 1);
/* blur/backdrop-blur-2xl */
backdrop-filter: blur(20px);
}
Expand Down Expand Up @@ -745,18 +745,21 @@ main[class*="docMainContainer"] tr {
}

.navbar__chatbutton {
font-size: 0.8em;
font-size: 0.9em;
color: white;
border: none;
background-color: #4f45e4;
background-color: #000;
border: 1px solid #000;
border-radius: 4px;
padding: 7px 11px;
cursor: pointer;
transition-duration: 0.2s;
}

.navbar__chatbutton:hover {
background-color: #5a2895;
background-color: #fff;
border: 1px solid #000;
color: black;
}

@media (max-width: 450px) {
Expand Down Expand Up @@ -1691,3 +1694,16 @@ summary::before {
.apparelbot .prism-code {
background-color: #0233d2;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.fade-in {
animation: fadeIn 0.25s ease-in forwards;
}
248 changes: 248 additions & 0 deletions src/pages/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,251 @@
background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
}

.container {
max-width: 100% !important;
}

.-mt-2 {
margin-top: -2em;
}

.-mt-4 {
margin-top: -4em;
}

.-mt-6 {
margin-top: -6em;
}

.-mt-8 {
margin-top: -8em;
}

.-mt-12 {
margin-top: -12em;
}

.navbar {
padding: 1em !important;
}

.col {
padding: 0;
}

.footer__links {
.col {
padding: 0 3em;
}
}

dd {
margin: 0;
}

.logo-row ul {
padding-left: 0;
}

.logo-row ul li {
list-style-type: none;
}

.pulse-this {
box-shadow: 0px 0px 1px 1px #0000001a;
}

.pulse {
animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
0% {
box-shadow: 0 0 2px 0px rgba(252, 79, 55, 0.8);
}
100% {
box-shadow: 0 0 5px 15px rgba(252, 79, 55, 0);
}
}

.lines {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
margin: auto;
width: 100vw;
z-index: -9;
}

.line {
position: absolute;
width: 1px;
height: 100%;
top: 0;
left: 50%;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
}

.line::after {
content: "";
display: block;
position: absolute;
height: 15vh;
width: 100%;
top: -50%;
left: 0;
background: linear-gradient(to bottom, rgba(252, 79, 55, 0) 0%, #FC4F37 75%, #FC4F37 100%);
animation: drop 7s 0s infinite;
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
margin-left: -25%;
opacity: 0.2;
}
.line:nth-child(1)::after {
animation-delay: 1s;
}
.line:nth-child(2) {
margin-left: -8%;
opacity: 0.25;
}
.line:nth-child(2)::after {
animation-delay: 2s;
}
.line:nth-child(3) {
margin-left: 25%;
}
.line:nth-child(3)::after {
animation-delay: 1.5s;
}
.line:nth-child(4) {
margin-left: 8%;
opacity: 0.5;
}
.line:nth-child(4)::after {
animation-delay: 2.5s;
}
.line:nth-child(5) {
margin-left: 42%;
opacity: 1;
}
.line:nth-child(5)::after {
animation-delay: 3.5s;
}

.h-lines {
position: absolute;
width: 100%;
margin: auto;
height: 100%;
z-index: -9;
}

.h-line {
position: absolute;
height: 1px;
width: 100%;
left: 50%;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 100%);
overflow: hidden;
}

@media (max-width: 680px) {
.h-line {
position: relative;
}
}

.h-line::after {
content: "";
display: block;
position: absolute;
width: 15vh;
height: 100%;
top: 0%;
left: -50%;
background: linear-gradient(to right, rgba(252, 79, 55, 0) 0%, #FC4F37 75%, #FC4F37 100%);
animation: hdrop 10s 0s infinite;
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.h-line:nth-child(1) {
margin-top: 4%;
}
.h-line:nth-child(1)::after {
animation-delay: 0.5s;
}
.h-line:nth-child(2) {
margin-top: 12%;
opacity: 0.25;
}
.h-line:nth-child(2)::after {
animation-delay: 3s;
}
.h-line:nth-child(3) {
margin-top: 20%;
opacity: 0.25;
}
.h-line:nth-child(3)::after {
animation-delay: 1.5s;
}
.h-line:nth-child(4) {
margin-top: 28%;
opacity: 0.25;
}
.h-line:nth-child(4)::after {
animation-delay: 4s;
}
.h-line:nth-child(5) {
margin-top: 36%;
opacity: 0.75;
}
.h-line:nth-child(5)::after {
animation-delay: 5s;
}
.h-line:nth-child(6) {
margin-top: 44%;
opacity: 0.75;
}
.h-line:nth-child(6)::after {
animation-delay: 4.5s;
}

@keyframes drop {
0% {
top: -50%;
}
100% {
top: 110%;
}
}

@keyframes hdrop {
0% {
left: 0%;
}
100% {
left: 110%;
}
}

.breathe {
background: linear-gradient(-38deg, #101827, #FC4F37);
background-size: 200% 200%;
animation: verticalBreathing 15s ease infinite;
}

@keyframes verticalBreathing {
0% { background-position: 0% 0%; }
25% { background-position: 40% 40%; }
50% { background-position: 80% 80%; }
75% { background-position: 20% 60%; }
100% { background-position: 0% 0%; }
}
4 changes: 2 additions & 2 deletions src/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
hide_table_of_contents: true
title: The open source protocol for web3 messaging
description: 2M+ web3 identities trust XMTP for secure & private messaging
title: XMTP is the largest & most secure decentralized messaging network
description: Enterprise-grade secure messaging — powered by decentralization. Start building group chats, DMs, and notifications in minutes.
---

import BuiltWithXmtp from "@site/src/components/BuiltWithXmtp";
Expand Down
Binary file added static/img/ConverseCTA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/allowButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d3beccc

Please sign in to comment.