move to new website, wiped history

This commit is contained in:
DecDuck
2025-09-05 13:22:28 +10:00
commit 4aa9058036
107 changed files with 11752 additions and 0 deletions

80
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,80 @@
name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the main branch
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Setup Pages
id: setup_pages
uses: actions/configure-pages@v5
- name: Restore cache
uses: actions/cache@v4
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Build with Next.js
run: pnpm run build
env:
PAGES_BASE_PATH: ${{ steps.setup_pages.outputs.base_path }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

39
.gitignore vendored Normal file
View File

@@ -0,0 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
.contentlayer
.content-collections

661
LICENSE.md Normal file
View File

@@ -0,0 +1,661 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Drop OSS Website
We have a website. It's at https://droposs.org. Feel free to re-use this website, as long as you follow the license.

30
content-collections.ts Normal file
View File

@@ -0,0 +1,30 @@
import { defineCollection, defineConfig } from '@content-collections/core'
import { compileMDX } from '@content-collections/mdx'
import { z } from 'zod'
const posts = defineCollection({
name: 'Posts',
directory: 'posts',
include: '*.mdx',
schema: z.object({
title: z.string(),
date: z.string(),
image: z.string(),
author: z.string(),
tags: z.string(),
}),
async transform(data, context) {
const paragraph = data.content
.split('\n')
.filter((e) => !e.startsWith('#'))
.at(0)
const excerpt = paragraph!.split(' ').slice(0, 20).join(' ') + '...'
const mdx = await compileMDX(context, data)
return { ...data, excerpt, url: `/news/${data._meta.path}`, mdx }
},
})
export default defineConfig({
collections: [posts],
})

22
eslint.config.mjs Normal file
View File

@@ -0,0 +1,22 @@
import { FlatCompat } from '@eslint/eslintrc'
import { dirname } from 'path'
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
})
const eslintConfig = [
...compat.extends('next/core-web-vitals', 'next/typescript'),
{
rules: {
'@next/next/no-img-element': 'off',
'prefer-const': 'off',
},
},
]
export default eslintConfig

5
next.config.mjs Normal file
View File

@@ -0,0 +1,5 @@
import { withContentCollections } from '@content-collections/next'
/** @type {import('next').NextConfig} */
const nextConfig = { reactStrictMode: true, output: 'export' }
export default withContentCollections(nextConfig)

45
package.json Normal file
View File

@@ -0,0 +1,45 @@
{
"name": "radiant",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"typegen": "sanity schema extract --path=src/sanity/extract.json && sanity typegen generate && rm ./src/sanity/extract.json"
},
"dependencies": {
"@headlessui/react": "^2.2.6",
"@heroicons/react": "^2.2.0",
"@octokit/core": "^7.0.3",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"feed": "^5.1.0",
"framer-motion": "^12.23.11",
"next": "15.4.4",
"react": "^19",
"react-dom": "^19",
"react-use-measure": "^2.1.7",
"styled-components": "^6"
},
"devDependencies": {
"@content-collections/core": "^0.11.1",
"@content-collections/mdx": "^0.2.2",
"@content-collections/next": "^0.2.7",
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4.1.11",
"@types/node": "^24",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.4.4",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-organize-imports": "^4.2.0",
"prettier-plugin-tailwindcss": "^0.6.14",
"tailwindcss": "^4.1.11",
"typescript": "^5",
"zod": "^4.1.5"
}
}

5982
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

8
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,8 @@
onlyBuiltDependencies:
- '@tailwindcss/oxide'
- contentlayer
- contentlayer2
- esbuild
- protobufjs
- sharp
- unrs-resolver

5
postcss.config.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
},
}

47
posts/roadmap2025.mdx Normal file
View File

@@ -0,0 +1,47 @@
---
title: 2025 Roadmap
date: 2025-09-03
image: /news/roadmap-sep32025.png
author: decduck
tags: Roadmap, Planning
---
As 2025 draws to a close, we've thought about where we want Drop to be by the end of the year. As a project, we've come a long way since our first commit in [September of 2024](https://github.com/Drop-OSS/drop/commit/e1a789fa363946f74ecc21b9800c7e84563b46c3). Since then, we've had three, major releases (v0.1.0, v0.2.0, v0.3.0), each time adding lots of cool new features. With that in mind, here's what we're planning to do before the year's end - no promises, though.
---
## Redistributable support
Redistributables are generally library/framework files that need to be installed before a game will run. Often games on Steam will automatically install things like the "Visual C++ Redistributable", or similar, to ensure the game works properly and has all the installed libraries it needs.
Drop extends this traditional idea of 'redistributables' into a general idea - anything that only needs to be downloaded for several games. Drop will also support attaching launch commands to these redistributables for one specific purpose:
## Emulation support
Through the redistributable system described above, admins will be able to add and import their favourite emulators as a "redistributable", and configure a launch command. That may look something like this:
```
MyEmulator.exe --rom-file {rom} --fullscreen
```
And then you'll be able to configure this redistributable as a platform. You'll be able to specify file extensions, name the platform, and attach an SVG icon as metadata. Then, when you import an emulated game, Drop will automatically download the emulator and use the above launch command to start your game.
For admins, Drop will automatically search for files with the extensions provided and add it to the existing file-extension based suggestions for imports.
This system, while may seem a little complicated, has the following benefits:
1. **Drop doesn't need specific integration with most emulators.** Most emulators have a CLI (command line interface), even if the documentation for it is a little buried. This means admins will be able to get almost any emulator working without writing any new code.
2. **More flexibility than just emulators.** Lots of other useful tools and applications fit into this model. Your favourite optimisation tool, tracking tool, mod launcher, what have you - all can be done through this system.
3. **Better UX and control for admins.** Rather than Drop hardcoding a massive list of emulation targets that are available, and developers having to maintain that list, Drop allows admins to use only what they need, and fix things themselves.
## Playtime tracking
Drop will being tracking and syncing playtime statistics with the configured server. Under the hood, each play 'session' will be tracked individually, even if Drop only displays aggregated amounts.
This opens up the potential for cool statistics down the line. We don't have many ideas, but features like "What are my friends playing?" and "Am I burning out?" come to mind. Endless possibilities.
---
Unfortunately, as it is for most people, these coming months will be very busy for the team, so we may not get to everything on this list. But who knows, maybe we'll complete it and more?
Regardless, Drop's future development is secure, and we're excited to be implementing new and awesome features for people to enjoy.

8
prettier.config.js Normal file
View File

@@ -0,0 +1,8 @@
/** @type {import('prettier').Options} */
module.exports = {
singleQuote: true,
semi: false,
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-tailwindcss'],
tailwindFunctions: ['clsx'],
tailwindStylesheet: './src/styles/tailwind.css',
}

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
public/avatars/decduck.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
public/avatars/sponsor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

4
public/dot-texture.svg Normal file
View File

@@ -0,0 +1,4 @@
<svg width="12" height="32" viewBox="0 0 12 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="2" height="2" fill="white" fill-opacity="0.1"/>
<rect y="16" width="2" height="2" fill="white" fill-opacity="0.05"/>
</svg>

After

Width:  |  Height:  |  Size: 233 B

23
public/drop.crt Normal file
View File

@@ -0,0 +1,23 @@
-----BEGIN CERTIFICATE-----
MIIDyzCCArOgAwIBAgIUOY7l2v2Z37NBHvnC9erDT9t3HOEwDQYJKoZIhvcNAQEL
BQAwfDELMAkGA1UEBhMCQVUxDzANBgNVBAcMBlN5ZG5leTERMA8GA1UECgwIRHJv
cCBPU1MxETAPBgNVBAsMCFNlY3VyaXR5MREwDwYDVQQDDAhEcm9wIE9TUzEjMCEG
CSqGSIb3DQEJARYUc2VjdXJpdHlAZHJvcG9zcy5vcmcwHhcNMjUwODAyMDEwOTI2
WhcNMzAwODAxMDEwOTI2WjB8MQswCQYDVQQGEwJBVTEPMA0GA1UEBwwGU3lkbmV5
MREwDwYDVQQKDAhEcm9wIE9TUzERMA8GA1UECwwIU2VjdXJpdHkxETAPBgNVBAMM
CERyb3AgT1NTMSMwIQYJKoZIhvcNAQkBFhRzZWN1cml0eUBkcm9wb3NzLm9yZzCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMIUBYAHKrPwo2DPqjPxj83i
QEz7KPO3/Ezn/2QKnoV/wzOZwB8vMDEVpm5A4d1G+nyxDEDHTXG8TpFQnU/tjEHV
ZxqPxfCet+sgigEqmpo77ZPCgaF1VRFTfRp4h36jghl++CquMU5RX5g+HHNUSl71
PIISaiP8TJAmMEjKEFOO9uy0vHj1w8L0jo/IaiALoaOKw9N2o5sE2WI6u2kRXkBt
lmDPHNIS37v+wWbPDuFQ5ya7hNal/CMLLDNGJ4Bd3fGkN1/X7mjVMmSORSeutN90
WKJDLDrXmMzhaokvWq820OGbaGSGZ94bC/k9IKlBaUZHYbu/X07gzsoA+AbRIhsC
AwEAAaNFMEMwEgYDVR0TAQH/BAgwBgEB/wIBAzAOBgNVHQ8BAf8EBAMCAcYwHQYD
VR0OBBYEFFW5xDSAZI+4g5bf10eeXjBkfPCkMA0GCSqGSIb3DQEBCwUAA4IBAQAF
ewFl69mGBgGtDrKD5LrXj0P795rnBhkCSOgILyZaDS/DpT2kE3Ty9VXbJ6gKtcN5
vy3463TEgyHwNyWeyGIQpgvSrSheU0xtqKKN5iHaK/czIgOHqi7G3hp8Es11T9lY
xIInAba9Fa3/JI+MnSm2m0GRfI8nL5AFZws11DLzKZkKrozMbWpf+MhbeWBK0Zc6
Y9w8aZvpLCZJ1DKQz/mfVXvmVQCCCNgrNDuI6OWzX9KlPIcizY14nh4K6FM4goy8
3Eyr2mG6bxkRy0nCzB7gzzJunFOcCVZDmSZ4enhG9jWs6SCDdcQmHlqGedeaq8ON
PJJgQBp0IfOqoWivon6a
-----END CERTIFICATE-----

BIN
public/favicon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

17
public/favicon.svg Normal file
View File

@@ -0,0 +1,17 @@
<svg
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
>
<style>
:root {
color: oklch(70.7% 0.165 254.624)
}
</style>
<path
d="M4 13.5C4 11.0008 5.38798 8.76189 7.00766 7C8.43926 5.44272 10.0519 4.25811 11.0471 3.5959C11.6287 3.20893 12.3713 3.20893 12.9529 3.5959C13.9481 4.25811 15.5607 5.44272 16.9923 7C18.612 8.76189 20 11.0008 20 13.5C20 17.9183 16.4183 21.5 12 21.5C7.58172 21.5 4 17.9183 4 13.5Z"
stroke="currentColor"
stroke-width="2"
/>
</svg>

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 KiB

BIN
public/gallery/devices.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

BIN
public/gallery/store.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
public/icons/gamevault.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

View File

@@ -0,0 +1,29 @@
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 579 579" width="579" height="579">
<title>giantbomb</title>
<style>
.s0 { fill: #f7961d }
.s1 { fill: #ffffff }
.s2 { fill: #888888 }
.s3 { fill: #ec2024 }
.s4 { fill: #666666 }
.s5 { fill: #000000 }
</style>
<path class="s0" d="m441.27 91.8q1.23 5.36 1.4 10.85 0.18 5.5-0.7 10.92-0.88 5.43-2.79 10.58-1.91 5.16-4.77 9.85c-8.1 13.08-22.41 23.08-37.78 25.33q0.21 0.25 0.42 0.5 0.2 0.26 0.4 0.52 0.19 0.26 0.38 0.52 0.19 0.27 0.37 0.54c1.84 2.81 0.46 7.78-3.7 7.08-6.94-1.17-11.51-8.89-13.39-15.14q-0.22-0.74-0.41-1.49-0.18-0.76-0.32-1.52-0.14-0.76-0.23-1.53-0.1-0.77-0.15-1.54c-7.9 9.09-12.2 22.5-13.26 33.41q-0.13 1.31-0.2 2.7 3.89 2.27 7.62 4.78 3.74 2.5 7.31 5.24 3.58 2.73 6.98 5.68 3.39 2.95 6.6 6.11 2.56 2.47 5 5.05 2.44 2.58 4.77 5.27 2.32 2.68 4.52 5.48 2.19 2.79 4.26 5.68 2.28-0.96 4.5-2.05 2.21-1.09 4.37-2.31 2.15-1.21 4.24-2.54 2.08-1.33 4.09-2.77c22-15.85 37.67-41.13 37.68-68.75 0.01-21.49-10.26-43.19-27.21-56.45z"/>
<path class="s1" d="m395.06 205.19q5.06 4.9 9.72 10.25c10.4-4.88 20.3-11.58 26.43-21.46 6.43-10.37 8.16-23.53 2.42-34.56-0.58-1.11-2.33-1.77-3.33-0.72q-2.53 2.71-5.28 5.2-2.75 2.48-5.71 4.72-2.96 2.24-6.1 4.21-3.14 1.98-6.44 3.67c-5 2.5-10.67 4.42-16.31 3.27-5.33-1.09-9.17-4.86-13-8.42-1-0.91-3-0.7-3.08 1q-0.09 2.15-0.03 4.3 0.06 2.14 0.26 4.28 0.21 2.14 0.55 4.27 0.35 2.12 0.84 4.21 2.54 1.78 5 3.65 2.46 1.88 4.85 3.86 2.38 1.97 4.69 4.04 2.3 2.07 4.52 4.23z"/>
<path fill-rule="evenodd" class="s2" d="m360.82 446.69c-56.31 56.31-147.34 56.31-203.65 0-56.3-56.31-56.3-147.34 0-203.65 56.31-56.3 147.34-56.3 203.65 0 56.31 56.31 56.31 147.34 0 203.65z"/>
<path class="s3" d="m441.27 91.8q0.42 1.85 0.71 3.73 0.29 1.87 0.46 3.77 0.17 1.89 0.21 3.78 0.05 1.9-0.03 3.8c3.15 6.71 6.71 13.27 9.44 20.17 4.35 11 6.83 21.8 5.45 33.63-1.25 10.66-5 20.86-9.76 30.42-2.38 4.76-5 9.39-7.77 14-1.87 3.11-4.13 6.2-5.93 9.46 20.28-15.94 34.42-40 34.43-66.29 0.01-21.51-10.26-43.21-27.21-56.47z"/>
<path class="s4" d="m189.34 415.41c-12.15-12.15-22.04-26.38-29.17-42.02-7.14-15.63-11.43-32.42-12.65-49.57-1.22-17.14 0.64-34.37 5.48-50.86 4.85-16.49 12.61-31.98 22.92-45.73-34.37 24.3-56.38 62.43-60.25 104.34-3.87 41.92 10.8 83.43 40.14 113.61 29.34 30.18 70.42 46.02 112.43 43.33 42.01-2.68 80.74-23.61 106-57.28-13.76 9.72-29.12 16.95-45.38 21.35-16.26 4.41-33.17 5.93-49.96 4.5-16.78-1.44-33.19-5.81-48.46-12.92-15.28-7.1-29.19-16.84-41.1-28.75z"/>
<path class="s1" d="m380.91 321.48q-1.24 0-2.42-0.4-1.18-0.41-2.16-1.17-0.98-0.76-1.67-1.8-0.69-1.04-1-2.24-1.99-7.6-4.96-14.87-2.98-7.27-6.89-14.08-3.91-6.82-8.69-13.05-4.77-6.24-10.33-11.79c-1.4-1.41-2.19-3.32-2.19-5.3-0.01-1.99 0.79-3.9 2.19-5.31 1.41-1.4 3.32-2.19 5.3-2.2 1.99 0 3.9 0.8 5.31 2.2q6.26 6.26 11.64 13.28 5.38 7.03 9.78 14.71 4.41 7.67 7.76 15.87 3.35 8.19 5.59 16.75c0.29 1.11 0.32 2.27 0.09 3.39-0.23 1.12-0.72 2.18-1.42 3.08-0.7 0.91-1.6 1.64-2.63 2.15-1.02 0.5-2.15 0.77-3.3 0.77z"/>
<path fill-rule="evenodd" class="s5" d="m226.89 286.65c-6.85 25.62-22.75 43.56-35.56 40.13-12.81-3.42-17.62-26.9-10.77-52.52 6.86-25.62 22.75-43.56 35.56-40.14 12.82 3.43 17.63 26.91 10.77 52.53z"/>
<path fill-rule="evenodd" class="s5" d="m319.96 297.98c-3.7 29.21-18.5 51.33-33.11 49.48-14.6-1.85-23.41-26.97-19.7-56.18 3.7-29.21 18.5-51.33 33.11-49.48 14.6 1.86 23.41 26.97 19.7 56.18z"/>
<path fill-rule="evenodd" class="s1" d="m313.47 279.79c-1.94 15.32-11.45 26.69-21.27 25.44-9.82-1.24-16.19-14.63-14.25-29.95 1.95-15.31 11.46-26.69 21.28-25.44 9.82 1.24 16.18 14.63 14.24 29.95z"/>
<path fill-rule="evenodd" class="s1" d="m222.3 266.39c-3.08 12.42-12.01 20.86-19.97 18.89-7.96-1.98-11.9-13.61-8.82-26.03 3.08-12.42 12-20.87 19.96-18.89 7.96 1.97 11.91 13.61 8.83 26.03z"/>
<path class="s2" d="m371.43 232.44q6.61 6.58 12.4 13.9 5.8 7.31 10.69 15.26 4.89 7.94 8.82 16.41 3.93 8.46 6.83 17.33 0.21-0.16 0.41-0.33 0.2-0.17 0.39-0.34 0.2-0.17 0.39-0.35 0.19-0.18 0.38-0.36c14.06-14.06 2.66-48.25-25.46-76.37-28.12-28.12-62.28-39.51-76.37-25.46q-0.18 0.19-0.36 0.38-0.18 0.19-0.35 0.39-0.17 0.19-0.34 0.39-0.17 0.2-0.33 0.41 8.87 2.9 17.33 6.83 8.47 3.93 16.41 8.82 7.95 4.89 15.26 10.69 7.32 5.79 13.9 12.4z"/>
<path class="s5" d="m387.31 190.71c2.8 3.45 7.07 5.74 10.17 9 3.1 3.26 5.37 7.36 8.15 11 2.27 3 6.34-0.24 5.21-3.36-1.75-4.81-5.69-9.25-9.34-12.74-3.33-3.18-7.55-6.94-12.22-7.72-2.06-0.34-3.16 2.31-2 3.77zm6.69-5.97c4 3.17 8.26 5.62 11.82 9.35 3.22 3.37 5.31 7.87 8.72 10.93 1.83 1.64 4.58-0.57 4.22-2.69-0.83-4.93-5.6-9.85-9.11-13.15-3.81-3.57-8.34-7.22-13.46-8.62-0.54-0.19-1.13-0.17-1.66 0.04-0.54 0.21-0.98 0.6-1.24 1.11-0.27 0.51-0.34 1.09-0.21 1.65 0.13 0.56 0.46 1.05 0.92 1.38zm9-6.48l-0.07-0.18-1.54 1.3c2.84 2 6.07 3.32 8.82 5.59 3.79 3.12 6.25 7 9.45 10.65q0.36 0.38 0.88 0.45 0.51 0.05 0.95-0.22 0.44-0.29 0.6-0.79 0.15-0.5-0.05-0.98c-1.71-4.38-5.49-8.08-9-11.05-2.39-2-7.55-6.61-11-6q-0.26 0.05-0.49 0.2-0.22 0.14-0.38 0.36-0.15 0.22-0.21 0.48-0.06 0.27-0.02 0.53 0.02 0.11 0.06 0.21 0.03 0.1 0.07 0.2 0.05 0.1 0.11 0.19 0.05 0.09 0.12 0.18c0.69 1 2.07-0.09 1.69-1.09zm4.93-2.7c2.74 1.88 5.57 3.61 8.16 5.69q1 0.84 1.94 1.74 0.94 0.9 1.82 1.86 0.88 0.97 1.69 1.99 0.81 1.02 1.55 2.09c0.35 0.48 1.13 0 0.86-0.56-3-6-9.82-10.32-15.49-13.6-0.52-0.3-1.05 0.43-0.54 0.78z"/>
<path class="s5" d="m468.85 110.61q-2.84-5.7-6.57-10.87-3.72-5.16-8.24-9.65-4.52-4.49-9.71-8.18-5.19-3.69-10.91-6.49c-3.94-1.91-8.12 3.14-6.22 6.8 7.54 14.52 7.58 32.72-1.35 46.71-8.1 12.69-21 19.15-35.33 21.82 0-0.12-0.08-0.23-0.12-0.35-1.36-4.65-0.62-9 1.42-13.34 2.04-4.34-4.28-8.64-7.7-5.4-7.3 6.92-13.81 13.29-18.4 22.42q-1.47 2.95-2.65 6.02-1.19 3.07-2.08 6.23-0.89 3.17-1.49 6.41-0.59 3.23-0.88 6.51 4 1.91 7.94 4.14c0-0.92 0.11-1.82 0.2-2.7 1.06-10.92 5.36-24.33 13.26-33.41q0.05 0.77 0.15 1.54 0.09 0.77 0.23 1.53 0.14 0.76 0.32 1.52 0.19 0.75 0.41 1.49c1.88 6.25 6.45 14 13.39 15.14 4.16 0.7 5.53-4.27 3.7-7.08q-0.18-0.27-0.37-0.54-0.19-0.26-0.38-0.52-0.2-0.26-0.4-0.52-0.21-0.25-0.42-0.5c15.35-2.26 29.66-12.26 37.76-25.34q2.86-4.7 4.77-9.85 1.91-5.16 2.79-10.59 0.88-5.43 0.71-10.92-0.18-5.5-1.41-10.86c16.95 13.26 27.22 35 27.21 56.42 0 27.63-15.68 52.9-37.68 68.75q-2 1.45-4.09 2.78-2.08 1.33-4.23 2.54-2.15 1.22-4.37 2.31-2.22 1.09-4.49 2.06 2.3 3.24 4.4 6.62 1.23-0.48 2.44-1 1.21-0.52 2.41-1.07 1.2-0.56 2.37-1.15 1.18-0.59 2.34-1.22 5.15-2.81 9.93-6.22 4.78-3.41 9.13-7.36 4.34-3.95 8.18-8.39 3.84-4.44 7.13-9.3c17.44-25.74 21.11-58.86 6.9-86.94zm-216.68 321.9c9.83-13.32 24.63-18.51 40.66-18.51 0.68 0 0.68-3.71-0.1-3.91-16.67-4.13-33.88 7.34-40.61 22.1v0.32z"/>
<path class="s1" d="m339.61 354.78c-1.31-2.47-4.52-3-6.84-1.79l-18.24 9.47q-3.45 0.72-6.89 1.54-3.43 0.82-6.84 1.73-3.4 0.91-6.79 1.91-3.38 1.01-6.73 2.11-0.21-0.93-0.79-1.69-0.57-0.75-1.41-1.2-0.84-0.44-1.79-0.5-0.95-0.05-1.84 0.29c-24.15 7.26-49.64 7.8-74.61 5.72q-0.37-0.03-0.75 0.02-0.37 0.04-0.73 0.15-0.36 0.11-0.69 0.28-0.34 0.18-0.63 0.41-1.46-0.57-2.91-1.18-1.44-0.62-2.87-1.27-1.42-0.65-2.83-1.35-1.4-0.69-2.79-1.43c-4.11-2.18-9.86 2.48-6.84 6.84l2.58 3.72q0.01 0.13 0.09 0.26 0.43 1.21 1.04 2.35 0.6 1.13 1.36 2.17 0.77 1.03 1.67 1.95 0.9 0.92 1.93 1.69 1.01 1.12 2.12 2.14 0.59 0.6 1.36 0.97 0.76 0.36 1.61 0.44 0.84 0.07 1.66-0.14 0.82-0.22 1.51-0.71 3.25 1.06 6.56 1.91 3.31 0.85 6.66 1.49 3.36 0.65 6.75 1.08 3.39 0.44 6.8 0.66 0.1 0.01 0.19 0.01 0.1 0.01 0.19 0.01 0.1 0 0.2-0.01 0.09 0 0.19-0.01 6 1.06 12.07 1.55 6.07 0.48 12.15 0.39 6.09-0.08 12.14-0.75 6.06-0.67 12.02-1.9 0.45 0.44 1 0.75 0.55 0.31 1.17 0.47 0.61 0.15 1.24 0.14 0.63-0.01 1.24-0.18l24.33-5.7c6.68-1.57 13.48-2.89 19.73-5.81 10.83-5.1 18.36-17.51 12.25-29z"/>
<path class="s5" d="m346.94 345.7q-0.01-0.73-0.22-1.44-0.21-0.7-0.6-1.32-0.39-0.62-0.93-1.11-0.54-0.5-1.19-0.83-0.41-0.28-0.88-0.47-0.46-0.19-0.96-0.27-0.49-0.08-1-0.06-0.5 0.03-0.98 0.17-0.43 0.07-0.84 0.23-0.41 0.16-0.77 0.4-0.37 0.24-0.67 0.55-0.31 0.31-0.54 0.68-1.99 1.62-4.08 3.11-2.09 1.49-4.28 2.84-2.18 1.35-4.45 2.56-2.27 1.2-4.61 2.26-2.56 1.04-5.15 1.98-2.6 0.95-5.23 1.8-2.62 0.85-5.28 1.6-2.66 0.75-5.34 1.4-5.58 1.46-11.22 2.65-5.64 1.19-11.32 2.11-5.69 0.92-11.42 1.57-5.73 0.64-11.48 1.02-5.79 0.37-11.59 0.45-5.8 0.08-11.59-0.13-5.8-0.2-11.57-0.7-5.78-0.49-11.53-1.27-2.53-0.31-5.04-0.74-2.51-0.43-5-0.97-2.49-0.55-4.95-1.21-2.46-0.67-4.89-1.45-1.16-0.39-2.31-0.8-1.15-0.42-2.28-0.86-1.14-0.45-2.26-0.93-1.13-0.47-2.24-0.98c-3.25-1.54-5.98-3.54-9.39-4.26-1.89-0.39-3.45 2-2.56 3.65 1.56 2.82 4.37 5.06 7.51 6.88q0.1 0.11 0.22 0.21 0.11 0.1 0.24 0.18 0.12 0.08 0.26 0.15 0.14 0.06 0.28 0.11 0.3 0.44 0.58 0.88 0.29 0.45 0.56 0.9 0.28 0.45 0.54 0.91 0.26 0.46 0.51 0.93 1.58 2.48 3.09 5 2.55 4.32 4.66 8.87 1.14 2.44 2.17 4.92 1.04 2.48 1.97 5 0.93 2.52 1.75 5.08 0.83 2.56 1.55 5.15c1.82 6.52 3.21 13.14 4.44 19.79 1.23 6.65 1.09 14.61 3.84 20.67q0.01 0.19 0.05 0.37 0.03 0.18 0.1 0.36 0.07 0.17 0.17 0.33 0.1 0.16 0.22 0.3c4.09 5 12.47 7.09 18.42 8.8q2.67 0.77 5.37 1.41 2.7 0.63 5.43 1.13 2.73 0.51 5.48 0.87 2.75 0.36 5.52 0.59 5.63 0.47 11.27 0.39 5.65-0.07 11.27-0.68 5.61-0.62 11.14-1.77 5.53-1.15 10.92-2.83c13.62-4.28 26.92-11 37.26-21 10.34-10 16.8-22.73 20.13-36.56 3.78-15.84 4.09-32.27 3.72-48.57zm-43.94 87.3c-14.69 8.92-31.63 13.46-48.71 14.5q-3.22 0.17-6.44 0.16-3.22 0-6.44-0.18-3.21-0.17-6.42-0.52-3.2-0.34-6.38-0.86-1.74-0.28-3.46-0.6-1.73-0.33-3.45-0.7-1.72-0.38-3.42-0.8-1.71-0.43-3.4-0.9c-2.53-0.69-5.09-1.75-7.69-2.39 0.39-3.88-0.71-8-1.31-11.84-0.6-3.84-1.29-7.85-2.07-11.76q-0.58-2.92-1.25-5.82-0.68-2.9-1.44-5.78-0.76-2.87-1.61-5.72-0.86-2.86-1.8-5.68-0.94-2.87-2.03-5.69-1.1-2.82-2.34-5.57-1.24-2.76-2.62-5.44-1.39-2.69-2.91-5.3c-0.47-0.79-1.06-1.88-1.74-3.09q2.28 0.74 4.6 1.38 2.31 0.64 4.65 1.19 2.33 0.55 4.69 1.01 2.36 0.45 4.73 0.81 6.1 0.95 12.25 1.57 6.15 0.62 12.32 0.91 6.17 0.29 12.35 0.25 6.17-0.04 12.34-0.41 6.34-0.34 12.65-1.03 6.31-0.68 12.57-1.7 6.26-1.03 12.46-2.39 6.2-1.36 12.32-3.05c11.06-3.07 23-6.7 32.59-13.4-0.23 13.53-0.83 27.2-4.51 40.24-4.62 16.38-14.43 29.75-29.08 38.6zm-79 12.3l0.31 0.07z"/>
<path class="s5" d="m335.25 378c-10.56 4-20.86 8.21-31.89 11q-4.58 1.16-9.21 2.12-4.62 0.95-9.29 1.69-4.67 0.74-9.36 1.26-4.7 0.52-9.41 0.83-4.61 0.31-9.23 0.42-4.62 0.1-9.24 0-4.62-0.1-9.23-0.4-4.61-0.3-9.2-0.81c-6-0.68-12.08-1.56-18.06-2.64q-4.84-0.87-9.63-2c-1.87-0.44-3.7-1-6.05-1.54q1.22 3.1 2.28 6.26 0.2 0.6 0.38 1.2 1.79 5.47 3.24 11l0.17 0.35-0.06 0.11q1.32 5.11 2.37 10.3c0.78 3.9 1.45 7.83 2.07 11.76 0.62 3.93 1.7 8 1.31 11.84 2.6 0.63 5.16 1.7 7.69 2.39 2.53 0.69 4.82 1.23 7.25 1.75q0-1.07 0.13-2.13 0.13-1.06 0.38-2.1 0.25-1.04 0.63-2.04 0.37-1 0.86-1.95c0.2-0.48 0.38-1 0.54-1.45l0.32-0.12q1.45-2.43 3.32-4.55 1.88-2.12 4.12-3.85 2.24-1.73 4.77-3.01 2.52-1.28 5.24-2.07l0.14-0.06c5.41-1.57 11.34-1.72 16.46 0.26q-0.51 0.55-1 1.12h0.76q0.16 0.05 0.33 0.08 0.16 0.04 0.33 0.06 0.16 0.03 0.33 0.04 0.17 0 0.34 0l1.58-0.08q1.12-0.8 2.28-1.54 1.16-0.73 2.37-1.39 1.21-0.66 2.45-1.24 1.25-0.58 2.53-1.09c13.19-3.23 28.43-0.16 38.47 8.78q0.12 0.11 0.23 0.22 0.11 0.12 0.21 0.25 0.1 0.12 0.18 0.26 0.09 0.13 0.17 0.27h0.09q3.87-3.2 7.2-6.95 3.33-3.76 6.05-7.98 2.72-4.22 4.76-8.81 2.03-4.58 3.34-9.43 0.97-3.44 1.67-7 0.28-1.38 0.52-2.76c0.39-2.19 0.75-4.42 1-6.63z"/>
<path class="s3" d="m254.31 447.53c17.08-1 34-5.58 48.71-14.5q1-0.61 1.99-1.25 0.98-0.65 1.94-1.33 0.95-0.67 1.89-1.38 0.93-0.72 1.84-1.46-0.08-0.15-0.17-0.29-0.09-0.14-0.2-0.28-0.1-0.13-0.22-0.25-0.11-0.13-0.24-0.24c-10-8.94-25.27-12-38.47-8.78q-2.86 1.11-5.54 2.62-2.68 1.51-5.12 3.38-2.44 1.87-4.59 4.07-2.15 2.19-3.97 4.67c-1.21 1.65-0.08-0.26 0-0.32q0.66-1.43 1.44-2.8 0.77-1.37 1.65-2.68 0.88-1.3 1.86-2.54 0.98-1.23 2.05-2.38c-7.74-3-17.37-1.12-24.22 3.18-6.45 4.06-12.88 11.94-12.73 19.95q3.22 0.7 6.49 1.21 3.17 0.51 6.37 0.86 3.19 0.34 6.4 0.52 3.21 0.17 6.42 0.18 3.21 0.01 6.42-0.16z"/>
<path class="s5" d="m414.66 312.25q3.84-3.83 7.67-7.67 1.11-1.13 2.12-2.35 1.01-1.22 1.9-2.53 0.89-1.3 1.66-2.69 0.77-1.38 1.41-2.83c6.24-14.07 3-30.39-2.68-44.07-7.06-17-18.51-32.16-31.67-44.93-12.61-12.23-27.39-22.87-43.9-29.13-14-5.3-30.73-7.74-44.37-0.17-4.81 2.67-8.46 6.61-12.3 10.45l-2.27 2.27c-0.15 0.15-0.34 0.43-0.53 0.53-0.45 0.22-1.78-0.28-2.32-0.38q-7.55-1.45-15.23-2.18-6.87-0.65-13.77-0.71-6.9-0.06-13.78 0.47-6.88 0.53-13.68 1.65-6.81 1.12-13.5 2.82-6.38 1.63-12.6 3.78-6.22 2.15-12.24 4.81-6.02 2.67-11.8 5.83-5.78 3.15-11.27 6.78-5.68 3.76-11.02 7.99-5.34 4.22-10.3 8.89-4.97 4.66-9.52 9.72-4.56 5.06-8.67 10.49-3.82 5.05-7.22 10.38-3.4 5.34-6.37 10.93-2.96 5.59-5.47 11.41-2.51 5.81-4.54 11.8c-2.72 8.07-4.79 16.34-6.19 24.74-1.41 8.39-2.15 16.89-2.21 25.4-0.06 8.51 0.56 17.02 1.85 25.43 1.29 8.42 3.25 16.72 5.85 24.82q1.96 6.04 4.4 11.91 2.43 5.87 5.33 11.52 2.91 5.65 6.25 11.06 3.35 5.4 7.12 10.51 4.16 5.64 8.8 10.9 4.63 5.26 9.7 10.09 5.08 4.84 10.55 9.22 5.48 4.37 11.31 8.26 6.36 4.23 13.09 7.82 6.73 3.6 13.78 6.53 7.05 2.92 14.35 5.16 7.3 2.23 14.78 3.75 7.59 1.53 15.29 2.32 7.71 0.79 15.45 0.84 7.74 0.05 15.46-0.64 7.71-0.69 15.32-2.12 7.51-1.41 14.84-3.55 7.34-2.13 14.43-4.96 7.1-2.83 13.89-6.34 6.78-3.5 13.2-7.65 6.04-3.91 11.71-8.35 5.68-4.44 10.93-9.37 5.25-4.92 10.04-10.3 4.8-5.37 9.09-11.15c5.21-7.01 9.83-14.44 13.81-22.21 3.97-7.77 7.3-15.86 9.94-24.19 2.64-8.32 4.59-16.85 5.82-25.49 1.23-8.65 1.74-17.38 1.53-26.11q-0.08-3.68-0.32-7.35-0.24-3.67-0.64-7.33-0.41-3.66-0.98-7.29-0.57-3.63-1.31-7.24zm-104.75-120.12c8.38-8.38 22-6.61 32.25-3.31 12.32 4 23.6 11.05 33.57 19.21q4.18 3.39 8.07 7.1 3.9 3.7 7.5 7.7 3.6 4 6.88 8.27 3.27 4.26 6.21 8.77c6.14 9.52 11.35 20.26 12.94 31.59 1.11 7.89 0.21 16.61-5.64 22.54l-1.49 1.49q-2.25-6.9-5.13-13.57-2.88-6.67-6.35-13.05-3.48-6.37-7.52-12.4-4.05-6.03-8.63-11.67-4.63-5.71-9.77-10.97-5.13-5.26-10.73-10.03-5.59-4.77-11.6-9.01-6-4.24-12.37-7.91-3.53-2.03-7.16-3.88-3.64-1.84-7.36-3.5-3.72-1.65-7.52-3.11-3.81-1.46-7.68-2.72zm-105.1 286.19c-46.27-18.81-79.49-60.25-87.78-109.51-8.29-49.26 9.54-99.29 47.12-132.21 37.57-32.91 89.51-44 137.25-29.31 47.74 14.7 84.45 53.08 97.01 101.43q1.48 5.77 2.48 11.63 1.01 5.87 1.53 11.8 0.52 5.93 0.56 11.88 0.04 5.95-0.41 11.89-0.45 6.1-1.43 12.14-0.98 6.04-2.46 11.97-1.49 5.94-3.49 11.72-1.99 5.79-4.47 11.38-2.43 5.44-5.3 10.67-2.86 5.23-6.14 10.21-3.29 4.97-6.96 9.67-3.68 4.69-7.72 9.07c-9.89 10.66-21.33 19.76-33.93 26.99-12.61 7.23-26.24 12.52-40.43 15.68-14.18 3.16-28.77 4.15-43.25 2.95-14.49-1.21-28.71-4.59-42.18-10.05z"/>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

13
public/icons/igdb.svg Normal file
View File

@@ -0,0 +1,13 @@
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="200" height="200">
<title>igdb</title>
<style>
.s0 { fill: #000000 }
</style>
<g id="Layer_1">
<path class="s0" d="m55.7 84.3h5.3v23.9h-5.3z"/>
<path class="s0" d="m67.2 96.3v-0.1c0-6.7 5.3-12.3 12.5-12.3 4.3 0 6.9 1.2 9.4 3.3l-3.3 4c-1.9-1.6-3.5-2.5-6.3-2.5-3.8 0-6.8 3.4-6.8 7.5 0 4.4 3 7.6 7.2 7.6 1.9 0 3.6-0.5 4.9-1.4v-3.4h-5.2v-4.6h10.3v10.4q-1 0.9-2.2 1.6-1.2 0.7-2.5 1.2-1.3 0.5-2.7 0.7-1.4 0.3-2.8 0.3c-7.4 0-12.5-5.2-12.5-12.3z"/>
<path fill-rule="evenodd" class="s0" d="m96.3 84.3h9.3c7.5 0 12.6 5.2 12.6 11.9 0 6.8-5.1 12-12.6 12h-9.3zm5.2 4.7v14.4h4.1c4.3 0 7.2-2.9 7.2-7.1v-0.1c0-4.2-2.9-7.2-7.2-7.2z"/>
<path fill-rule="evenodd" class="s0" d="m124.3 84.3h11c2.7 0 4.9 0.8 6.2 2.1q0.4 0.4 0.8 0.9 0.3 0.5 0.5 1 0.2 0.5 0.3 1.1 0.1 0.5 0.1 1.1v0.1c0 2.6-1.5 4.1-3.1 5.1 2.7 1.1 4.4 2.7 4.4 5.9 0 4.4-3.5 6.6-8.9 6.6h-11.3zm13.7 7c0-1.5-1.3-2.4-3.5-2.4h-5.1v5h4.8c2.3 0 3.8-0.7 3.8-2.5zm-2.6 6.9h-6v5.3h6.2c2.3 0 3.7-0.8 3.7-2.6v-0.1c0-1.6-1.2-2.6-3.9-2.6z"/>
<path fill-rule="evenodd" class="s0" d="m157.2 127l-1.9-0.3q-13.7-2.2-27.5-3.3-13.8-1-27.7-1-13.8 0-27.7 1-13.8 1.1-27.5 3.3l-1.9 0.3v-55h114.2zm-57.1-8.1q6.8 0 13.5 0.3 6.8 0.3 13.5 0.8 6.7 0.5 13.4 1.3 6.7 0.7 13.4 1.7v-47.7h-107.5v47.7q6.6-1 13.3-1.7 6.7-0.8 13.5-1.3 6.7-0.5 13.4-0.8 6.8-0.3 13.5-0.3z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,17 @@
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 450 450" width="450" height="450">
<title>pcgamingwiki</title>
<style>
.s0 { fill: #365798 }
.s1 { fill: #a5b6d9 }
.s2 { fill: #a5b6d8 }
</style>
<path class="s0" d="m127 127.2l106.3-39.6 89.7 13.6v242.6 6.8l-88.9 11.8-107.1-35.7z"/>
<path class="s1" d="m133 321.3l-0.3-188.3 92.1-34-0.2 251.3zm107.2 29.2v-250.2l73.4 9.9v231.2z"/>
<path class="s0" d="m178 262.5l-41.2-2.4-0.3-72.6 41.6-3.9zm4-79.3l37-4.6-0.3 85.2-36.8-1.1zm-45.7-0.6v-46.1l41.7-13.6 0.3 55zm83.1-75.1l0.2 65-37.6 4.8v-56.4zm-59.9 215.5v-55.7l33.6 2.2v63.5zm58.5 19.1l-4.1-1.5c0.9-5.3-4.5-7.6-4.5-1.4l-4.4-1.3c-0.2-5.2-3.3-7.5-5-1.6l-2.3-0.7-0.1-65.8 2.9 0.2c-1 6.5 5.6 6.7 4.8 0.4l4.8 0.3c-1 6.8 5.5 6.8 4.8 0.3l3 0.2zm-80.9-76.3l19.5 1.4-0.1 25.6-19.4-2.7zm19.7 30.6l-0.2 26.2-19.6-4.8v-24.3zm87.3-192l66 8.7v225.1l-65.9 8.3z"/>
<path class="s1" d="m147.9 175.1l5.8-21.8-3.8 1.7 5.1-18.7 6-1.7-4.5 12.6 4.5-2.4z"/>
<path class="s2" d="m193 163.2c0.3-0.8 0.6-1.5 0.9-2.3 3.3 1.4 6.3 2.4 9.6 0.5 3.2-1.9 5.4-5.8 6.6-9.2 2.4-6.7 2.4-15.8-2-21.7-5.3-7.2-12.9-3.4-16.5 3.3-1.1 2.1-2.7 7.4-2.9 10.7-0.1 1.6 0 3.3 0.2 5 0.2 1.9 1.2 3.9 1 5.9-0.1 0.6-0.4 1-1.1 1.1-4-6.6-1.8-17.3 1.2-23.8 3-6.5 11.3-13.1 18-6.9 6.1 5.7 6.7 16.1 5 23.8-1.5 6.8-6.2 16.9-14.7 16.2-1.4-0.4-4.4-1.1-5.3-2.6zm4.9-10.9c-0.8-2.7 2.7-4.6 3.5-6.7 0.5-1.2 0-2.3-0.5-3.3-1.2-0.6-2.1-0.3-2.6 0.9-0.8 2.1-1.5 3.5-3 5.2-0.8-3.2-0.3-6.9 1.6-9.7 1-1.5 3.1-2.2 4.6-1.6 4.9 1.8 3.4 10.1 1.3 13.4-1.2 1.7-3.1 1.8-4.9 1.8zm0.8-6.1c-1.9 5.3-4.7 11.2-6.7 15.7-0.2-0.1-0.3-0.1-0.4-0.2-0.8-0.9-1.3-2-1.8-3.1-0.2-0.4 0-0.9 0.3-1.2 3.1-3.4 5.4-8.3 8.6-11.2z"/>
<path class="s1" d="m171.7 306.2c-1.4 2.8-1 5.9-1.4 9-2.3-0.6-4-5.1-4.4-7.1 0.4-2.3 1.6-4.1 3.1-5.9 0.7-0.9 0.9-1.7 0.5-2.7-0.2-0.4-0.1-0.9-0.5-1.2-2.1 0.4-3.3 1.9-4.7 3.3-1.6-1.7-1.2-7.9 0-9.7 2-0.4 3.7 0.2 5.4 1.4 1.3-1.2 1.3-2.4 0.2-3.7-0.9-1-3.5-2.1-4-3.1-0.4-1.5 2.4-6.5 4.1-6.4 1.8 2.7 2.9 5.8 3.6 9 0.6 0.3 1.2 0.5 1.9 0.4 0.4-3.7-0.5-7.2-1.6-10.6 0.1-0.1 0.2-0.2 0.2-0.2 2 0.1 4 0.5 5.5 2 3.5 3.4-2.7 9.9 0.1 13.8 2.5-2.4 2.5-5.5 4.4-8.1 1.9 2.4 3.6 7.3 3.2 10.4-1.6 2-2.9 3.1-6.8 3.4 0.1 0.9-0.4 1.7-0.2 2.7 2.1 2.2 4.4 1.9 7.1 1.7 0.4 1.9-1.6 8-3.1 9.4-3-1.4-4.5-4.2-6.2-6.9-0.6 0.5-1.1 0.9-1.5 1.4 0.4 3.1 4.3 6.9 3.8 9.6-1.3 0.6-2.7 1-4.2 0.8-1.5-0.2-2.1-1-2.4-2.6-0.7-3.3 0.8-7.6-2.1-10.1zm28.1 5.2v-15.1l16.1 2.6v16zm-0.1-33l16.1 1.7v15.8l-16.1-2.3zm16.1 39.2v15.8l-16-4.4v-15.1zm-76-7.5v-6.8l3.2 0.5 3.9-3.9 0.2 16-3.9-5zm9.5-6c0.3-0.1 2.5-2 2.8-1.9 1.5 4.1 1.3 7.4-0.5 11.7l-2.1-2.9c0.7-3.1 0.7-3.9-0.3-6.9zm2.3 12.9c-51.1 38.7-25.5 19.3 0 0zm117.2 18.9l-16.7 2v-89.7l16.7-0.9zm21.3-121.7c-2.6 11.9-15.6 10.8-18.5 0.7l-21.9 0.7v-16.1l21.2-0.8c5.4-12.8 15.3-10.9 19.4 0l15.7 0.1 0.4 14.6zm-40.9-56.2v-5.7l57.3 1.8v4.6zm-109.8 125.9l14.8 2.3-4.5-10.3-1.9 3.6-3.2-6.9z"/>
<path fill-rule="evenodd" class="s0" d="m280.8 219c-4.04 0-7.3-5.5-7.3-12.3 0-6.8 3.26-12.3 7.3-12.3 4.04 0 7.3 5.5 7.3 12.3 0 6.8-3.26 12.3-7.3 12.3z"/>
<path class="s1" d="m169.1 236.4c-0.4 0.7-0.4 1.6 0.1 2.2l-6.2 9.5h1.6l5.9-8.7c0.8 0.1 1.6-0.2 2-0.9 0.6-0.9 0.3-2.1-0.6-2.7-1-0.6-2.2-0.3-2.8 0.6zm-26.3 7.1l-2.3 3.1 1.1 1 1.9-2.6 1.7 0.1c0.1 0.2 0.2 0.3 0.4 0.5 0.8 0.8 2 0.8 2.8 0 0.8-0.8 0.8-2 0-2.8-0.8-0.8-2-0.8-2.8 0-0.2 0.2-0.4 0.5-0.5 0.9zm4.8-16.3c-1 0-1.9 0.9-1.9 1.9 0 1 0.9 1.9 1.9 1.9 0.9 0 1.6-0.6 1.8-1.4l10.5 0.3 4.1 5.1c0 0.2-0.1 0.4-0.1 0.6 0 1.1 0.9 2 2 2 1.1 0 2-0.9 2-2 0-1.1-0.9-2-2-2-0.4 0-0.7 0.1-1 0.3l-4.5-5.4-11.4-0.3c-0.2-0.7-0.8-1-1.4-1zm-4.7 4h-1.9v-1.6c1.5 0 2.3-0.4 3.1 0.9 1.6 2.4 3 5 4.5 7.4 0.7 1.2 1.5 2.5 2.3 3.7 1.1 1.8 1.4 1.9 3.5 2 1.5 0.1 3 0.1 4.5 0.1 1.6 0 1.5-1.3 3-1.2 1.3 1.2 1.3 2.8 0 4-1.4 0.1-1.3-1.4-2.3-1.4h-4.6c-2.3 0-2.9 0.5-4.1-1.3-2.6-4.2-5.3-8.4-8-12.6zm1.7 6.3c0 1-0.9 1.9-1.9 1.9-1 0-1.9-0.9-1.9-1.9 0-1 0.9-1.9 1.9-1.9 1 0 1.9 0.9 1.9 1.9zm3.1-36.8c-0.8 0-1.5 0.6-1.8 1.3l-5.4 0.2 0.1 1.5 5.4-0.2c0.3 0.7 1 1.2 1.9 1.2 1.1 0 1.9-1 1.9-2.1 0-1.1-1-1.9-2.1-1.9zm13.4 4.8c-1.1 0-2 0.9-1.9 2 0 1.1 0.9 2 2 1.9 0.8 0 1.4-0.5 1.7-1.2l6-0.2c0.3 0.7 1 1.1 1.8 1.1 1.1 0 2-0.9 1.9-2 0-1.1-0.9-2-2-1.9-0.9 0-1.6 0.6-1.8 1.4l-5.8 0.2c-0.3-0.8-1-1.4-1.9-1.3zm-10.5-7.2l-1 1.1 4.7 4.1 19.2-0.7-0.1-1.5-18.5 0.7zm-9.9 12.2v-1.4l16.2-0.9 16.9 24.6-1.3 0.8-16.6-24zm31.4 6c0.5-0.6 0.6-1.5 0.3-2.2l1.6-2.3v-2l-2.8 3.4c-0.7-0.3-1.6 0-2.1 0.6-0.7 0.8-0.6 2.1 0.2 2.8 0.8 0.6 2.1 0.5 2.8-0.3zm-7.6 0.1c0.5 0.7 1.3 1 2.1 0.8l7.3 10.5v-2.3l-6-9c0.4-0.7 0.4-1.5 0-2.2-0.6-0.9-1.8-1.1-2.7-0.5-1.2 0.6-1.4 1.9-0.7 2.7zm-8.3-2.2c-0.8 0-1.5 0.6-1.8 1.3l-13.6 0.7 0.1 1.5 13.6-0.7c0.3 0.7 1 1.2 1.9 1.2 1.1 0 1.9-1 1.9-2.1 0-1.1-1-2-2.1-1.9zm4.2 7.8l-19.3 0.5v1.5l18.6-0.5 4.1 5.3c0 0.2-0.1 0.4-0.1 0.6 0 1.1 0.9 2 2 2 1.1 0 2-0.9 2-2 0-1.1-0.9-2-2-2-0.4 0-0.7 0.1-1 0.3zm9 25c0.3 0.6 1.2 0 1.4 0.9-0.2 1-2.1 0.1-2.7 0.2-0.3-1 2-3.6 2.6-4.5 0.7-0.3 2.2 0 3 0 0.1 0.7 0.1 1.3-0.4 1.8-0.8 0-1.6-0.3-2.4-0.4-0.5 0.7-1 1.3-1.5 2zm-18.6-13.6c-1.1 0-2 0.9-1.9 2 0 1.1 0.9 2 2 1.9 0.8 0 1.4-0.5 1.7-1.2l5.3-0.1c0.3 0.7 1 1.1 1.8 1.1 1.1 0 2-0.9 1.9-2 0-1.1-0.9-2-2-1.9-0.9 0-1.6 0.6-1.8 1.4l-5.1 0.1c-0.3-0.8-1-1.4-1.9-1.3z"/>
<path fill-rule="evenodd" class="s1" d="m188.8 206.9h22.6v31.6h-22.6z"/>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
public/icons/rommmark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

16
public/key.gpg Normal file
View File

@@ -0,0 +1,16 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEaI1UGxYJKwYBBAHaRw8BAQdAuywOb0ODn+sYTU01SAt5Zhnrg06Fu434sQaQ
IQal/0+0H0Ryb3AgT1NTIDxzZWN1cml0eUBkcm9wb3NzLm9yZz6IlgQTFgoAPhYh
BNJmUJMa2VepK+lzaoRc4skSKQf6BQJojVQbAhsDBQkB4TOABQsJCAcCBhUKCQgL
AgQWAgMBAh4BAheAAAoJEIRc4skSKQf6pusBAOedfWEsKtkhgAYml4PtkEq2BLEA
58w66EKuPu0ypM0dAQDDRdgEpsTgg6uUJlnQ93d6PJxgvNo20qq9tyDviCWxDYh1
BBAWCgAdFiEEMTpKS+QtsauEUrDQOZnj7+ye63QFAmiNVOgACgkQOZnj7+ye63SC
hwEA31IuEjccUm8miPOJ1KZApGXpDMfyolpqgfD2jx5YzuYA/RqWh9OIa4LwLNjl
kvWwLnc7X+sE8pSyY3QDNv/VO5oKuDgEaI1UGxIKKwYBBAGXVQEFAQEHQE0/It0Y
r8WjZetfhMBBdoz5FHw4V4qkqzT2cN8JchMrAwEIB4h+BBgWCgAmFiEE0mZQkxrZ
V6kr6XNqhFziyRIpB/oFAmiNVBsCGwwFCQHhM4AACgkQhFziyRIpB/pE+QEAuyDc
OM5bNbNqIkt/GvSne6WqGTJZenWUjvMKI7rKYWEA/38JAhY/OQLoyIt0pTBaJ8pQ
JxHMLckNYF1whCZFloAM
=GsUn
-----END PGP PUBLIC KEY BLOCK-----

BIN
public/map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
public/screenshots/app.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
public/screenshots/news.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

21
public/site.webmanifest Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "Drop OSS",
"short_name": "Drop",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#3f3f46",
"background_color": "#3f3f46",
"display": "standalone"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

171
src/app/about/page.tsx Normal file
View File

@@ -0,0 +1,171 @@
import { AnimatedNumber } from '@/components/animated-number'
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { GradientBackground } from '@/components/gradient'
import { Navbar } from '@/components/navbar'
import { Team } from '@/components/team'
import { Heading, Lead, Subheading } from '@/components/text'
import type { Metadata } from 'next'
import Link from 'next/link'
export const metadata: Metadata = {
title: 'About',
description:
'About Drop OSS - what we do, what we believe, and what we aim to achieve.',
}
function Header() {
return (
<Container className="mt-16">
<Heading as="h1">An open Steam.</Heading>
<Lead className="mt-6 max-w-3xl">
We&apos;re building an open-source alternative to platforms like Steam
and Epic Games, enabling anyone to have full control over their gaming.
</Lead>
<section className="mt-16 grid grid-cols-1 lg:grid-cols-2 lg:gap-12">
<div className="max-w-lg">
<h2 className="text-2xl font-medium tracking-tight">Our mission</h2>
<p className="mt-6 text-sm/6 text-gray-600">
We aim to build a &quot;Steam-like experience for DRM-free
games&quot;. One of the major sticking points of DRM games, and why
platforms like Steam have done so well, is that they provide awesome
features like worldwide play-together, social features, and useful
overlays and tools. We aim to replicate this for <i>any</i> game.
</p>
<p className="mt-8 text-sm/6 text-gray-600">
Don&apos;t get us wrong, we don&apos;t think Steam or Valve is bad.
They are unusually consumer-friendly, and provide a great service.
They will always have a place, providing a marketplace for DRM
games. Drop aims to be the alternative.
</p>
</div>
<div className="max-lg:mt-16 lg:col-span-1">
<Subheading>The Numbers</Subheading>
<hr className="mt-6 border-t border-gray-200" />
<dl className="mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2">
<div className="flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4">
<dt className="text-sm/6 text-gray-600">Lines of code</dt>
<dd className="order-first text-6xl font-medium tracking-tight">
<AnimatedNumber start={10} end={40} />k
</dd>
</div>
<div className="flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4">
<dt className="text-sm/6 text-gray-600">
Individual open-source projects
</dt>
<dd className="order-first text-6xl font-medium tracking-tight">
&gt;
<AnimatedNumber start={0} end={5} />
</dd>
</div>
<div className="flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4">
<dt className="text-sm/6 text-gray-600">Docker pulls</dt>
<dd className="order-first text-6xl font-medium tracking-tight">
<AnimatedNumber start={0} end={12.2} decimals={1} />k
</dd>
</div>
<div className="flex flex-col gap-y-2">
<dt className="text-sm/6 text-gray-600">Contributors</dt>
<dd className="order-first text-6xl font-medium tracking-tight">
&gt;
<AnimatedNumber start={0} end={10} />
</dd>
</div>
</dl>
</div>
</section>
</Container>
)
}
function FrequentlyAskedQuestions() {
return (
<Container className="mt-32">
<section id="faqs" className="scroll-mt-8">
<Subheading className="">Frequently asked questions</Subheading>
<Heading as="div" className="mt-2">
Your questions answered.
</Heading>
<div className="mt-16 mb-32 max-w-xl space-y-12">
<dl>
<dt className="text-sm font-semibold">
Do you intend to replace Steam?
</dt>
<dd className="mt-4 text-sm/6 text-gray-600">
No. Drop is not a replacement for Steam, in the sense that we will
ever offer a marketplace for developers to sell games. Drop can
replace Steam <i>for an individual</i>, if they only played
DRM-free games that they bought from outside of Steam (like GOG).
</dd>
</dl>
<dl>
<dt className="text-sm font-semibold">
Will Drop ever cost money or require a subscription?
</dt>
<dd className="mt-4 text-sm/6 text-gray-600">
We believe in <strong>paying for services, not code</strong>. All
our projects are and always will be open source (AGPLv3), and we
endeavour to allow users to self-host as much of it as possible.
Where that is not possible, we may launch a subscription service -
likely as a feature for multiplayer, to play between self-hosted
Drop instances. Naturally, this service will also be available to
self-host.
</dd>
</dl>
<dl>
<dt className="text-sm font-semibold">Is Drop legal?</dt>
<dd className="mt-4 text-sm/6 text-gray-600">
Yes. Officially, Drop is <strong>only</strong> for DRM-free games,
like the ones you purchase from GOG or download from itch.io,{' '}
<strong>and</strong> that you have a license to redistribute. We
cannot control whether you use Drop with cracked, pirated, or
DRM-bypassed games or not, and do not condone the use of
torrenting and automation software to automatically download
games.
</dd>
</dl>
<dl>
<dt className="text-sm font-semibold">How can I support Drop or get involved?</dt>
<dd className="mt-4 text-sm/6 text-gray-600">
Thank you for helping us out! If you&apos;re looking to contribute
code, check out our{' '}
<Link
href="https://developer.droposs.org/contributing"
className="text-blue-500 hover:underline"
target="_blank"
>
developer contributing guide
</Link>
. If you&apos;re looking to contribute financially, you can join
our{' '}
<Link
href="https://opencollective.com/drop-oss"
className="text-blue-500 hover:underline"
target="_blank"
>
OpenCollective
</Link>
, or click on individual contributors above and add to their
personal pockets.
</dd>
</dl>
</div>
</section>
</Container>
)
}
export default function About() {
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
</Container>
<Header />
<Team />
<FrequentlyAskedQuestions />
<Footer />
</main>
)
}

View File

@@ -0,0 +1,14 @@
import Comparison from "@/components/comparison";
import type { Metadata } from "next";
import { Suspense } from "react";
export const metadata: Metadata = {
title: 'Comparison',
description:
'A breakdown of the different projects you may be interested in, and the pros & cons of each.',
}
export default function ComparisonPage() {
return <Suspense><Comparison /></Suspense>
}

42
src/app/download/page.tsx Normal file
View File

@@ -0,0 +1,42 @@
import { Container } from '@/components/container'
import DownloadCards from '@/components/downloads'
import { Footer } from '@/components/footer'
import { GradientBackground } from '@/components/gradient'
import { Navbar } from '@/components/navbar'
import { Heading, Lead, Subheading } from '@/components/text'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'Download',
description: 'Download the latest version of the Drop client.',
}
function Header() {
return (
<Container className="mt-16">
<Heading as="h1" className="leading-12">
Download
</Heading>
<Lead className="mt-6 max-w-3xl">
Download the latest version of the Drop Desktop Client for your platform.
</Lead>
<Subheading className="mt-2">Last updated 05-09-2025</Subheading>
</Container>
)
}
export default function DownloadPage() {
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
</Container>
<Header />
<DownloadCards />
<Footer />
</main>
)
}

BIN
src/app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

25
src/app/gallery/page.tsx Normal file
View File

@@ -0,0 +1,25 @@
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { Gallery } from '@/components/gallery-modal'
import { GradientBackground } from '@/components/gradient'
import { Navbar } from '@/components/navbar'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'Gallery',
description: 'A collection of screenshots, across all components of Drop.',
}
export default function About() {
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
</Container>
<Gallery />
<Footer />
</main>
)
}

23
src/app/layout.tsx Normal file
View File

@@ -0,0 +1,23 @@
import '@/styles/tailwind.css'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: {
template: '%s - Drop OSS',
default: 'Drop - An open Steam',
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="en">
<body className="text-gray-950 antialiased">
{children}
</body>
</html>
)
}

View File

@@ -0,0 +1,104 @@
import { Button } from '@/components/button'
import { Container } from '@/components/container'
import Content from '@/components/content'
import { Footer } from '@/components/footer'
import { GradientBackground } from '@/components/gradient'
import { Navbar } from '@/components/navbar'
import { fetchPostAuthors } from '@/components/post'
import { Heading, Subheading } from '@/components/text'
import { ChevronLeftIcon } from '@heroicons/react/16/solid'
import { allPosts } from 'content-collections'
import dayjs from 'dayjs'
import { notFound } from 'next/navigation'
export const generateStaticParams = async () =>
allPosts.map((post) => ({ slug: post._meta.path }))
export const generateMetadata = async ({
params,
}: {
params: Promise<{ slug: string }>
}) => {
const aParams = await params
const post = allPosts.find((post) => post._meta.path === aParams.slug)
if (!post) notFound()
return { title: post.title, description: post.excerpt }
}
export default async function BlogPost({
params,
}: {
params: Promise<{ slug: string }>
}) {
const aParams = await params
const post = allPosts.find((post) => post._meta.path === aParams.slug)
if (!post) notFound()
const postAuthors = fetchPostAuthors()
const author = post.author ? postAuthors[post.author] : undefined
const tags = (post.tags ?? '').split(',').map((e) => e.trim())
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
<Subheading className="mt-16">
{dayjs(post.date).format('dddd, MMMM D, YYYY')}
</Subheading>
<Heading as="h1" className="mt-2">
{post.title}
</Heading>
<div className="mt-16 grid grid-cols-1 gap-8 pb-24 lg:grid-cols-[15rem_1fr] xl:grid-cols-[15rem_1fr_15rem]">
<div className="flex flex-wrap items-center gap-8 max-lg:justify-between lg:flex-col lg:items-start">
{author && (
<div className="flex items-center gap-3">
{author.avatar && (
<img
alt=""
src={author.avatar}
className="aspect-square size-6 rounded-full object-cover"
/>
)}
<div className="text-sm/5 text-gray-700">{author.name}</div>
</div>
)}
{
<div className="flex flex-wrap gap-2">
{tags.map((tag) => (
<div
key={tag}
className="rounded-full border border-dotted border-gray-300 bg-gray-50 px-2 text-sm/6 font-medium text-gray-500"
>
{tag}
</div>
))}
</div>
}
</div>
<div className="text-gray-700">
<div className="max-w-2xl xl:mx-auto">
{post.image && (
<img
alt={post.title}
src={post.image}
className="mb-10 aspect-3/2 w-full rounded-2xl object-cover shadow-xl"
/>
)}
<Content content={post} />
<div className="mt-10">
<Button variant="outline" href="/news">
<ChevronLeftIcon className="size-4" />
Back to news
</Button>
</div>
</div>
</div>
</div>
</Container>
<Footer />
</main>
)
}

12
src/app/news/page.tsx Normal file
View File

@@ -0,0 +1,12 @@
import News from '@/components/news'
import type { Metadata } from 'next'
import { Suspense } from 'react'
export const metadata: Metadata = {
title: 'News',
description: 'Stay up to date with updates and information about Drop.',
}
export default function NewsPage() {
return <Suspense><News /></Suspense>
}

34
src/app/not-found.tsx Normal file
View File

@@ -0,0 +1,34 @@
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { GradientBackground } from '@/components/gradient'
import { Navbar } from '@/components/navbar'
import { Heading, Subheading } from '@/components/text'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'Not Found',
description: "We couldn't find this page, or doesn't exist.",
}
export default function About() {
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
</Container>
<main className="grid min-h-full place-items-center bg-white px-6 py-24 sm:py-32 lg:px-8">
<div className="text-center">
<Subheading>404</Subheading>
<Heading>
Page not found
</Heading>
<p className="mt-6 text-lg font-medium text-pretty text-gray-500 sm:text-xl/8">
Sorry, we couldn&apos;t find the page you&apos;re looking for.
</p>
</div>
</main>
<Footer />
</main>
)
}

143
src/app/page.tsx Normal file
View File

@@ -0,0 +1,143 @@
import { BentoCard } from '@/components/bento-card'
import { Button } from '@/components/button'
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { Gradient } from '@/components/gradient'
import { LogoCluster } from '@/components/logo-cluster'
import { Navbar } from '@/components/navbar'
import { Screenshot } from '@/components/screenshot'
import { Heading, Subheading } from '@/components/text'
import type { Metadata } from 'next'
export const metadata: Metadata = {
description:
'Radiant helps you sell more by revealing sensitive information about your customers.',
}
function Hero() {
return (
<div className="relative">
<Gradient className="absolute inset-2 bottom-0 rounded-4xl ring-1 ring-black/5 ring-inset" />
<Container className="relative">
<Navbar />
<div className="pt-16 pb-24 sm:pt-24 sm:pb-32 md:pt-32 md:pb-48">
<h1 className="font-display text-6xl/[0.9] font-medium tracking-tight text-balance text-gray-950 sm:text-8xl/[0.8] md:text-9xl/[0.8]">
An open Steam.
</h1>
<p className="mt-8 max-w-lg text-xl/7 font-medium text-gray-950/75 sm:text-2xl/8">
Drop is an open-source, self-hosted alternative to platforms like
Steam and Epic.
</p>
<div className="mt-12 flex flex-col gap-x-6 gap-y-4 sm:flex-row">
<Button href="#">Get started</Button>
<Button variant="secondary" href="/about">
About
</Button>
</div>
</div>
</Container>
</div>
)
}
function FeatureSection() {
return (
<div className="overflow-hidden">
<Container className="pb-24">
<Heading as="h2" className="max-w-3xl">
A better experience for DRM&#8209;free games.
</Heading>
<Screenshot
width={3408}
height={1846}
src="/screenshots/app.webp"
className="mt-16 h-144 sm:h-auto sm:w-304"
/>
</Container>
</div>
)
}
function BentoSection() {
return (
<Container>
<Subheading>Features</Subheading>
<Heading as="h3" className="mt-2 max-w-3xl">
Upgrade your games library.
</Heading>
<div className="mt-10 grid grid-cols-1 gap-4 sm:mt-16 lg:grid-cols-6 lg:grid-rows-2">
<BentoCard
eyebrow="Metadata"
title="Rich metadata editing"
description="Drop has a rich metadata editor - you can use Markdown, images, and update icons, descriptions, and names."
graphic={
<div className="flex h-full w-full items-center justify-center p-4">
<div className="bg-position-center h-full w-full grow rounded-lg bg-[url(/screenshots/metadata.webp)] bg-cover bg-no-repeat" />
</div>
}
fade={['bottom']}
className="max-lg:rounded-t-4xl lg:col-span-3 lg:rounded-tl-4xl"
/>
<BentoCard
eyebrow="Store"
title="Let your users discover games"
description="Drop has a fully featured store, where your users can discover and filter your game library, and create collections of their favourite games."
graphic={
<div className="flex h-full w-full items-center justify-center p-4">
<div className="bg-position-center h-full w-full grow rounded-lg bg-[url(/screenshots/storepage.png)] bg-cover bg-no-repeat" />
</div>
}
fade={['bottom']}
className="lg:col-span-3 lg:rounded-tr-4xl"
/>
<BentoCard
eyebrow="Authentication"
title="Flexible authentication"
description="Drop supports both simple and SSO authentication, with more features like SCIM on the way."
graphic={
<div className="flex h-full w-full items-center justify-center p-4">
<div className="bg-position-center h-full w-full grow rounded-lg bg-[url(/screenshots/authentication.png)] bg-cover bg-no-repeat" />
</div>
}
fade={['bottom']}
className="lg:col-span-2 lg:rounded-bl-4xl"
/>
<BentoCard
eyebrow="Metadata"
title="Automatically import metadata"
description="Drop can import metadata for your games from platforms like IGDB, GiantBomb, and PCGamingWiki."
graphic={<LogoCluster />}
className="lg:col-span-2"
/>
<BentoCard
eyebrow="News"
title="Keep your users up-to-date with server news"
description="Admins can write news articles that appear in-browser and client, to keep users up-to-date."
fade={['bottom']}
graphic={
<div className="flex h-full w-full items-center justify-center p-4">
<div className="bg-position-center h-full w-full grow rounded-lg bg-[url(/screenshots/news.png)] bg-cover bg-no-repeat" />
</div>
}
className="max-lg:rounded-b-4xl lg:col-span-2 lg:rounded-br-4xl"
/>
</div>
</Container>
)
}
export default function Home() {
return (
<div className="overflow-hidden">
<Hero />
<main>
<div className="bg-linear-to-b from-white from-50% to-gray-100 py-32">
<FeatureSection />
<BentoSection />
</div>
</main>
<Footer />
</div>
)
}

73
src/app/sponsors/page.tsx Normal file
View File

@@ -0,0 +1,73 @@
import { Button } from '@/components/button'
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { GradientBackground } from '@/components/gradient'
import { Navbar } from '@/components/navbar'
import { Sponsors } from '@/components/sponsors'
import { Heading, Lead, Subheading } from '@/components/text'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'Sponsors',
description: 'Thanking the people who contribute financially to the project.',
}
function CTA() {
return (
<Container className="py-32">
<Subheading>Contribute</Subheading>
<Heading as="h3" className="mt-2">
How can I help out?
</Heading>
<Lead className="mt-6 max-w-3xl">
Sign up to our OpenCollective, or become a GitHub sponsor to give back
to the project.
</Lead>
<div className="mt-12 grid grid-cols-1 gap-12 lg:grid-cols-2">
<div className="max-w-lg">
<p className="text-sm/6 text-gray-600">
If you&apos;re looking to give back to the project financially -
first off, thank you. It really does help a lot. There are two
options for contributing: our OpenCollective, which funds
project-only expenses, like infrastructure and domain names, and
GitHub Sponsors, which goes directly to developers, and help them
pay the bills and keep them motivated.
</p>
<div className="mt-6 space-x-4">
<Button
className="w-full sm:w-auto"
href="https://opencollective.com/drop-oss"
target="_blank"
>
OpenCollective &rarr;
</Button>
<Button
className="w-full sm:w-auto"
href="/about#team"
variant="secondary"
>
Team &rarr;
</Button>
</div>
</div>
</div>
</Container>
)
}
export default function About() {
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
</Container>
<Sponsors />
<CTA />
<Footer />
</main>
)
}

View File

@@ -0,0 +1,33 @@
'use client'
import {
motion,
useInView,
useMotionValue,
useSpring,
useTransform,
} from 'framer-motion'
import { useEffect, useRef } from 'react'
export function AnimatedNumber({
start,
end,
decimals = 0,
}: {
start: number
end: number
decimals?: number
}) {
let ref = useRef(null)
let isInView = useInView(ref, { once: true, amount: 0.5 })
let value = useMotionValue(start)
let spring = useSpring(value, { damping: 30, stiffness: 100 })
let display = useTransform(spring, (num) => num.toFixed(decimals))
useEffect(() => {
value.set(isInView ? end : start)
}, [start, end, isInView, value])
return <motion.span ref={ref}>{display}</motion.span>
}

View File

@@ -0,0 +1,59 @@
'use client'
import { clsx } from 'clsx'
import { motion } from 'framer-motion'
import { Subheading } from './text'
export function BentoCard({
dark = false,
className = '',
eyebrow,
title,
description,
graphic,
fade = [],
}: {
dark?: boolean
className?: string
eyebrow: React.ReactNode
title: React.ReactNode
description: React.ReactNode
graphic: React.ReactNode
fade?: ('top' | 'bottom')[]
}) {
return (
<motion.div
initial="idle"
whileHover="active"
variants={{ idle: {}, active: {} }}
data-dark={dark ? 'true' : undefined}
className={clsx(
className,
'group relative flex flex-col overflow-hidden rounded-lg',
'bg-white shadow-xs ring-1 ring-black/5',
'data-dark:bg-gray-800 data-dark:ring-white/15',
)}
>
<div className="relative h-80 shrink-0">
{graphic}
{fade.includes('top') && (
<div className="absolute inset-0 bg-linear-to-b from-white to-50% group-data-dark:from-gray-800 group-data-dark:from-[-25%]" />
)}
{fade.includes('bottom') && (
<div className="absolute inset-0 bg-linear-to-t from-white to-20% group-data-dark:from-gray-800 group-data-dark:from-[-25%]" />
)}
</div>
<div className="relative p-10">
<Subheading as="h3" dark={dark}>
{eyebrow}
</Subheading>
<p className="mt-1 text-2xl/8 font-medium tracking-tight text-gray-950 group-data-dark:text-white">
{title}
</p>
<p className="mt-2 max-w-[600px] text-sm/6 text-gray-600 group-data-dark:text-gray-400">
{description}
</p>
</div>
</motion.div>
)
}

46
src/components/button.tsx Normal file
View File

@@ -0,0 +1,46 @@
import * as Headless from '@headlessui/react'
import { clsx } from 'clsx'
import { Link } from './link'
const variants = {
primary: clsx(
'inline-flex items-center justify-center px-4 py-[calc(--spacing(2)-1px)]',
'rounded-full border border-transparent bg-gray-950 shadow-md',
'text-base font-medium whitespace-nowrap text-white',
'data-disabled:bg-gray-950 data-disabled:opacity-40 data-hover:bg-gray-800',
),
secondary: clsx(
'relative inline-flex items-center justify-center px-4 py-[calc(--spacing(2)-1px)]',
'rounded-full border border-transparent bg-white/15 shadow-md ring-1 ring-[#D15052]/15',
'after:absolute after:inset-0 after:rounded-full after:shadow-[inset_0_0_2px_1px_#ffffff4d]',
'text-base font-medium whitespace-nowrap text-gray-950',
'data-disabled:bg-white/15 data-disabled:opacity-40 data-hover:bg-white/20',
),
outline: clsx(
'inline-flex items-center justify-center px-2 py-[calc(--spacing(1.5)-1px)]',
'rounded-lg border border-transparent shadow-sm ring-1 ring-black/10',
'text-sm font-medium whitespace-nowrap text-gray-950',
'data-disabled:bg-transparent data-disabled:opacity-40 data-hover:bg-gray-50',
),
}
type ButtonProps = {
variant?: keyof typeof variants
} & (
| React.ComponentPropsWithoutRef<typeof Link>
| (Headless.ButtonProps & { href?: undefined })
)
export function Button({
variant = 'primary',
className,
...props
}: ButtonProps) {
className = clsx(className, variants[variant])
if (typeof props.href === 'undefined') {
return <Headless.Button {...props} className={className} />
}
return <Link {...props} className={className} />
}

View File

@@ -0,0 +1,554 @@
'use client'
import { Button } from '@/components/button'
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { Gradient, GradientBackground } from '@/components/gradient'
import { Link } from '@/components/link'
import { Mark } from '@/components/logo'
import { Navbar } from '@/components/navbar'
import { Heading, Lead, Subheading } from '@/components/text'
import { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/react'
import {
CheckIcon,
ChevronUpDownIcon,
MinusIcon,
} from '@heroicons/react/16/solid'
import { useSearchParams } from 'next/navigation'
import type React from 'react'
function DropLogo() {
return (
<div className="relative -mb-1 inline-flex items-center justify-center gap-x-1">
<svg
aria-hidden="true"
viewBox="0 0 418 42"
className="absolute inset-0 h-full w-full scale-75 fill-blue-300/30"
preserveAspectRatio="none"
>
<path d="M203.371.916c-26.013-2.078-76.686 1.963-124.73 9.946L67.3 12.749C35.421 18.062 18.2 21.766 6.004 25.934 1.244 27.561.828 27.778.874 28.61c.07 1.214.828 1.121 9.595-1.176 9.072-2.377 17.15-3.92 39.246-7.496C123.565 7.986 157.869 4.492 195.942 5.046c7.461.108 19.25 1.696 19.17 2.582-.107 1.183-7.874 4.31-25.75 10.366-21.992 7.45-35.43 12.534-36.701 13.884-2.173 2.308-.202 4.407 4.442 4.734 2.654.187 3.263.157 15.593-.78 35.401-2.686 57.944-3.488 88.365-3.143 46.327.526 75.721 2.23 130.788 7.584 19.787 1.924 20.814 1.98 24.557 1.332l.066-.011c1.201-.203 1.53-1.825.399-2.335-2.911-1.31-4.893-1.604-22.048-3.261-57.509-5.556-87.871-7.36-132.059-7.842-23.239-.254-33.617-.116-50.627.674-11.629.54-42.371 2.494-46.696 2.967-2.359.259 8.133-3.625 26.504-9.81 23.239-7.825 27.934-10.149 28.304-14.005.417-4.348-3.529-6-16.878-7.066Z" />
</svg>
<Mark aria-hidden="true" className="h-6" />
<span className="font-display text-xl font-bold text-blue-400 uppercase">
Drop
</span>
</div>
)
}
function GameVaultLogo() {
return (
<div className="inline-flex items-center gap-x-2 text-xl font-bold">
<img src="/icons/gamevault.png" alt="GameVault Logo" className="size-8" />
<span className="relative whitespace-nowrap text-purple-900">
<svg
aria-hidden="true"
viewBox="0 0 418 42"
className="absolute top-2/3 left-0 h-[0.58em] w-full fill-purple-900 opacity-30"
preserveAspectRatio="none"
>
<path d="M203.371.916c-26.013-2.078-76.686 1.963-124.73 9.946L67.3 12.749C35.421 18.062 18.2 21.766 6.004 25.934 1.244 27.561.828 27.778.874 28.61c.07 1.214.828 1.121 9.595-1.176 9.072-2.377 17.15-3.92 39.246-7.496C123.565 7.986 157.869 4.492 195.942 5.046c7.461.108 19.25 1.696 19.17 2.582-.107 1.183-7.874 4.31-25.75 10.366-21.992 7.45-35.43 12.534-36.701 13.884-2.173 2.308-.202 4.407 4.442 4.734 2.654.187 3.263.157 15.593-.78 35.401-2.686 57.944-3.488 88.365-3.143 46.327.526 75.721 2.23 130.788 7.584 19.787 1.924 20.814 1.98 24.557 1.332l.066-.011c1.201-.203 1.53-1.825.399-2.335-2.911-1.31-4.893-1.604-22.048-3.261-57.509-5.556-87.871-7.36-132.059-7.842-23.239-.254-33.617-.116-50.627.674-11.629.54-42.371 2.494-46.696 2.967-2.359.259 8.133-3.625 26.504-9.81 23.239-7.825 27.934-10.149 28.304-14.005.417-4.348-3.529-6-16.878-7.066Z"></path>
</svg>
<span className="relative">GameVault</span>
</span>
</div>
)
}
function GameVaultPlus() {
return (
<div className="inline-flex items-center gap-x-1 rounded-full bg-gray-100 px-2 py-1 text-xs">
<img
src="/icons/gamevault-plus.png"
alt="GameVault+ icon"
className="size-4"
/>
GameVault+
</div>
)
}
function ComingSoon() {
return (
<div className="inline-flex items-center gap-x-1 rounded-full bg-gray-100 px-2 py-1 text-xs">
coming soon&trade;
</div>
)
}
function RomMLogo() {
return (
<div className={'inline-flex items-center gap-x-2'}>
<img src="/icons/rommicon.svg" className="size-8" alt="RomM icon" />
<img src="/icons/rommmark.png" className="h-4" alt="RomM workmark" />
</div>
)
}
const projects: Array<{
name: string
slug: string
logo: () => React.JSX.Element
description: string
href: string
highlights: Array<{ description: string; disabled?: boolean; paid?: boolean }>
features: {
[key: string]: {
[key: string]: number | string | boolean | (() => React.JSX.Element)
}
}
}> = [
{
name: 'Drop OSS' as const,
slug: 'drop',
logo: DropLogo,
description: 'An open-source and free self-hosted Steam alternative.',
href: '/',
highlights: [
{ description: 'First-class Linux support' },
{ description: 'Game versioning' },
{ description: 'Multiple metadata sources' },
{ description: 'Cloud saves & playtime tracking', disabled: true },
{
description: 'Overlay network for Steam-like play together',
disabled: true,
},
],
features: {
Library: {
'Multiple libraries': true,
'Versioned layout': true,
'Non-versioned layout': true,
'Installer/setup games': true,
'Portable games': true,
'Archives support': '.zip',
},
Metadata: {
IGDB: true,
GiantBomb: true,
PCGamingWiki: true,
Manual: true,
},
Clients: {
Windows: true,
Linux: true,
macOS: true,
Android: ComingSoon,
},
Authentication: {
Simple: true,
SSO: true,
},
Cloud: {
'Cloud saves': ComingSoon,
'Steamworks-compatible networking': ComingSoon,
'Dedicated server discovery': ComingSoon,
},
'Client Features': {
'Proton compatible for Linux': true,
'Multi-server': ComingSoon,
'In-game overlay': ComingSoon,
},
Additional: {
'User collections': true,
'Server news': true,
},
},
},
{
name: 'GameVault' as const,
slug: 'gamevault',
logo: GameVaultLogo,
description:
'A source-available, mature Steam-like experience for your home server.',
href: 'https://gamevau.lt/',
highlights: [
{ description: 'Native Windows app' },
{ description: 'Published on Microsoft Store' },
{ description: 'Playtime tracking' },
{ description: 'Cloud saves', paid: true },
{ description: 'Third-party integrations', paid: true },
],
features: {
Library: {
'Multiple libraries': 'Using Docker volumes or symlinks',
'Automatic import': true,
'Non-versioned layout': true,
'Installer/setup games': true,
'Portable games': true,
'Archives support':
'.7z .xz .bz2 .gz .tar .zip .wim .ar .arj .cab .chm .cpio .cramfs .dmg .ext .fat .gpt .hfs .ihex .iso .lzh .lzma .mbr .msi .nsis .ntfs .qcow2 .rar .rpm .squashfs .udf .uefi .vdi .vhd .vmdk .wim .xar .z'
.split(' ')
.sort()
.join(' '),
},
Metadata: {
IGDB: true,
Manual: true,
},
Clients: {
Windows: true,
Linux: 'Possible, unsupported',
macOS: 'Possible, unsupported',
},
Authentication: {
Simple: true,
SSO: true,
},
Cloud: {
'Cloud saves': GameVaultPlus,
},
'Client Features': {
Theming: GameVaultPlus,
'Multi-profile usage': GameVaultPlus,
'Playnite integration': GameVaultPlus,
'Steam integration': GameVaultPlus,
'Discord integration': GameVaultPlus,
},
Additional: {
'Parental controls': true,
'Server news': true,
},
},
},
{
name: 'RomM' as const,
slug: 'romm',
logo: RomMLogo,
description:
'An open-source, self-hosted rom manager, with built-in large emulator support.',
href: 'https://romm.app/',
highlights: [
{ description: '400+ supported platforms' },
{ description: 'Web-based (EmulatorJS) emulation' },
{ description: 'Multiple metadata sources' },
{ description: 'Android app' },
{ description: 'Cloud sync', disabled: true },
],
features: {
Library: {
'Non-versioned layout': true,
},
Metadata: {
IGDB: true,
Hasheous: true,
SteamGridDB: true,
Retroachievements: true,
PlayMatch: true,
ScreenScraper: true,
LaunchBox: true,
},
Clients: {
Browser: true,
Android: true,
muOS: true,
},
Authentication: {
Simple: true,
SSO: true,
},
Cloud: {
'Cloud saves': ComingSoon,
},
},
},
]
function Header() {
return (
<Container className="mt-16">
<Heading as="h1" className="leading-12">
What&apos;s the{' '}
<span className="rounded-xl bg-zinc-900 px-3 py-2 font-mono text-zinc-300">
git&nbsp;diff
</span>
?
</Heading>
<Lead className="mt-6 max-w-3xl">
A breakdown between the different projects available to you, put
together by the Drop OSS project.
</Lead>
<Subheading className="mt-2">Last updated 02-09-2025</Subheading>
</Container>
)
}
function PricingCards() {
return (
<div className="relative py-24">
<Gradient className="absolute inset-x-2 top-48 bottom-0 rounded-4xl ring-1 ring-black/5 ring-inset" />
<Container className="relative">
<div className="grid grid-cols-1 gap-8 lg:grid-cols-3">
{projects.map((tier, tierIndex) => (
<PricingCard key={tierIndex} tier={tier} />
))}
</div>
</Container>
</div>
)
}
function PricingCard({ tier }: { tier: (typeof projects)[number] }) {
return (
<div className="-m-2 grid grid-cols-1 rounded-4xl shadow-[inset_0_0_2px_1px_#ffffff4d] ring-1 ring-black/5 max-lg:mx-auto max-lg:w-full max-lg:max-w-md">
<div className="grid grid-cols-1 rounded-4xl p-2 shadow-md shadow-black/5">
<div className="rounded-3xl bg-white p-10 pb-9 shadow-2xl ring-1 ring-black/5">
<div className="flex w-full items-center justify-center pb-8">
{tier.logo()}
</div>
<Subheading>{tier.name}</Subheading>
<p className="mt-2 text-sm/6 text-gray-950/75">{tier.description}</p>
<div className="mt-8">
<Button href={tier.href}>Learn more &rarr;</Button>
</div>
<div className="mt-8">
<h3 className="text-sm/6 font-medium text-gray-950">
Key features:
</h3>
<ul className="mt-3 space-y-3">
{tier.highlights.map((props, featureIndex) => (
<FeatureItem key={featureIndex} {...props} />
))}
</ul>
</div>
</div>
</div>
</div>
)
}
function PricingTable({
selectedTier: selectedProject,
}: {
selectedTier: (typeof projects)[number]
}) {
function onlyUnique<T>(value: T, index: number, array: Array<T>) {
return array.indexOf(value) === index
}
const sections = projects
.map((e) => Object.keys(e.features))
.flat()
.filter(onlyUnique)
const features: { [key: string]: string[] } = {}
for (const section of sections) {
const uniqueFeatures = projects
.filter((e) => e.features[section])
.map((e) => Object.keys(e.features[section]))
.flat()
.filter(onlyUnique)
features[section] = uniqueFeatures
}
return (
<Container className="py-24">
<table className="w-full text-left">
<caption className="sr-only">Pricing plan comparison</caption>
<colgroup>
<col className="w-3/5 sm:w-2/5" />
<col
data-selected={selectedProject === projects[0] ? true : undefined}
className="w-2/5 data-selected:table-column max-sm:hidden sm:w-1/5"
/>
<col
data-selected={selectedProject === projects[1] ? true : undefined}
className="w-2/5 data-selected:table-column max-sm:hidden sm:w-1/5"
/>
<col
data-selected={selectedProject === projects[2] ? true : undefined}
className="w-2/5 data-selected:table-column max-sm:hidden sm:w-1/5"
/>
</colgroup>
<thead>
<tr className="max-sm:hidden">
<td className="p-0" />
{projects.map((project) => (
<th
key={project.slug}
scope="col"
data-selected={selectedProject === project ? true : undefined}
className="p-0 data-selected:table-cell max-sm:hidden"
>
<Subheading as="div">{project.name}</Subheading>
</th>
))}
</tr>
<tr className="sm:hidden">
<td className="p-0">
<div className="relative inline-block">
<Menu>
<MenuButton className="flex items-center justify-between gap-2 font-medium">
{selectedProject.name}
<ChevronUpDownIcon className="size-4 fill-gray-900" />
</MenuButton>
<MenuItems
anchor="bottom start"
className="min-w-(--button-width) rounded-lg bg-white p-1 shadow-lg ring-1 ring-gray-200 [--anchor-gap:6px] [--anchor-offset:-4px] [--anchor-padding:10px]"
>
{projects.map((tier) => (
<MenuItem key={tier.slug}>
<Link
scroll={false}
href={`/comparison?tier=${tier.slug}`}
data-selected={
tier === selectedProject ? true : undefined
}
className="group flex items-center gap-2 rounded-md px-2 py-1 data-focus:bg-gray-200"
>
{tier.name}
<CheckIcon className="hidden size-4 group-data-selected:block" />
</Link>
</MenuItem>
))}
</MenuItems>
</Menu>
<div className="pointer-events-none absolute inset-y-0 right-0 flex items-center">
<ChevronUpDownIcon className="size-4 fill-gray-900" />
</div>
</div>
</td>
<td colSpan={3} className="p-0 text-right">
<Button variant="outline" href={selectedProject.href}>
Get started
</Button>
</td>
</tr>
<tr className="max-sm:hidden">
<th className="p-0" scope="row">
<span className="sr-only">Get started</span>
</th>
{projects.map((tier) => (
<td
key={tier.slug}
data-selected={selectedProject === tier ? true : undefined}
className="px-0 pt-4 pb-0 data-selected:table-cell max-sm:hidden"
>
<Button variant="outline" href={tier.href}>
Get started
</Button>
</td>
))}
</tr>
</thead>
{sections.map((section) => (
<tbody key={section} className="group">
<tr>
<th
scope="colgroup"
colSpan={4}
className="px-0 pt-10 pb-0 group-first-of-type:pt-5"
>
<div className="-mx-4 rounded-lg bg-gray-50 px-4 py-3 text-sm/6 font-semibold">
{section}
</div>
</th>
</tr>
{features[section].map((name) => (
<tr
key={name}
className="border-b border-gray-100 last:border-none"
>
<th
scope="row"
className="px-0 py-4 text-sm/6 font-normal text-gray-600"
>
{name}
</th>
{projects.map((project) => {
let value = project.features[section]?.[name]
return (
<td
key={project.slug}
data-selected={
selectedProject === project ? true : undefined
}
className="p-4 data-selected:table-cell max-sm:hidden"
>
{typeof value === 'function' ? (
<>{value()}</>
) : value === true ? (
<>
<CheckIcon className="size-4 fill-green-600" />
<span className="sr-only">
Included in {project.name}
</span>
</>
) : value === false || value === undefined ? (
<>
<MinusIcon className="size-4 fill-gray-400" />
<span className="sr-only">
Not included in {project.name}
</span>
</>
) : (
<div className="text-xs">{value}</div>
)}
</td>
)
})}
</tr>
))}
</tbody>
))}
</table>
</Container>
)
}
function FeatureItem({
description,
disabled = false,
paid = false,
}: {
description: string
disabled?: boolean
paid?: boolean
}) {
return (
<li
data-disabled={disabled ? true : undefined}
className="flex items-center gap-4 text-sm/6 text-gray-950/75 data-disabled:text-gray-950/25"
>
<span className="inline-flex h-6 items-center self-start">
<PlusIcon className="size-3.75 shrink-0 fill-gray-950/25" />
</span>
{disabled && <span className="sr-only">Coming soon:</span>}
{description}
{disabled && (
<span className="text-right text-xs text-blue-300">
coming soon&trade;
</span>
)}
{paid && <GameVaultPlus />}
</li>
)
}
function PlusIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
<svg viewBox="0 0 15 15" aria-hidden="true" {...props}>
<path clipRule="evenodd" d="M8 0H7v7H0v1h7v7h1V8h7V7H8V0z" />
</svg>
)
}
export default function Pricing() {
let params = useSearchParams()
let tier =
typeof params.get('tier') === 'string'
? projects.find(({ slug }) => slug === params.get('tier'))!
: projects[0]
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
</Container>
<Header />
<PricingCards />
<PricingTable selectedTier={tier} />
<Footer />
</main>
)
}

View File

@@ -0,0 +1,17 @@
import { clsx } from 'clsx'
export function Container({
className,
children,
id,
}: {
className?: string
children: React.ReactNode
id?: string
}) {
return (
<div className={clsx(className, 'px-6 lg:px-8')} id={id}>
<div className="mx-auto max-w-2xl lg:max-w-7xl">{children}</div>
</div>
)
}

View File

@@ -0,0 +1,9 @@
'use client'
import { MDXContent } from '@content-collections/mdx/react'
import type { Post } from 'content-collections'
import { useMDXComponents } from './mdx-components'
export default function Content({ content }: { content: Post }) {
return <MDXContent code={content.mdx} components={useMDXComponents()} />
}

View File

@@ -0,0 +1,302 @@
'use client'
import {
Label,
Listbox,
ListboxButton,
ListboxOption,
ListboxOptions,
} from '@headlessui/react'
import { CheckIcon, ChevronUpDownIcon } from '@heroicons/react/16/solid'
import { useState, type JSX } from 'react'
import { Button } from './button'
import { Container } from './container'
import { Heading } from './text'
import Link from 'next/link'
type Version = 'v0.2.0' | 'v0.3.0' | 'v0.3.1' | 'v0.3.2' | 'v0.3.3'
type Platforms = 'Windows' | 'Linux' | 'macOS'
type Arch = 'x86' | 'ARM'
const releasePages: { [key in Version]: string } = {
'v0.2.0': 'https://github.com/Drop-OSS/drop-app/releases/tag/v0.2.0-beta',
'v0.3.0': 'https://github.com/Drop-OSS/drop-app/releases/tag/v0.3.0',
'v0.3.1': 'https://github.com/Drop-OSS/drop-app/releases/tag/v0.3.1',
'v0.3.2': 'https://github.com/Drop-OSS/drop-app/releases/tag/v0.3.2',
'v0.3.3': 'https://github.com/Drop-OSS/drop-app/releases/tag/v0.3.3',
}
function WindowsIcon() {
return (
<svg
viewBox="0 0 20 20"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
className="size-12"
>
<g
id="Page-1"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
>
<g
id="Dribbble-Light-Preview"
transform="translate(-60.000000, -7439.000000)"
fill="currentColor"
>
<g id="icons" transform="translate(56.000000, 160.000000)">
<path
d="M13.1458647,7289.43426 C13.1508772,7291.43316 13.1568922,7294.82929 13.1619048,7297.46884 C16.7759398,7297.95757 20.3899749,7298.4613 23.997995,7299 C23.997995,7295.84873 24.002005,7292.71146 23.997995,7289.71311 C20.3809524,7289.71311 16.7649123,7289.43426 13.1458647,7289.43426 M4,7289.43526 L4,7296.22153 C6.72581454,7296.58933 9.45162907,7296.94113 12.1724311,7297.34291 C12.1774436,7294.71736 12.1704261,7292.0908 12.1704261,7289.46524 C9.44661654,7289.47024 6.72380952,7289.42627 4,7289.43526 M4,7281.84344 L4,7288.61071 C6.72581454,7288.61771 9.45162907,7288.57673 12.1774436,7288.57973 C12.1754386,7285.96017 12.1754386,7283.34361 12.1724311,7280.72405 C9.44461153,7281.06486 6.71679198,7281.42567 4,7281.84344 M24,7288.47179 C20.3879699,7288.48578 16.7759398,7288.54075 13.1619048,7288.55175 C13.1598997,7285.88921 13.1598997,7283.22967 13.1619048,7280.56914 C16.7689223,7280.01844 20.3839599,7279.50072 23.997995,7279 C24,7282.15826 23.997995,7285.31353 24,7288.47179"
id="windows-[#174]"
></path>
</g>
</g>
</g>
</svg>
)
}
function LinuxIcon() {
return (
<svg
fill="currentColor"
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 304.998 304.998"
className="size-12"
>
<g id="XMLID_91_">
<path
id="XMLID_92_"
d="M274.659,244.888c-8.944-3.663-12.77-8.524-12.4-15.777c0.381-8.466-4.422-14.667-6.703-17.117 c1.378-5.264,5.405-23.474,0.004-39.291c-5.804-16.93-23.524-42.787-41.808-68.204c-7.485-10.438-7.839-21.784-8.248-34.922 c-0.392-12.531-0.834-26.735-7.822-42.525C190.084,9.859,174.838,0,155.851,0c-11.295,0-22.889,3.53-31.811,9.684 c-18.27,12.609-15.855,40.1-14.257,58.291c0.219,2.491,0.425,4.844,0.545,6.853c1.064,17.816,0.096,27.206-1.17,30.06 c-0.819,1.865-4.851,7.173-9.118,12.793c-4.413,5.812-9.416,12.4-13.517,18.539c-4.893,7.387-8.843,18.678-12.663,29.597 c-2.795,7.99-5.435,15.537-8.005,20.047c-4.871,8.676-3.659,16.766-2.647,20.505c-1.844,1.281-4.508,3.803-6.757,8.557 c-2.718,5.8-8.233,8.917-19.701,11.122c-5.27,1.078-8.904,3.294-10.804,6.586c-2.765,4.791-1.259,10.811,0.115,14.925 c2.03,6.048,0.765,9.876-1.535,16.826c-0.53,1.604-1.131,3.42-1.74,5.423c-0.959,3.161-0.613,6.035,1.026,8.542 c4.331,6.621,16.969,8.956,29.979,10.492c7.768,0.922,16.27,4.029,24.493,7.035c8.057,2.944,16.388,5.989,23.961,6.913 c1.151,0.145,2.291,0.218,3.39,0.218c11.434,0,16.6-7.587,18.238-10.704c4.107-0.838,18.272-3.522,32.871-3.882 c14.576-0.416,28.679,2.462,32.674,3.357c1.256,2.404,4.567,7.895,9.845,10.724c2.901,1.586,6.938,2.495,11.073,2.495 c0.001,0,0,0,0.001,0c4.416,0,12.817-1.044,19.466-8.039c6.632-7.028,23.202-16,35.302-22.551c2.7-1.462,5.226-2.83,7.441-4.065 c6.797-3.768,10.506-9.152,10.175-14.771C282.445,250.905,279.356,246.811,274.659,244.888z M124.189,243.535 c-0.846-5.96-8.513-11.871-17.392-18.715c-7.26-5.597-15.489-11.94-17.756-17.312c-4.685-11.082-0.992-30.568,5.447-40.602 c3.182-5.024,5.781-12.643,8.295-20.011c2.714-7.956,5.521-16.182,8.66-19.783c4.971-5.622,9.565-16.561,10.379-25.182 c4.655,4.444,11.876,10.083,18.547,10.083c1.027,0,2.024-0.134,2.977-0.403c4.564-1.318,11.277-5.197,17.769-8.947 c5.597-3.234,12.499-7.222,15.096-7.585c4.453,6.394,30.328,63.655,32.972,82.044c2.092,14.55-0.118,26.578-1.229,31.289 c-0.894-0.122-1.96-0.221-3.08-0.221c-7.207,0-9.115,3.934-9.612,6.283c-1.278,6.103-1.413,25.618-1.427,30.003 c-2.606,3.311-15.785,18.903-34.706,21.706c-7.707,1.12-14.904,1.688-21.39,1.688c-5.544,0-9.082-0.428-10.551-0.651l-9.508-10.879 C121.429,254.489,125.177,250.583,124.189,243.535z M136.254,64.149c-0.297,0.128-0.589,0.265-0.876,0.411 c-0.029-0.644-0.096-1.297-0.199-1.952c-1.038-5.975-5-10.312-9.419-10.312c-0.327,0-0.656,0.025-1.017,0.08 c-2.629,0.438-4.691,2.413-5.821,5.213c0.991-6.144,4.472-10.693,8.602-10.693c4.85,0,8.947,6.536,8.947,14.272 C136.471,62.143,136.4,63.113,136.254,64.149z M173.94,68.756c0.444-1.414,0.684-2.944,0.684-4.532 c0-7.014-4.45-12.509-10.131-12.509c-5.552,0-10.069,5.611-10.069,12.509c0,0.47,0.023,0.941,0.067,1.411 c-0.294-0.113-0.581-0.223-0.861-0.329c-0.639-1.935-0.962-3.954-0.962-6.015c0-8.387,5.36-15.211,11.95-15.211 c6.589,0,11.95,6.824,11.95,15.211C176.568,62.78,175.605,66.11,173.94,68.756z M169.081,85.08 c-0.095,0.424-0.297,0.612-2.531,1.774c-1.128,0.587-2.532,1.318-4.289,2.388l-1.174,0.711c-4.718,2.86-15.765,9.559-18.764,9.952 c-2.037,0.274-3.297-0.516-6.13-2.441c-0.639-0.435-1.319-0.897-2.044-1.362c-5.107-3.351-8.392-7.042-8.763-8.485 c1.665-1.287,5.792-4.508,7.905-6.415c4.289-3.988,8.605-6.668,10.741-6.668c0.113,0,0.215,0.008,0.321,0.028 c2.51,0.443,8.701,2.914,13.223,4.718c2.09,0.834,3.895,1.554,5.165,2.01C166.742,82.664,168.828,84.422,169.081,85.08z M205.028,271.45c2.257-10.181,4.857-24.031,4.436-32.196c-0.097-1.855-0.261-3.874-0.42-5.826 c-0.297-3.65-0.738-9.075-0.283-10.684c0.09-0.042,0.19-0.078,0.301-0.109c0.019,4.668,1.033,13.979,8.479,17.226 c2.219,0.968,4.755,1.458,7.537,1.458c7.459,0,15.735-3.659,19.125-7.049c1.996-1.996,3.675-4.438,4.851-6.372 c0.257,0.753,0.415,1.737,0.332,3.005c-0.443,6.885,2.903,16.019,9.271,19.385l0.927,0.487c2.268,1.19,8.292,4.353,8.389,5.853 c-0.001,0.001-0.051,0.177-0.387,0.489c-1.509,1.379-6.82,4.091-11.956,6.714c-9.111,4.652-19.438,9.925-24.076,14.803 c-6.53,6.872-13.916,11.488-18.376,11.488c-0.537,0-1.026-0.068-1.461-0.206C206.873,288.406,202.886,281.417,205.028,271.45z M39.917,245.477c-0.494-2.312-0.884-4.137-0.465-5.905c0.304-1.31,6.771-2.714,9.533-3.313c3.883-0.843,7.899-1.714,10.525-3.308 c3.551-2.151,5.474-6.118,7.17-9.618c1.228-2.531,2.496-5.148,4.005-6.007c0.085-0.05,0.215-0.108,0.463-0.108 c2.827,0,8.759,5.943,12.177,11.262c0.867,1.341,2.473,4.028,4.331,7.139c5.557,9.298,13.166,22.033,17.14,26.301 c3.581,3.837,9.378,11.214,7.952,17.541c-1.044,4.909-6.602,8.901-7.913,9.784c-0.476,0.108-1.065,0.163-1.758,0.163 c-7.606,0-22.662-6.328-30.751-9.728l-1.197-0.503c-4.517-1.894-11.891-3.087-19.022-4.241c-5.674-0.919-13.444-2.176-14.732-3.312 c-1.044-1.171,0.167-4.978,1.235-8.337c0.769-2.414,1.563-4.91,1.998-7.523C41.225,251.596,40.499,248.203,39.917,245.477z"
/>
</g>
</svg>
)
}
function macOSIcon() {
return (
<svg
viewBox="-1.5 0 20 20"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
className="size-14"
>
<g
id="Page-1"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
>
<g
id="Dribbble-Light-Preview"
transform="translate(-102.000000, -7439.000000)"
fill="currentColor"
>
<g id="icons" transform="translate(56.000000, 160.000000)">
<path
d="M57.5708873,7282.19296 C58.2999598,7281.34797 58.7914012,7280.17098 58.6569121,7279 C57.6062792,7279.04 56.3352055,7279.67099 55.5818643,7280.51498 C54.905374,7281.26397 54.3148354,7282.46095 54.4735932,7283.60894 C55.6455696,7283.69593 56.8418148,7283.03894 57.5708873,7282.19296 M60.1989864,7289.62485 C60.2283111,7292.65181 62.9696641,7293.65879 63,7293.67179 C62.9777537,7293.74279 62.562152,7295.10677 61.5560117,7296.51675 C60.6853718,7297.73474 59.7823735,7298.94772 58.3596204,7298.97372 C56.9621472,7298.99872 56.5121648,7298.17973 54.9134635,7298.17973 C53.3157735,7298.17973 52.8162425,7298.94772 51.4935978,7298.99872 C50.1203933,7299.04772 49.0738052,7297.68074 48.197098,7296.46676 C46.4032359,7293.98379 45.0330649,7289.44985 46.8734421,7286.3899 C47.7875635,7284.87092 49.4206455,7283.90793 51.1942837,7283.88393 C52.5422083,7283.85893 53.8153044,7284.75292 54.6394294,7284.75292 C55.4635543,7284.75292 57.0106846,7283.67793 58.6366882,7283.83593 C59.3172232,7283.86293 61.2283842,7284.09893 62.4549652,7285.8199 C62.355868,7285.8789 60.1747177,7287.09489 60.1989864,7289.62485"
id="apple-[#173]"
></path>
</g>
</g>
</g>
</svg>
)
}
const downloads: {
[key in Platforms]: {
name: string
description: string
icon: () => JSX.Element
downloads: { [key in Version]: { [key in Arch]: string | undefined } }
}
} = {
Windows: {
name: 'Windows',
description:
'A setup executable to install the Drop Desktop Client on your Windows system.',
icon: WindowsIcon,
downloads: {
'v0.2.0': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.2.0-beta/Drop.Desktop.Client_0.2.0-beta_x64-setup.exe',
ARM: undefined,
},
'v0.3.0': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.0/Drop.Desktop.Client_0.3.0_x64-setup.exe',
ARM: undefined,
},
'v0.3.1': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.1/Drop.Desktop.Client_0.3.1_x64-setup.exe',
ARM: undefined,
},
'v0.3.2': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.2/Drop.Desktop.Client_0.3.2_x64-setup.exe',
ARM: undefined,
},
'v0.3.3': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_x64-setup.exe',
ARM: undefined,
},
},
},
Linux: {
name: 'Linux',
description:
'A .deb file that can be installed on Debian-based systems, or repackaged to another distro. Other Linux downloads are available on the GitHub releases page.',
icon: LinuxIcon,
downloads: {
'v0.2.0': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.2.0-beta/Drop.Desktop.Client_0.2.0-beta_amd64.deb',
ARM: undefined,
},
'v0.3.0': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.0/Drop.Desktop.Client_0.3.0_amd64.deb',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.0/Drop.Desktop.Client_0.3.0_arm64.deb',
},
'v0.3.1': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.1/Drop.Desktop.Client_0.3.1_amd64.deb',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.1/Drop.Desktop.Client_0.3.1_arm64.deb',
},
'v0.3.2': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.2/Drop.Desktop.Client_0.3.2_amd64.deb',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.2/Drop.Desktop.Client_0.3.2_arm64.deb',
},
'v0.3.3': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_amd64.deb',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_aarch64.dmg',
},
},
},
macOS: {
name: 'macOS',
description: 'A self-signed .dmg to install on your macOS system.',
icon: macOSIcon,
downloads: {
'v0.2.0': {
x86: undefined,
ARM: undefined,
},
'v0.3.0': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.0/Drop.Desktop.Client_0.3.0_x64.dmg',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.0/Drop.Desktop.Client_0.3.0_aarch64.dmg',
},
'v0.3.1': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.1/Drop.Desktop.Client_0.3.1_x64.dmg',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.1/Drop.Desktop.Client_0.3.1_aarch64.dmg',
},
'v0.3.2': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.2/Drop.Desktop.Client_0.3.2_x64.dmg',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.2/Drop.Desktop.Client_0.3.2_aarch64.dmg',
},
'v0.3.3': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_x64.dmg',
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_aarch64.dmg',
},
},
},
}
function DownloadCard({
version,
data,
}: {
version: Version
data: (typeof downloads)[Platforms]
}) {
return (
<div className="-m-2 grid grid-cols-1 rounded-4xl shadow-[inset_0_0_2px_1px_#ffffff4d] ring-1 ring-black/5 max-lg:mx-auto max-lg:w-full max-lg:max-w-md">
<div className="grid grid-cols-1 rounded-4xl p-2 shadow-md shadow-black/5">
<div className="flex h-full flex-col justify-between rounded-3xl bg-white p-10 pb-9 shadow-2xl ring-1 ring-black/5">
<div>
<div className="flex w-full items-center justify-center gap-x-4">
{data.icon()}
<Heading>{data.name}</Heading>
</div>
<p className="mt-3 text-sm/6 text-gray-950/75">
{data.description}
</p>
</div>
<div className="mt-8 flex w-full items-center justify-center gap-x-3">
{Object.entries(data.downloads[version])
.filter(([, link]) => link)
.map(([arch, link]) => (
<Button key={arch} href={link} variant="outline">
Download {arch} &rarr;
</Button>
))}
</div>
</div>
</div>
</div>
)
}
export default function DownloadCards() {
const [currentVersion, setCurrentVersion] = useState<Version>(
Object.keys(releasePages).at(-1)! as Version,
)
return (
<div className="relative py-24">
<Container>
<div className="flex flex-col items-center">
<Listbox value={currentVersion} onChange={setCurrentVersion}>
<Label className="block text-sm/6 font-medium text-gray-900">
Version
</Label>
<div className="relative mt-2">
<ListboxButton className="grid w-full min-w-[10rem] cursor-default grid-cols-1 rounded-md bg-white py-1.5 pr-2 pl-3 text-left text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-blue-600 sm:text-sm/6">
<span className="col-start-1 row-start-1 truncate pr-6">
{currentVersion}
</span>
<ChevronUpDownIcon
aria-hidden="true"
className="col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"
/>
</ListboxButton>
<ListboxOptions
transition
className="absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg outline-1 outline-black/5 data-leave:transition data-leave:duration-100 data-leave:ease-in data-closed:data-leave:opacity-0 sm:text-sm"
>
{Object.keys(releasePages).map((version) => (
<ListboxOption
key={version}
value={version}
className="group relative cursor-default py-2 pr-9 pl-3 text-gray-900 select-none data-focus:bg-blue-600 data-focus:text-white data-focus:outline-hidden"
>
<span className="block truncate font-normal group-data-selected:font-semibold">
{version}
</span>
<span className="absolute inset-y-0 right-0 flex items-center pr-4 text-blue-600 group-not-data-selected:hidden group-data-focus:text-white">
<CheckIcon aria-hidden="true" className="size-5" />
</span>
</ListboxOption>
))}
</ListboxOptions>
</div>
</Listbox>
</div>
<div className="mt-10 grid grid-cols-1 gap-8 lg:grid-cols-3">
{Object.entries(downloads).map(([platform, data]) => (
<DownloadCard key={platform} data={data} version={currentVersion} />
))}
</div>
<div className='mt-6 flex justify-center'>
<Link href={releasePages[currentVersion]} className='text-xs font-semibold text-gray-500 hover:text-gray-600 hover:underline'>
Open GitHub releases page &rarr;
</Link>
</div>
</Container>
</div>
)
}

211
src/components/footer.tsx Normal file
View File

@@ -0,0 +1,211 @@
import { PlusGrid, PlusGridItem, PlusGridRow } from '@/components/plus-grid'
import { allPosts } from 'content-collections'
import { Button } from './button'
import { Container } from './container'
import { Gradient } from './gradient'
import { Link } from './link'
import { Logo } from './logo'
import { Subheading } from './text'
function CallToAction() {
return (
<div className="relative pt-20 pb-16 text-center sm:py-24">
<hgroup>
<Subheading>Get started</Subheading>
<p className="mt-6 text-3xl font-medium tracking-tight text-gray-950 sm:text-5xl">
Ready to dive in?
</p>
</hgroup>
<p className="mx-auto mt-6 max-w-xs text-sm/6 text-gray-500">
Get started hosting Drop in 10 minutes or less, and explore all the
features it has to offer.
</p>
<div className="mt-6">
<Button
className="w-full sm:w-auto"
href="https://docs.droposs.org/docs/guides/quickstart"
>
Quickstart &rarr;
</Button>
</div>
</div>
)
}
function SitemapHeading({ children }: { children: React.ReactNode }) {
return <h3 className="text-sm/6 font-medium text-gray-950/50">{children}</h3>
}
function SitemapLinks({ children }: { children: React.ReactNode }) {
return <ul className="mt-6 space-y-4 text-sm/6">{children}</ul>
}
function SitemapLink(props: React.ComponentPropsWithoutRef<typeof Link>) {
return (
<li>
<Link
{...props}
className="font-medium text-gray-950 data-hover:text-gray-950/75"
/>
</li>
)
}
function Sitemap() {
const posts = allPosts.slice(0, 3)
return (
<>
<div>
<SitemapHeading>Project</SitemapHeading>
<SitemapLinks>
<SitemapLink href="/about">About</SitemapLink>
<SitemapLink href="/sponsors">Sponsors</SitemapLink>
</SitemapLinks>
</div>
<div>
<SitemapHeading>Documentation</SitemapHeading>
<SitemapLinks>
<SitemapLink href="https://docs.droposs.org/">
Self-hosters
</SitemapLink>
<SitemapLink href="https://developer.droposs.org/">
Developers
</SitemapLink>
</SitemapLinks>
</div>
<div>
<SitemapHeading>Support</SitemapHeading>
<SitemapLinks>
<SitemapLink href="https://discord.gg/ACq4qZp4a9">
Discord
</SitemapLink>
<SitemapLink href="https://github.com/orgs/Drop-OSS/discussions">
GitHub Discussions
</SitemapLink>
</SitemapLinks>
</div>
{
<div>
<SitemapHeading>News</SitemapHeading>
<SitemapLinks>
{posts.map((post) => (
<SitemapLink key={post._meta.path} href={post.url}>
{post.title}
</SitemapLink>
))}
</SitemapLinks>
</div>
}
</>
)
}
function SocialGithub(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
<svg
{...props}
viewBox="0 0 20 20"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
>
<g
id="Page-1"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
>
<g transform="translate(-140.000000, -7559.000000)" fill="#000000">
<g id="icons" transform="translate(56.000000, 160.000000)">
<path d="M94,7399 C99.523,7399 104,7403.59 104,7409.253 C104,7413.782 101.138,7417.624 97.167,7418.981 C96.66,7419.082 96.48,7418.762 96.48,7418.489 C96.48,7418.151 96.492,7417.047 96.492,7415.675 C96.492,7414.719 96.172,7414.095 95.813,7413.777 C98.04,7413.523 100.38,7412.656 100.38,7408.718 C100.38,7407.598 99.992,7406.684 99.35,7405.966 C99.454,7405.707 99.797,7404.664 99.252,7403.252 C99.252,7403.252 98.414,7402.977 96.505,7404.303 C95.706,7404.076 94.85,7403.962 94,7403.958 C93.15,7403.962 92.295,7404.076 91.497,7404.303 C89.586,7402.977 88.746,7403.252 88.746,7403.252 C88.203,7404.664 88.546,7405.707 88.649,7405.966 C88.01,7406.684 87.619,7407.598 87.619,7408.718 C87.619,7412.646 89.954,7413.526 92.175,7413.785 C91.889,7414.041 91.63,7414.493 91.54,7415.156 C90.97,7415.418 89.522,7415.871 88.63,7414.304 C88.63,7414.304 88.101,7413.319 87.097,7413.247 C87.097,7413.247 86.122,7413.234 87.029,7413.87 C87.029,7413.87 87.684,7414.185 88.139,7415.37 C88.139,7415.37 88.726,7417.2 91.508,7416.58 C91.513,7417.437 91.522,7418.245 91.522,7418.489 C91.522,7418.76 91.338,7419.077 90.839,7418.982 C86.865,7417.627 84,7413.783 84,7409.253 C84,7403.59 88.478,7399 94,7399"></path>
</g>
</g>
</g>
</svg>
)
}
function SocialDiscord(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
<svg
fill="currentColor"
viewBox="0 0 32 32"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M20.992 20.163c-1.511-0.099-2.699-1.349-2.699-2.877 0-0.051 0.001-0.102 0.004-0.153l-0 0.007c-0.003-0.048-0.005-0.104-0.005-0.161 0-1.525 1.19-2.771 2.692-2.862l0.008-0c1.509 0.082 2.701 1.325 2.701 2.847 0 0.062-0.002 0.123-0.006 0.184l0-0.008c0.003 0.050 0.005 0.109 0.005 0.168 0 1.523-1.191 2.768-2.693 2.854l-0.008 0zM11.026 20.163c-1.511-0.099-2.699-1.349-2.699-2.877 0-0.051 0.001-0.102 0.004-0.153l-0 0.007c-0.003-0.048-0.005-0.104-0.005-0.161 0-1.525 1.19-2.771 2.692-2.862l0.008-0c1.509 0.082 2.701 1.325 2.701 2.847 0 0.062-0.002 0.123-0.006 0.184l0-0.008c0.003 0.048 0.005 0.104 0.005 0.161 0 1.525-1.19 2.771-2.692 2.862l-0.008 0zM26.393 6.465c-1.763-0.832-3.811-1.49-5.955-1.871l-0.149-0.022c-0.005-0.001-0.011-0.002-0.017-0.002-0.035 0-0.065 0.019-0.081 0.047l-0 0c-0.234 0.411-0.488 0.924-0.717 1.45l-0.043 0.111c-1.030-0.165-2.218-0.259-3.428-0.259s-2.398 0.094-3.557 0.275l0.129-0.017c-0.27-0.63-0.528-1.142-0.813-1.638l0.041 0.077c-0.017-0.029-0.048-0.047-0.083-0.047-0.005 0-0.011 0-0.016 0.001l0.001-0c-2.293 0.403-4.342 1.060-6.256 1.957l0.151-0.064c-0.017 0.007-0.031 0.019-0.040 0.034l-0 0c-2.854 4.041-4.562 9.069-4.562 14.496 0 0.907 0.048 1.802 0.141 2.684l-0.009-0.11c0.003 0.029 0.018 0.053 0.039 0.070l0 0c2.14 1.601 4.628 2.891 7.313 3.738l0.176 0.048c0.008 0.003 0.018 0.004 0.028 0.004 0.032 0 0.060-0.015 0.077-0.038l0-0c0.535-0.72 1.044-1.536 1.485-2.392l0.047-0.1c0.006-0.012 0.010-0.027 0.010-0.043 0-0.041-0.026-0.075-0.062-0.089l-0.001-0c-0.912-0.352-1.683-0.727-2.417-1.157l0.077 0.042c-0.029-0.017-0.048-0.048-0.048-0.083 0-0.031 0.015-0.059 0.038-0.076l0-0c0.157-0.118 0.315-0.24 0.465-0.364 0.016-0.013 0.037-0.021 0.059-0.021 0.014 0 0.027 0.003 0.038 0.008l-0.001-0c2.208 1.061 4.8 1.681 7.536 1.681s5.329-0.62 7.643-1.727l-0.107 0.046c0.012-0.006 0.025-0.009 0.040-0.009 0.022 0 0.043 0.008 0.059 0.021l-0-0c0.15 0.124 0.307 0.248 0.466 0.365 0.023 0.018 0.038 0.046 0.038 0.077 0 0.035-0.019 0.065-0.046 0.082l-0 0c-0.661 0.395-1.432 0.769-2.235 1.078l-0.105 0.036c-0.036 0.014-0.062 0.049-0.062 0.089 0 0.016 0.004 0.031 0.011 0.044l-0-0.001c0.501 0.96 1.009 1.775 1.571 2.548l-0.040-0.057c0.017 0.024 0.046 0.040 0.077 0.040 0.010 0 0.020-0.002 0.029-0.004l-0.001 0c2.865-0.892 5.358-2.182 7.566-3.832l-0.065 0.047c0.022-0.016 0.036-0.041 0.039-0.069l0-0c0.087-0.784 0.136-1.694 0.136-2.615 0-5.415-1.712-10.43-4.623-14.534l0.052 0.078c-0.008-0.016-0.022-0.029-0.038-0.036l-0-0z" />
</svg>
)
}
function SocialLinks() {
return (
<>
<Link
href="https://github.com/Drop-OSS"
target="_blank"
aria-label="Check us out on GitHub"
className="text-gray-950 data-hover:text-gray-950/75"
>
<SocialGithub className="size-4" />
</Link>
<Link
href="https://discord.gg/ACq4qZp4a9"
target="_blank"
aria-label="Join our Discord server"
className="text-gray-950 data-hover:text-gray-950/75"
>
<SocialDiscord className="size-4" />
</Link>
</>
)
}
function Copyright() {
return (
<div className="text-xs text-gray-500">
&copy; {new Date().getFullYear()} Drop OSS. Licensed under AGPLv3 and
Tailwind UI Plus (where applicable).
</div>
)
}
export function Footer() {
return (
<footer>
<Gradient className="relative">
<div className="absolute inset-2 rounded-4xl bg-white/80" />
<Container>
<CallToAction />
<PlusGrid className="pb-16">
<PlusGridRow>
<div className="grid grid-cols-2 gap-y-10 pb-6 lg:grid-cols-6 lg:gap-8">
<div className="col-span-2 flex">
<PlusGridItem className="pt-6 lg:pb-6">
<Logo className="h-9" />
</PlusGridItem>
</div>
<div className="col-span-2 grid grid-cols-2 gap-x-8 gap-y-12 lg:col-span-4 lg:grid-cols-subgrid lg:pt-6">
<Sitemap />
</div>
</div>
</PlusGridRow>
<PlusGridRow className="flex justify-between">
<div>
<PlusGridItem className="py-3">
<Copyright />
</PlusGridItem>
</div>
<div className="flex">
<PlusGridItem className="flex items-center gap-8 py-3">
<SocialLinks />
</PlusGridItem>
</div>
</PlusGridRow>
</PlusGrid>
</Container>
</Gradient>
</footer>
)
}

View File

@@ -0,0 +1,147 @@
'use client'
import { Dialog, DialogBackdrop, DialogPanel } from '@headlessui/react'
import { XMarkIcon } from '@heroicons/react/24/solid'
import { useState } from 'react'
import { Container } from './container'
const files: Array<{
url: string
name: string
description: string
column?: number
}> = [
{
url: '/gallery/store.png',
name: 'Store',
description:
'A store page with ~20 games imported and slightly customised metadata.',
},
{
url: '/gallery/storepage.png',
name: 'Store page - Enshrouded',
description: 'An example store page of Enshrouded.',
},
{
url: '/gallery/storepagemobile.png',
name: 'Mobile store page - Enshrouded',
description: 'A mobile view of the example store page of Enshrouded',
},
{
url: '/gallery/developermobile.png',
name: 'Company page - Keen Games',
description:
'An example company page that lists their games. Can be filtered by developed or published.',
},
{
url: '/gallery/devices.png',
name: 'Devices page',
description: 'A list of authorised devices connected to your account.',
},
{
url: '/gallery/companyadmin.png',
name: 'Company - Admin Dashboard',
description:
'Page to edit and customise company metadata, and add/remove games to it.',
},
{
url: '/gallery/importgameadmin.png',
name: 'Import game - Admin Dashboard',
description:
'Importing a game with metadata from configured metadata providers.',
column: 0,
},
{
url: '/gallery/importversionadmin.png',
name: 'Import version - Admin Dashboard',
description:
'Importing an example version, with the auto-suggested executable name.',
column: 1,
},
]
export function Gallery() {
const [currentModal, setCurrentModal] = useState<string | undefined>()
function resetModal() {
setCurrentModal(undefined)
}
return (
<Container className="py-10">
<div
role="list"
className="grid grid-cols-1 gap-4 sm:grid-cols-3 md:grid-cols-4"
>
{[0, 1, 2, 3].map((index) => (
<div key={index} className="flex flex-col gap-y-4">
{files
.filter((v, i) =>
v.column !== undefined ? index == v.column : i % 4 == index,
)
.map((file) => (
<div key={file.url} className="relative w-full">
<div className="group overflow-hidden rounded-lg bg-gray-100 focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-blue-600">
<img
alt=""
src={file.url}
className="pointer-events-none aspect-10/7 aspect-auto rounded-lg object-cover outline -outline-offset-1 outline-black/5 group-hover:opacity-75"
/>
<button
type="button"
className="absolute inset-0 focus:outline-hidden"
onClick={() => setCurrentModal(file.url)}
>
<span className="sr-only">
View details for {file.name}
</span>
</button>
</div>
<p className="pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900">
{file.name}
</p>
<p className="pointer-events-none block text-xs font-medium text-gray-500">
{file.description}
</p>
</div>
))}
</div>
))}
</div>
<GalleryModal img={currentModal} close={resetModal} />
</Container>
)
}
export default function GalleryModal({
img,
close,
}: {
img?: string
close: () => void
}) {
return (
<Dialog open={!!img} onClose={close} className="relative z-10">
<DialogBackdrop
transition
className="fixed inset-0 bg-gray-500/75 transition-opacity data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in"
/>
<div className="fixed inset-0 z-10 h-screen w-screen">
<div className="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0">
<DialogPanel
transition
className="relative m-8 transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all data-closed:translate-y-4 data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in data-closed:sm:translate-y-0 data-closed:sm:scale-95"
>
<img src={img} alt="" className="max-h-[90vh] w-full" />
<button
className="absolute top-0 right-0 m-4 cursor-pointer rounded-xl bg-zinc-900 p-2 text-zinc-100 outline outline-zinc-700 hover:text-zinc-400"
onClick={close}
>
<XMarkIcon className="size-4" />
</button>
</DialogPanel>
</div>
</div>
</Dialog>
)
}

View File

@@ -0,0 +1,30 @@
import { clsx } from 'clsx'
export function Gradient({
className,
...props
}: React.ComponentPropsWithoutRef<'div'>) {
return (
<div
{...props}
className={clsx(
className,
'bg-linear-115 from-blue-100 from-28% via-sky-200 via-70% to-cyan-100 sm:bg-linear-145',
)}
/>
)
}
export function GradientBackground() {
return (
<div className="relative mx-auto max-w-7xl">
<div
className={clsx(
'absolute -top-44 -right-60 h-60 w-xl transform-gpu md:right-0',
'bg-linear-115 from-blue-200 from-28% via-sky-100 via-70% to-blue-200',
'rotate-[-10deg] rounded-full blur-3xl',
)}
/>
</div>
)
}

1050
src/components/keyboard.tsx Normal file

File diff suppressed because it is too large Load Diff

14
src/components/link.tsx Normal file
View File

@@ -0,0 +1,14 @@
import * as Headless from '@headlessui/react'
import NextLink, { type LinkProps } from 'next/link'
import { forwardRef } from 'react'
export const Link = forwardRef(function Link(
props: LinkProps & React.ComponentPropsWithoutRef<'a'>,
ref: React.ForwardedRef<HTMLAnchorElement>,
) {
return (
<Headless.DataInteractive>
<NextLink ref={ref} {...props} />
</Headless.DataInteractive>
)
})

View File

@@ -0,0 +1,93 @@
'use client'
import { CheckIcon } from '@heroicons/react/16/solid'
import { clsx } from 'clsx'
import { motion } from 'framer-motion'
const transition = {
duration: 0.75,
repeat: Infinity,
repeatDelay: 1.25,
}
function Rings() {
return (
<svg
viewBox="0 0 500 500"
fill="none"
className={clsx(
'col-start-1 row-start-1 size-full',
'mask-[linear-gradient(to_bottom,black_90%,transparent),radial-gradient(circle,rgba(0,0,0,1)_0%,rgba(0,0,0,0)_100%)] mask-intersect',
)}
>
{Array.from(Array(42).keys()).map((n) => (
<motion.circle
variants={{
idle: {
scale: 1,
strokeOpacity: 0.15,
},
active: {
scale: [1, 1.08, 1],
strokeOpacity: [0.15, 0.3, 0.15],
transition: { ...transition, delay: n * 0.05 },
},
}}
key={n}
cx="250"
cy="250"
r={n * 14 + 4}
className="stroke-white"
/>
))}
</svg>
)
}
function Checkmark() {
return (
<div className="z-10 col-start-1 row-start-1 flex items-center justify-center">
<motion.div
variants={{
idle: { scale: 1 },
active: {
scale: [1, 1.15, 1],
transition: { ...transition, duration: 0.75 },
},
}}
className="flex size-6 items-center justify-center rounded-full bg-linear-to-t from-green-500 to-green-300 shadow-sm"
>
<CheckIcon className="size-4 fill-white" />
</motion.div>
</div>
)
}
function Photos() {
return (
<div className="z-10 col-start-1 row-start-1">
<div className="mx-auto flex size-full max-w-md items-center justify-around">
<img
alt=""
src="/linked-avatars/customer.jpg"
className="size-20 rounded-full bg-white/15 ring-4 ring-white/10"
/>
<img
alt=""
src="/linked-avatars/manager.jpg"
className="size-20 rounded-full bg-white/15 ring-4 ring-white/10"
/>
</div>
</div>
)
}
export function LinkedAvatars() {
return (
<div aria-hidden="true" className="isolate mx-auto grid h-full grid-cols-1">
<Rings />
<Photos />
<Checkmark />
</div>
)
}

View File

@@ -0,0 +1,143 @@
'use client'
import { clsx } from 'clsx'
import { motion } from 'framer-motion'
import { Mark } from './logo'
function Circle({
size,
delay,
opacity,
}: {
size: number
delay: number
opacity: string
}) {
return (
<motion.div
variants={{
idle: { width: `${size}px`, height: `${size}px` },
active: {
width: [`${size}px`, `${size + 10}px`, `${size}px`],
height: [`${size}px`, `${size + 10}px`, `${size}px`],
transition: {
duration: 0.75,
repeat: Infinity,
repeatDelay: 1.25,
ease: 'easeInOut',
delay,
},
},
}}
style={{ '--opacity': opacity } as React.CSSProperties}
className={clsx(
'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full',
'bg-[radial-gradient(circle,transparent_25%,color-mix(in_srgb,var(--color-blue-500)_var(--opacity),transparent)_100%)]',
'ring-1 ring-blue-500/8 ring-inset',
)}
/>
)
}
function Circles() {
return (
<div className="absolute inset-0">
<Circle size={528} opacity="3%" delay={0.45} />
<Circle size={400} opacity="5%" delay={0.3} />
<Circle size={272} opacity="5%" delay={0.15} />
<Circle size={144} opacity="10%" delay={0} />
<div className="absolute inset-0 bg-linear-to-t from-white to-35%" />
</div>
)
}
function MainLogo() {
return (
<div className="absolute top-32 left-44 flex size-16 items-center justify-center rounded-full bg-white shadow-sm ring-1 ring-black/5">
<Mark className="h-9" />
</div>
)
}
function Logo({
src,
left,
top,
hover,
}: {
src: string
left: number
top: number
hover: { x: number; y: number; rotate: number; delay: number }
}) {
return (
<motion.img
variants={{
idle: { x: 0, y: 0, rotate: 0 },
active: {
x: [0, hover.x, 0],
y: [0, hover.y, 0],
rotate: [0, hover.rotate, 0],
transition: {
duration: 0.75,
repeat: Infinity,
repeatDelay: 1.25,
ease: 'easeInOut',
delay: hover.delay,
},
},
}}
alt=""
src={src}
style={{ left, top } as React.CSSProperties}
className="absolute size-16 rounded-full bg-white shadow-sm ring-1 ring-black/5"
/>
)
}
export function LogoCluster() {
return (
<div aria-hidden="true" className="relative h-full overflow-hidden">
<Circles />
<div className="absolute left-1/2 h-full w-104 -translate-x-1/2">
<MainLogo />
<Logo
src="/icons/igdb.svg"
left={96}
top={176}
hover={{ x: 6, y: 1, rotate: 5, delay: 0.38 }}
/>
<Logo
src="/icons/giantbomb.svg"
left={255}
top={210}
hover={{ x: 4, y: -5, rotate: 6, delay: 0.3 }}
/>
<Logo
src="/icons/pcgamingwiki.svg"
left={144}
top={40}
hover={{ x: 3, y: 5, rotate: 7, delay: 0.2 }}
/>
{/*<Logo
src="/logo-cluster/linkedin.svg"
left={285}
top={20}
hover={{ x: -2, y: -5, rotate: -6, delay: 0.15 }}
/>
<Logo
src="/logo-cluster/upwork.svg"
left={36}
top={56}
hover={{ x: -4, y: -5, rotate: -6, delay: 0.35 }}
/>
<Logo
src="/logo-cluster/we-work-remotely.svg"
left={360}
top={144}
hover={{ x: -3, y: 5, rotate: 3, delay: 0.15 }}
/> */}
</div>
</div>
)
}

View File

@@ -0,0 +1,130 @@
import { clsx } from 'clsx'
import { Mark } from './logo'
function Row({ children }: { children: React.ReactNode }) {
return (
<div className="group relative">
<div className="absolute inset-x-0 top-1/2 h-0.5 bg-linear-to-r from-white/15 from-[2px] to-[2px] bg-size-[12px_100%]" />
<div className="absolute inset-x-0 bottom-0 h-0.5 bg-linear-to-r from-white/5 from-[2px] to-[2px] bg-size-[12px_100%] group-last:hidden" />
{children}
</div>
)
}
function Logo({
label,
src,
className,
}: {
label: string
src: string
className: string
}) {
return (
<div
className={clsx(
className,
'absolute top-2 grid grid-cols-[1rem_1fr] items-center gap-2 px-3 py-1 whitespace-nowrap',
'rounded-full bg-linear-to-t from-gray-800 from-50% to-gray-700 ring-1 ring-white/10 ring-inset',
'[--move-x-from:-100%] [--move-x-to:calc(100%+100cqw)] [animation-iteration-count:infinite] [animation-name:move-x] [animation-play-state:paused] [animation-timing-function:linear] group-hover:[animation-play-state:running]',
)}
>
<img alt="" src={src} className="size-4" />
<span className="text-sm/6 font-medium text-white">{label}</span>
</div>
)
}
export function LogoTimeline() {
return (
<div aria-hidden="true" className="relative h-full overflow-hidden">
<div className="absolute inset-0 top-8 z-10 flex items-center justify-center">
<div
className="absolute inset-0 backdrop-blur-md"
style={{
maskImage: `url('data:image/svg+xml,<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="96" height="96" rx="12" fill="black"/></svg>')`,
maskPosition: 'center',
maskRepeat: 'no-repeat',
}}
/>
<div className="relative flex size-24 items-center justify-center rounded-xl bg-linear-to-t from-white/5 to-white/25 shadow-sm ring-1 ring-white/10 outline outline-offset-[-5px] outline-white/5 ring-inset">
<Mark className="h-9" />
</div>
</div>
<div className="@container absolute inset-0 grid grid-cols-1 pt-8">
<Row>
<Logo
label="Loom"
src="/logo-timeline/loom.svg"
className="[animation-delay:-26s] [animation-duration:30s]"
/>
<Logo
label="Gmail"
src="/logo-timeline/gmail.svg"
className="[animation-delay:-8s] [animation-duration:30s]"
/>
</Row>
<Row>
<Logo
label="Asana"
src="/logo-timeline/asana.svg"
className="[animation-delay:-40s] [animation-duration:40s]"
/>
<Logo
label="Microsoft Teams"
src="/logo-timeline/microsoft-teams.svg"
className="[animation-delay:-20s] [animation-duration:40s]"
/>
</Row>
<Row>
<Logo
label="Google Calendar"
src="/logo-timeline/google-calendar.svg"
className="[animation-delay:-10s] [animation-duration:40s]"
/>
<Logo
label="Google Drive"
src="/logo-timeline/google-drive.svg"
className="[animation-delay:-32s] [animation-duration:40s]"
/>
</Row>
<Row>
<Logo
label="Basecamp"
src="/logo-timeline/basecamp.svg"
className="[animation-delay:-45s] [animation-duration:45s]"
/>
<Logo
label="Discord"
src="/logo-timeline/discord.svg"
className="[animation-delay:-23s] [animation-duration:45s]"
/>
</Row>
<Row>
<Logo
label="Hubspot"
src="/logo-timeline/hubspot.svg"
className="[animation-delay:-55s] [animation-duration:60s]"
/>
<Logo
label="Slack"
src="/logo-timeline/slack.svg"
className="[animation-delay:-20s] [animation-duration:60s]"
/>
</Row>
<Row>
<Logo
label="Adobe Creative Cloud"
src="/logo-timeline/adobe-creative-cloud.svg"
className="[animation-delay:-9s] [animation-duration:40s]"
/>
<Logo
label="Zoom"
src="/logo-timeline/zoom.svg"
className="[animation-delay:-28s] [animation-duration:40s]"
/>
</Row>
</div>
</div>
)
}

36
src/components/logo.tsx Normal file
View File

@@ -0,0 +1,36 @@
export function Logo({ className }: { className?: string }) {
return (
<div className="inline-flex items-center gap-x-1 mt-1">
<svg
className={className}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4 13.5C4 11.0008 5.38798 8.76189 7.00766 7C8.43926 5.44272 10.0519 4.25811 11.0471 3.5959C11.6287 3.20893 12.3713 3.20893 12.9529 3.5959C13.9481 4.25811 15.5607 5.44272 16.9923 7C18.612 8.76189 20 11.0008 20 13.5C20 17.9183 16.4183 21.5 12 21.5C7.58172 21.5 4 17.9183 4 13.5Z"
stroke="#60a5fa"
strokeWidth="2"
/>
</svg>
<span className="text-lg font-semibold">Drop OSS</span>
</div>
)
}
export function Mark({ className }: { className?: string }) {
return (
<svg
className={className}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4 13.5C4 11.0008 5.38798 8.76189 7.00766 7C8.43926 5.44272 10.0519 4.25811 11.0471 3.5959C11.6287 3.20893 12.3713 3.20893 12.9529 3.5959C13.9481 4.25811 15.5607 5.44272 16.9923 7C18.612 8.76189 20 11.0008 20 13.5C20 17.9183 16.4183 21.5 12 21.5C7.58172 21.5 4 17.9183 4 13.5Z"
stroke="#60a5fa"
strokeWidth="2"
/>
</svg>
)
}

58
src/components/map.tsx Normal file
View File

@@ -0,0 +1,58 @@
'use client'
import { motion } from 'framer-motion'
function Marker({
src,
top,
offset,
delay,
}: {
src: string
top: number
offset: number
delay: number
}) {
return (
<motion.div
variants={{
idle: { scale: 0, opacity: 0, rotateX: 0, rotate: 0, y: 0 },
active: { y: [-20, 0, 4, 0], scale: [0.75, 1], opacity: [0, 1] },
}}
transition={{ duration: 0.25, delay, ease: 'easeOut' }}
style={{ '--offset': `${offset}px`, top } as React.CSSProperties}
className="absolute left-[calc(50%+var(--offset))] size-[38px] drop-shadow-[0_3px_1px_rgba(0,0,0,.15)]"
>
<svg fill="none" viewBox="0 0 38 38" className="absolute size-full">
<path
d="M29.607 5.193c5.858 5.857 5.858 15.355 0 21.213l-9.9 9.9-.707.706-.708-.708-9.899-9.898c-5.857-5.858-5.857-15.356 0-21.213 5.858-5.858 15.356-5.858 21.214 0Z"
className="fill-black/5"
/>
<path
d="m28.9 25.698-9.9 9.9-9.9-9.9C3.634 20.232 3.634 11.367 9.1 5.9 14.569.432 23.433.432 28.9 5.9c5.467 5.468 5.467 14.332 0 19.8Z"
className="fill-white"
/>
</svg>
<img
alt=""
src={src}
className="absolute top-[4px] left-[7px] size-6 rounded-full"
/>
</motion.div>
)
}
export function Map() {
return (
<div aria-hidden="true" className="relative size-full">
<div className="absolute inset-0 bg-[url(/map.png)] mask-[linear-gradient(to_bottom,black_50%,transparent)] bg-size-[530px_430px] bg-position-[center_-75px] bg-no-repeat" />
<div className="absolute inset-0">
<Marker src="/map/1.jpg" top={96} offset={-128} delay={0.15} />
<Marker src="/map/2.jpg" top={160} offset={-16} delay={0.4} />
<Marker src="/map/3.jpg" top={144} offset={96} delay={0.3} />
<Marker src="/map/4.jpg" top={192} offset={64} delay={0.6} />
<Marker src="/map/5.jpg" top={224} offset={-32} delay={0.8} />
</div>
</div>
)
}

View File

@@ -0,0 +1,73 @@
import type { MDXComponents } from 'mdx/types'
import Link from 'next/link'
const components: MDXComponents = {
p: ({ children }) => (
<p className="my-8 text-base/8 first:mt-0 last:mb-0">{children}</p>
),
h1: ({ children }) => (
<h2 className="mt-12 mb-10 text-4xl/8 font-medium tracking-tight text-gray-950 first:mt-0 last:mb-0">
{children}
</h2>
),
h2: ({ children }) => (
<h2 className="mt-12 mb-10 text-2xl/8 font-medium tracking-tight text-gray-950 first:mt-0 last:mb-0">
{children}
</h2>
),
h3: ({ children }) => (
<h3 className="mt-12 mb-10 text-xl/8 font-medium tracking-tight text-gray-950 first:mt-0 last:mb-0">
{children}
</h3>
),
blockquote: ({ children }) => (
<blockquote className="my-10 border-l-2 border-l-gray-300 pl-6 text-base/8 text-gray-950 first:mt-0 last:mb-0">
{children}
</blockquote>
),
image: (props) => (
// eslint-disable-next-line jsx-a11y/alt-text
<img
{...(props as { alt: string; src: string })}
className="w-full rounded-2xl"
/>
),
hr: () => <hr className="my-8 border-t border-gray-200" />,
strong: ({ children }) => (
<strong className="font-semibold text-gray-950">{children}</strong>
),
code: ({ children }) => (
<>
<code className="text-[15px]/8 font-semibold text-zinc-300 bg-zinc-800 p-4 rounded-xl w-full">
{children}
</code>
</>
),
ul: ({ children }) => (
<ul className="list-disc pl-4 text-base/8 marker:text-gray-400">
{children}
</ul>
),
ol: ({ children }) => (
<ol className="list-decimal pl-4 text-base/8 marker:text-gray-400">
{children}
</ol>
),
li: ({ children }) => {
return <li className="my-2 pl-2 has-[br]:mb-8">{children}</li>
},
a: (props) => {
return (
<Link
{...props}
className="font-medium text-blue-600 underline decoration-blue-400 underline-offset-4 data-hover:decoration-blue-600"
>
{props.children}
</Link>
)
},
}
export function useMDXComponents(): MDXComponents {
return components
}

104
src/components/navbar.tsx Normal file
View File

@@ -0,0 +1,104 @@
'use client'
import {
Disclosure,
DisclosureButton,
DisclosurePanel,
} from '@headlessui/react'
import { Bars2Icon } from '@heroicons/react/24/solid'
import { motion } from 'framer-motion'
import { Link } from './link'
import { Logo } from './logo'
import { PlusGrid, PlusGridItem, PlusGridRow } from './plus-grid'
const links = [
{ href: '/about', label: 'About' },
{ href: '/gallery', label: 'Gallery' },
{ href: '/comparison', label: 'Comparison' },
{ href: '/news', label: 'News' },
{ href: '/sponsors', label: 'Sponsors' },
{ href: '/download', label: 'Download' },
]
function DesktopNav() {
return (
<nav className="relative hidden lg:flex">
{links.map(({ href, label }) => (
<PlusGridItem key={href} className="relative flex">
<Link
href={href}
className="flex items-center px-4 py-3 text-base font-medium text-gray-950 bg-blend-multiply data-hover:bg-black/2.5"
>
{label}
</Link>
</PlusGridItem>
))}
</nav>
)
}
function MobileNavButton() {
return (
<DisclosureButton
className="flex size-12 items-center justify-center self-center rounded-lg data-hover:bg-black/5 lg:hidden"
aria-label="Open main menu"
>
<Bars2Icon className="size-6" />
</DisclosureButton>
)
}
function MobileNav() {
return (
<DisclosurePanel className="lg:hidden">
<div className="flex flex-col gap-6 py-4">
{links.map(({ href, label }, linkIndex) => (
<motion.div
initial={{ opacity: 0, rotateX: -90 }}
animate={{ opacity: 1, rotateX: 0 }}
transition={{
duration: 0.15,
ease: 'easeInOut',
rotateX: { duration: 0.3, delay: linkIndex * 0.1 },
}}
key={href}
>
<Link href={href} className="text-base font-medium text-gray-950">
{label}
</Link>
</motion.div>
))}
</div>
<div className="absolute left-1/2 w-screen -translate-x-1/2">
<div className="absolute inset-x-0 top-0 border-t border-black/5" />
<div className="absolute inset-x-0 top-2 border-t border-black/5" />
</div>
</DisclosurePanel>
)
}
export function Navbar({ banner }: { banner?: React.ReactNode }) {
return (
<Disclosure as="header" className="pt-12 sm:pt-16">
<PlusGrid>
<PlusGridRow className="relative flex justify-between">
<div className="relative flex gap-6">
<PlusGridItem className="py-3">
<Link href="/" title="Home">
<Logo className="h-9" />
</Link>
</PlusGridItem>
{banner && (
<div className="relative hidden items-center py-3 lg:flex">
{banner}
</div>
)}
</div>
<DesktopNav />
<MobileNavButton />
</PlusGridRow>
</PlusGrid>
<MobileNav />
</Disclosure>
)
}

231
src/components/news.tsx Normal file
View File

@@ -0,0 +1,231 @@
'use client'
import { Button } from '@/components/button'
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { GradientBackground } from '@/components/gradient'
import { Link } from '@/components/link'
import { Navbar } from '@/components/navbar'
import { fetchPostAuthors } from '@/components/post'
import { Heading, Lead, Subheading } from '@/components/text'
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/16/solid'
import { clsx } from 'clsx'
import { allPosts } from 'content-collections'
import dayjs from 'dayjs'
import { notFound, useSearchParams } from 'next/navigation'
const postsPerPage = 5
function FeaturedPosts() {
const featuredPosts = allPosts.slice(0, 3)
if (featuredPosts.length === 0) {
return
}
const postAuthors = fetchPostAuthors()
return (
<div className="mt-16 bg-linear-to-t from-gray-100 pb-14">
<Container>
<h2 className="text-2xl font-medium tracking-tight">Featured</h2>
<div className="mt-6 grid grid-cols-1 gap-8 lg:grid-cols-3">
{featuredPosts.map((post) => (
<div
key={post._meta.path}
className="relative flex flex-col rounded-3xl bg-white p-2 shadow-md ring-1 shadow-black/5 ring-black/5"
>
{post.image && (
<img
alt={post.title}
src={post.image}
className="aspect-3/2 w-full rounded-2xl object-cover"
/>
)}
<div className="flex flex-1 flex-col p-8">
<div className="text-sm/5 text-gray-700">
{dayjs(post.date).format('dddd, MMMM D, YYYY')}
</div>
<div className="mt-2 text-base/7 font-medium">
<Link href={post.url}>
<span className="absolute inset-0" />
{post.title}
</Link>
</div>
<div className="mt-2 flex-1 text-sm/6 text-gray-500">
{post.excerpt}
</div>
{postAuthors[post.author ?? ''] && (
<div className="mt-6 flex items-center gap-3">
<img
alt=""
src={postAuthors[post.author ?? ''].avatar}
className="aspect-square size-6 rounded-full object-cover"
/>
<div className="text-sm/5 text-gray-700">
{postAuthors[post.author ?? ''].name}
</div>
</div>
)}
</div>
</div>
))}
</div>
</Container>
</div>
)
}
function Posts({ page, category }: { page: number; category?: string }) {
let posts = allPosts.slice((page - 1) * postsPerPage, page * postsPerPage)
if (posts.length === 0 && (page > 1 || category)) {
notFound()
}
if (posts.length === 0) {
return <p className="mt-6 text-gray-500">No posts found.</p>
}
const postAuthors = fetchPostAuthors()
return (
<div className="mt-6">
{posts.map((post) => (
<div
key={post._meta.path}
className="relative grid grid-cols-1 border-b border-b-gray-100 py-10 first:border-t first:border-t-gray-200 max-sm:gap-3 sm:grid-cols-3"
>
<div>
<div className="text-sm/5 max-sm:text-gray-700 sm:font-medium">
{dayjs(post.date).format('dddd, MMMM D, YYYY')}
</div>
{postAuthors[post.author ?? ''] && (
<div className="mt-2.5 flex items-center gap-3">
{
<img
alt=""
src={postAuthors[post.author ?? ''].avatar}
className="aspect-square size-6 rounded-full object-cover"
/>
}
<div className="text-sm/5 text-gray-700">
{postAuthors[post.author ?? ''].name}
</div>
</div>
)}
</div>
<div className="sm:col-span-2 sm:max-w-2xl">
<h2 className="text-sm/5 font-medium">{post.title}</h2>
<p className="mt-3 text-sm/6 text-gray-500">{post.excerpt}</p>
<div className="mt-4">
<Link
href={post.url}
className="flex items-center gap-1 text-sm/5 font-medium"
>
<span className="absolute inset-0" />
Read more
<ChevronRightIcon className="size-4 fill-gray-400" />
</Link>
</div>
</div>
</div>
))}
</div>
)
}
function Pagination({
page,
category,
}: {
page: number
category?: string
}) {
function url(page: number) {
let params = new URLSearchParams()
if (category) params.set('category', category)
if (page > 1) params.set('page', page.toString())
return params.size !== 0 ? `/news?${params.toString()}` : '/news'
}
let totalPosts = allPosts.length
let hasPreviousPage = page - 1
let previousPageUrl = hasPreviousPage ? url(page - 1) : undefined
let hasNextPage = page * postsPerPage < totalPosts
let nextPageUrl = hasNextPage ? url(page + 1) : undefined
let pageCount = Math.ceil(totalPosts / postsPerPage)
if (pageCount < 2) {
return
}
return (
<div className="mt-6 flex items-center justify-between gap-2">
<Button
variant="outline"
href={previousPageUrl}
disabled={!previousPageUrl}
>
<ChevronLeftIcon className="size-4" />
Previous
</Button>
<div className="flex gap-2 max-sm:hidden">
{Array.from({ length: pageCount }, (_, i) => (
<Link
key={i + 1}
href={url(i + 1)}
data-active={i + 1 === page ? true : undefined}
className={clsx(
'size-7 rounded-lg text-center text-sm/7 font-medium',
'data-hover:bg-gray-100',
'data-active:shadow-sm data-active:ring-1 data-active:ring-black/10',
'data-active:data-hover:bg-gray-50',
)}
>
{i + 1}
</Link>
))}
</div>
<Button variant="outline" href={nextPageUrl} disabled={!nextPageUrl}>
Next
<ChevronRightIcon className="size-4" />
</Button>
</div>
)
}
export default function News() {
const paramsPage = useSearchParams().get('page');
let page =
paramsPage
? typeof paramsPage === 'string' && parseInt(paramsPage) > 1
? parseInt(paramsPage)
: notFound()
: 1
return (
<main className="overflow-hidden">
<GradientBackground />
<Container>
<Navbar />
<Subheading className="mt-16">News</Subheading>
<Heading as="h1" className="mt-2">
What&apos;s about to drop?
</Heading>
<Lead className="mt-6 max-w-3xl">
Check out what&apos;s new and what&apos;s upcoming in Drop through our
hand-written articles by the core team of Drop.
</Lead>
</Container>
{page === 1 && <FeaturedPosts />}
<Container className="pb-24">
<Posts page={page} />
<Pagination page={page} />
</Container>
<Footer />
</main>
)
}

View File

@@ -0,0 +1,94 @@
import { clsx } from 'clsx'
export function PlusGrid({
className = '',
children,
}: {
className?: string
children: React.ReactNode
}) {
return <div className={className}>{children}</div>
}
export function PlusGridRow({
className = '',
children,
}: {
className?: string
children: React.ReactNode
}) {
return (
<div
className={clsx(
className,
'group/row relative isolate pt-[calc(--spacing(2)+1px)] last:pb-[calc(--spacing(2)+1px)]',
)}
>
<div
aria-hidden="true"
className="absolute inset-y-0 left-1/2 -z-10 w-screen -translate-x-1/2"
>
<div className="absolute inset-x-0 top-0 border-t border-black/5"></div>
<div className="absolute inset-x-0 top-2 border-t border-black/5"></div>
<div className="absolute inset-x-0 bottom-0 hidden border-b border-black/5 group-last/row:block"></div>
<div className="absolute inset-x-0 bottom-2 hidden border-b border-black/5 group-last/row:block"></div>
</div>
{children}
</div>
)
}
export function PlusGridItem({
className = '',
children,
}: {
className?: string
children: React.ReactNode
}) {
return (
<div className={clsx(className, 'group/item relative')}>
<PlusGridIcon
placement="top left"
className="hidden group-first/item:block"
/>
<PlusGridIcon placement="top right" />
<PlusGridIcon
placement="bottom left"
className="hidden group-first/item:group-last/row:block"
/>
<PlusGridIcon
placement="bottom right"
className="hidden group-last/row:block"
/>
{children}
</div>
)
}
export function PlusGridIcon({
className = '',
placement,
}: {
className?: string
placement: `${'top' | 'bottom'} ${'right' | 'left'}`
}) {
let [yAxis, xAxis] = placement.split(' ')
let yClass = yAxis === 'top' ? '-top-2' : '-bottom-2'
let xClass = xAxis === 'left' ? '-left-2' : '-right-2'
return (
<svg
viewBox="0 0 15 15"
aria-hidden="true"
className={clsx(
className,
'absolute size-[15px] fill-black/10',
yClass,
xClass,
)}
>
<path d="M8 0H7V7H0V8H7V15H8V8H15V7H8V0Z" />
</svg>
)
}

Some files were not shown because too many files have changed in this diff Show More