1
mirror of https://github.com/xitanggg/open-resume synced 2024-11-03 09:19:21 +01:00

Create open-resume 1.0

This commit is contained in:
Xitang 2023-06-23 23:06:24 -07:00
parent b72e87c223
commit a9e3902a65
149 changed files with 17575 additions and 175 deletions

View File

@ -1,3 +1,6 @@
{
"extends": "next/core-web-vitals"
"extends": "next/core-web-vitals",
"rules": {
"react/no-unescaped-entities": "off"
}
}

2
.prettierignore Normal file
View File

@ -0,0 +1,2 @@
.next
public/fonts/fonts.css

661
LICENSE 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/>.

View File

@ -1,34 +1,61 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# OpenResume
## Getting Started
OpenResume is a powerful open-source resume builder and resume parser.
First, run the development server:
The goal of OpenResume is to provide everyone with free access to a modern professional resume design and enable anyone to apply for jobs with confidence.
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Official site: [https://open-resume.com](https://open-resume.com)
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## ⚒️ Resume Builder
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
OpenResume's resume builder allows user to create a modern professional resume easily.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
![Resume Builder Demo](https://i.ibb.co/TrB01tV/resume-builder-demo.gif)
## Learn More
It has 5 Core Features:
| <div style="width:285px">**Feature**</div> | **Description** |
|---|---|
| **1. Real Time UI Update** | The resume PDF is updated in real time as you enter your resume information, so you can easily see the final output. |
| **2. Modern Professional Resume Design** | The resume PDF is a modern professional design that adheres to U.S. best practices and is ATS friendly to top ATS platforms such as Greenhouse and Lever. It automatically formats fonts, sizes, margins, bullet points to ensure consistency and avoid human errors. |
| **3. Privacy Focus** | The app only runs locally on your browser, meaning no sign up is required and no data ever leaves your browser, so it gives you peace of mind on your personal data. (Fun fact: Running only locally means the app still works even if you disconnect the internet.) |
| **4. Import From Existing Resume PDF** | If you already have an existing resume PDF, you have the option to import it directly, so you can update your resume design to a modern professional design in literally a few seconds. |
| **5. Successful Track Record** | OpenResume users have landed interviews and offers from top companies, such as Dropbox, Google, Meta to name a few. It has been proven to work and liken by recruiters and hiring managers. |
To learn more about Next.js, take a look at the following resources:
## 🔍 Resume Parser
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
OpenResumes second component is the resume parser. For those who have an existing resume, the resume parser can help test and confirm its ATS readability.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
![Resume Parser Demo](https://i.ibb.co/GnbJGB5/resume-parser-demo.gif)
## Deploy on Vercel
You can learn more about the resume parser algorithm in the ["Resume Parser Algorithm Deep Dive" section](https://open-resume.com/resume-parser).
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
## 📚 Tech Stack
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
| <div style="width:140px">**Category**</div> | <div style="width:100px">**Choice**</div> | **Descriptions** |
|---|---|---|
| **Language** | [TypeScript](https://github.com/microsoft/TypeScript) | TypeScript is JavaScript with static type checking and helps catch many silly bugs at code time. |
| **UI Library** | [React](https://github.com/facebook/react) | Reacts declarative syntax and component-based architecture make it simple to develop reactive reusable components. |
| **State Management** | [Redux Toolkit](https://github.com/reduxjs/redux-toolkit) | Redux toolkit reduces the boilerplate to set up and update a central redux store, which is used in managing the complex resume state. |
| **CSS Framework** | [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) | Tailwind speeds up development by providing helpful css utilities and removing the need to context switch between tsx and css files. |
| **Web Framework** | [NextJS 13](https://github.com/vercel/next.js) | Next.js supports static site generation and helps build efficient React webpages that support SEO. |
| **PDF Reader** | [PDF.js](https://github.com/mozilla/pdf.js) | PDF.js reads content from PDF files and is used by the resume parser at its first step to read a resume PDFs content. |
| **PDF Renderer** | [React-pdf](https://github.com/diegomura/react-pdf) | React-pdf creates PDF files and is used by the resume builder to create a downloadable PDF file. |
## 📁 Project Structure
OpenResume is created with the NextJS web framework and follows its project structure. The source code can be found in `src/app`. There are a total of 4 page routes as shown in the table below. (Code path is relative to `src/app`)
| <div style="width:115px">**Page Route**</div> | **Code Path** | **Description** |
|---|---|---|
| / | /page.tsx | Home page that contains hero, auto typing resume, steps, testimonials, logo cloud, etc |
| /resume-import | /resume-import/page.tsx | Resume import page, where you can choose to import data from an existing resume PDF. The main component used is `ResumeDropzone` (`/components/ResumeDropzone.tsx`) |
| /resume-builder | /resume-builder/page.tsx | Resume builder page to build and download a resume PDF. The main components used are `ResumeForm` (`/components/ResumeForm`) and `Resume` (`/components/Resume`) |
| /resume-parser | /resume-parser/page.tsx | Resume parser page to test a resumes AST readability. The main library util used is `parseResumeFromPdf` (`/lib/parse-resume-from-pdf`) |
## 💻 Local Development
1. Download the repo `git clone https://github.com/xitanggg/open-resume.git`
2. Change the directory `cd open-resume`
3. Install the dependency `npm install`
4. Start a development server `npm run dev`
5. Open your browser and visit [http://localhost:3000](http://localhost:3000) to see OpenResume live

18
jest.config.mjs Normal file
View File

@ -0,0 +1,18 @@
import nextJest from "next/jest.js";
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: "./",
});
// Add any custom config to be passed to Jest
/** @type {import('jest').Config} */
const config = {
// Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testEnvironment: "jest-environment-jsdom",
};
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
export default createJestConfig(config);

View File

@ -1,4 +1,17 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
// Nextjs has an issue with pdfjs-dist which optionally uses the canvas package
// for Node.js compatibility. This causes a "Module parse failed" error when
// building the app. Since pdfjs-dist is only used on client side, we disable
// the canvas package for webpack
// https://github.com/mozilla/pdf.js/issues/16214
webpack: (config) => {
// Setting resolve.alias to false tells webpack to ignore a module
// https://webpack.js.org/configuration/resolve/#resolvealias
config.resolve.alias.canvas = false;
config.resolve.alias.encoding = false;
return config;
},
};
module.exports = nextConfig
module.exports = nextConfig;

8917
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,20 +6,40 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"test": "jest --watch",
"test:ci": "jest --ci"
},
"dependencies": {
"@heroicons/react": "^2.0.18",
"@react-pdf/renderer": "^3.1.10",
"@reduxjs/toolkit": "^1.9.5",
"@types/node": "20.2.5",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"@vercel/analytics": "^1.0.1",
"autoprefixer": "10.4.14",
"eslint": "8.41.0",
"eslint-config-next": "13.4.4",
"next": "13.4.4",
"pdfjs": "^2.5.0",
"pdfjs-dist": "^3.7.107",
"postcss": "8.4.24",
"react": "18.2.0",
"react-contenteditable": "^3.3.7",
"react-dom": "18.2.0",
"react-frame-component": "^5.2.6",
"react-redux": "^8.0.7",
"tailwind-scrollbar": "^3.0.4",
"tailwindcss": "3.3.2",
"typescript": "5.0.4"
},
"devDependencies": {
"@tailwindcss/aspect-ratio": "^0.4.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"prettier-plugin-tailwindcss": "^0.2.1"
}
}

4
prettier.config.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
// Repo: https://github.com/tailwindlabs/prettier-plugin-tailwindcss
plugins: [require("prettier-plugin-tailwindcss")],
};

1
prettierignore Normal file
View File

@ -0,0 +1 @@
public/fonts/fonts.css

14
public/assets/add-pdf.svg Normal file
View File

@ -0,0 +1,14 @@
<svg width="86" height="99" viewBox="0 0 86 99" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M61.9332 25.2996H13.8804V29.341H61.9332V25.2996Z" fill="#9ca3af"/>
<path d="M61.9332 31.8589H13.8804V35.9003H61.9332V31.8589Z" fill="#9ca3af"/>
<path d="M61.9332 38.4397H13.8804V42.4811H61.9332V38.4397Z" fill="#9ca3af"/>
<path d="M61.9332 44.9988H13.8804V49.0402H61.9332V44.9988Z" fill="#9ca3af"/>
<path d="M51.2266 51.5586H13.8804V55.6H51.2266V51.5586Z" fill="#9ca3af"/>
<path d="M70.2493 89.9624C70.2493 93.3056 67.5409 96.014 64.1977 96.014H11.5956C8.25241 96.014 5.54401 93.3056 5.54401 89.9624V89.4969C5.54401 88.7256 4.91877 88.1004 4.14749 88.1004V88.1004C3.37622 88.1004 2.75098 88.7256 2.75098 89.4969V90.9781C2.75098 95.3157 6.26343 98.807 10.5799 98.807H65.1922C69.5299 98.807 73.0212 95.2946 73.0212 90.9781V31.8965C73.0212 31.1252 72.3959 30.5 71.6246 30.5V30.5C70.8534 30.5 70.2281 31.1252 70.2281 31.8965V89.9624H70.2493Z" fill="#9ca3af"/>
<path d="M11.5954 9.02773C8.25224 9.02773 5.54385 11.7361 5.54385 15.0793H5.56501V60.8047C5.56501 61.5759 4.93976 62.2012 4.16849 62.2012C3.39721 62.2012 2.77197 61.5759 2.77197 60.8047V14.0848C2.77197 9.76831 6.26326 6.25586 10.6009 6.25586H50.5H55.164C55.9294 6.25586 56.5499 6.87636 56.5499 7.6418C56.5499 8.40723 55.9294 9.02773 55.164 9.02773H11.5954Z" fill="#9ca3af"/>
<path d="M61.5102 75.1722C61.5102 69.0995 56.5801 64.1482 50.4862 64.1482H0V86.1751H50.5074C56.5801 86.1751 61.5102 81.2449 61.5102 75.1722ZM21.9846 75.6589C21.117 76.4418 19.9321 76.8226 18.4086 76.8226H15.4252V82.0278H13.14V68.2743H18.4086C19.9321 68.2743 21.117 68.6763 21.9846 69.4592C22.8521 70.2421 23.2753 71.2789 23.2753 72.5485C23.2753 73.8392 22.8309 74.876 21.9846 75.6589ZM36.4787 76.209C36.4787 77.9229 35.9286 79.3194 34.8494 80.4197C33.7492 81.4989 32.3315 82.049 30.5964 82.049H26.0472V68.2954H30.5964C32.3315 68.2954 33.7492 68.8456 34.8494 69.9247C35.9497 71.0038 36.4787 72.4215 36.4787 74.1354V76.209ZM48.3914 70.1363H41.8743V74.347H47.4181V76.1879H41.8743V82.049H39.5891V68.2954H48.3914V70.1363Z" fill="#9ca3af"/>
<path d="M30.5752 70.1362H28.3323V80.2081H30.5752C31.6755 80.2081 32.543 79.8272 33.1989 79.0866C33.8549 78.3461 34.1723 77.3727 34.1723 76.209V74.093C34.1723 72.9293 33.8549 71.9771 33.1989 71.2365C32.5641 70.4959 31.6755 70.1362 30.5752 70.1362Z" fill="#9ca3af"/>
<path d="M18.4085 70.1362H15.425V74.9817H18.4085C19.2549 74.9817 19.8897 74.749 20.334 74.3046C20.7572 73.8603 20.9688 73.2678 20.9688 72.5696C20.9688 71.8713 20.7572 71.2788 20.334 70.8133C19.8897 70.369 19.2549 70.1362 18.4085 70.1362Z" fill="#9ca3af"/>
<path d="M72.8571 21C72.3049 21 71.8571 20.5523 71.8571 20V14.1429H66C65.4477 14.1429 65 13.6951 65 13.1429V12.8571C65 12.3049 65.4477 11.8571 66 11.8571H71.8571V6C71.8571 5.44771 72.3049 5 72.8571 5H73.1429C73.6951 5 74.1429 5.44772 74.1429 6V11.8571H80C80.5523 11.8571 81 12.3049 81 12.8571V13.1429C81 13.6951 80.5523 14.1429 80 14.1429H74.1429V20C74.1429 20.5523 73.6951 21 73.1429 21H72.8571Z" fill="#9ca3af"/>
<path d="M84.75 13C84.75 19.4893 79.4893 24.75 73 24.75C66.5107 24.75 61.25 19.4893 61.25 13C61.25 6.51065 66.5107 1.25 73 1.25C79.4893 1.25 84.75 6.51065 84.75 13Z" stroke="#9ca3af" stroke-width="2.5"/>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

11
public/assets/dots.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,34 @@
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_478_898)">
<path d="M46.5719 28.225L46.1406 28.6413C44.2009 30.5137 43.2028 33.157 43.4207 35.8441L43.4706 36.4593C43.5247 37.1229 43.1076 37.7302 42.4733 37.9157L41.9392 38.0707C39.334 38.8268 37.2088 40.7176 36.1549 43.2172L35.9289 43.7532C35.6695 44.366 35.0168 44.7148 34.3732 44.5764L33.8434 44.4671C31.1763 43.917 28.4036 44.6041 26.302 46.3358L25.879 46.6844C25.6233 46.8948 25.3125 47 24.9999 47C24.6873 47 24.3765 46.8948 24.1208 46.6844L23.6987 46.3365C21.5971 44.6044 18.8242 43.917 16.1569 44.467L15.6266 44.5764C14.9821 44.7167 14.3313 44.3651 14.0709 43.7532L13.8449 43.2172C12.791 40.7176 10.6658 38.8268 8.06058 38.0707L7.52655 37.9157C6.89403 37.7302 6.47601 37.1229 6.52918 36.4593L6.57907 35.8441C6.79701 33.157 5.79888 30.5137 3.85924 28.6413L3.42796 28.225C2.95035 27.7654 2.86235 27.0298 3.21528 26.4696L3.54046 25.9533C4.97634 23.6732 5.31509 20.8697 4.4636 18.3132L4.26858 17.7277C4.05957 17.0973 4.32175 16.4061 4.89285 16.0747L5.39802 15.7815C7.7343 14.4251 9.33773 12.0909 9.76558 9.42353L9.86141 8.82612C9.96683 8.169 10.5159 7.67893 11.175 7.65217L11.7188 7.6306C14.4355 7.52283 16.9579 6.19274 18.5814 4.01186L18.9185 3.55901C19.3163 3.02833 20.0304 2.85021 20.6254 3.13631L21.1109 3.36888C23.5692 4.54646 26.4288 4.54646 28.8871 3.36888L29.3726 3.13631C29.9648 2.84928 30.6826 3.02741 31.0786 3.55901L31.4166 4.01292C33.0401 6.19317 35.5621 7.52282 38.2783 7.63056L38.8229 7.65217C39.482 7.67893 40.0312 8.169 40.1393 8.8252L40.2351 9.42262C40.663 12.09 42.2664 14.4241 44.6027 15.7805L45.1079 16.0738C45.679 16.4052 45.9393 17.0964 45.7322 17.7268L45.5367 18.3138C44.686 20.8694 45.0247 23.6717 46.4596 25.9511L46.7854 26.4687C47.1375 27.0298 47.0495 27.7654 46.5719 28.225Z" stroke="url(#paint0_linear_478_898)" stroke-width="3" stroke-miterlimit="10" stroke-linecap="round"/>
<path d="M11 29.8556V20H17.5652V21.718H13.0964V24.0664H17.1294V25.7844H13.0964V29.8556H11Z" fill="url(#paint1_linear_478_898)"/>
<path d="M18.8167 29.8556V22.4639H20.8163V23.7536H20.8937C21.0293 23.2948 21.2569 22.9483 21.5764 22.7141C21.896 22.4767 22.2639 22.358 22.6803 22.358C22.7836 22.358 22.8949 22.3645 23.0144 22.3773C23.1338 22.3901 23.2387 22.4078 23.3291 22.4302V24.2493C23.2322 24.2204 23.0983 24.1947 22.9272 24.1723C22.7561 24.1498 22.5996 24.1386 22.4576 24.1386C22.1542 24.1386 21.883 24.2044 21.6442 24.3359C21.4086 24.4642 21.2214 24.6439 21.0826 24.8749C20.947 25.1059 20.8792 25.3722 20.8792 25.6737V29.8556H18.8167Z" fill="url(#paint2_linear_478_898)"/>
<path d="M27.4383 30C26.6734 30 26.0149 29.846 25.463 29.538C24.9143 29.2268 24.4914 28.7873 24.1945 28.2194C23.8975 27.6484 23.7491 26.9731 23.7491 26.1935C23.7491 25.4331 23.8975 24.7658 24.1945 24.1915C24.4914 23.6173 24.9094 23.1697 25.4485 22.8489C25.9907 22.5281 26.6266 22.3677 27.356 22.3677C27.8466 22.3677 28.3034 22.4463 28.7262 22.6035C29.1523 22.7575 29.5234 22.9901 29.8398 23.3013C30.1593 23.6124 30.4078 24.0039 30.5854 24.4755C30.7629 24.9439 30.8516 25.4925 30.8516 26.1213V26.6843H24.5721V25.4139H28.9102C28.9102 25.1187 28.8456 24.8572 28.7165 24.6295C28.5874 24.4017 28.4083 24.2236 28.1791 24.0953C27.9532 23.9637 27.6901 23.898 27.3899 23.898C27.0768 23.898 26.7992 23.9702 26.5572 24.1145C26.3183 24.2557 26.1311 24.4466 25.9955 24.6872C25.86 24.9246 25.7906 25.1893 25.7874 25.4812V26.6891C25.7874 27.0549 25.8551 27.3709 25.9907 27.6372C26.1295 27.9034 26.3248 28.1088 26.5765 28.2531C26.8283 28.3975 27.1269 28.4697 27.4722 28.4697C27.7014 28.4697 27.9112 28.4376 28.1016 28.3734C28.2921 28.3093 28.4551 28.213 28.5906 28.0847C28.7262 27.9564 28.8295 27.7992 28.9005 27.6131L30.8081 27.7382C30.7112 28.1938 30.5127 28.5916 30.2126 28.9317C29.9156 29.2685 29.5315 29.5316 29.0603 29.7209C28.5922 29.907 28.0516 30 27.4383 30Z" fill="url(#paint3_linear_478_898)"/>
<path d="M35.5867 30C34.8217 30 34.1633 29.846 33.6113 29.538C33.0626 29.2268 32.6398 28.7873 32.3428 28.2194C32.0459 27.6484 31.8974 26.9731 31.8974 26.1935C31.8974 25.4331 32.0459 24.7658 32.3428 24.1915C32.6398 23.6173 33.0578 23.1697 33.5968 22.8489C34.1391 22.5281 34.7749 22.3677 35.5044 22.3677C35.995 22.3677 36.4517 22.4463 36.8746 22.6035C37.3006 22.7575 37.6718 22.9901 37.9881 23.3013C38.3077 23.6124 38.5562 24.0039 38.7337 24.4755C38.9112 24.9439 39 25.4925 39 26.1213V26.6843H32.7205V25.4139H37.0585C37.0585 25.1187 36.994 24.8572 36.8649 24.6295C36.7358 24.4017 36.5566 24.2236 36.3275 24.0953C36.1015 23.9637 35.8385 23.898 35.5383 23.898C35.2252 23.898 34.9476 23.9702 34.7055 24.1145C34.4667 24.2557 34.2795 24.4466 34.1439 24.6872C34.0083 24.9246 33.9389 25.1893 33.9357 25.4812V26.6891C33.9357 27.0549 34.0035 27.3709 34.1391 27.6372C34.2779 27.9034 34.4731 28.1088 34.7249 28.2531C34.9767 28.3975 35.2752 28.4697 35.6206 28.4697C35.8498 28.4697 36.0596 28.4376 36.25 28.3734C36.4404 28.3093 36.6034 28.213 36.739 28.0847C36.8746 27.9564 36.9778 27.7992 37.0489 27.6131L38.9564 27.7382C38.8596 28.1938 38.6611 28.5916 38.3609 28.9317C38.064 29.2685 37.6799 29.5316 37.2086 29.7209C36.7406 29.907 36.2 30 35.5867 30Z" fill="url(#paint4_linear_478_898)"/>
</g>
<defs>
<linearGradient id="paint0_linear_478_898" x1="47" y1="3.00001" x2="-4.9371" y2="16.5283" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint1_linear_478_898" x1="39" y1="20" x2="15.9614" y2="36.8027" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint2_linear_478_898" x1="39" y1="20" x2="15.9614" y2="36.8027" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint3_linear_478_898" x1="39" y1="20" x2="15.9614" y2="36.8027" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint4_linear_478_898" x1="39" y1="20" x2="15.9614" y2="36.8027" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<clipPath id="clip0_478_898">
<rect width="50" height="50" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,19 @@
<svg width="51" height="50" viewBox="0 0 51 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M29.9118 25.1355C24.6 26.9939 24.6 21.817 22.5 21.1533M37.4471 29L37.3235 23.1444C37.3235 21.817 37.4471 21.286 36.7059 20.4895C40.1647 20.0913 43.5 18.6312 43.5 12.5251C43.4985 10.9388 42.9226 9.41535 41.8941 8.27734C42.3765 6.89944 42.3321 5.37247 41.7706 4.02962C41.7706 4.02962 40.4118 3.6314 37.4471 5.75526C34.936 5.05251 32.2993 5.05251 29.7882 5.75526C26.8235 3.6314 25.4647 4.02962 25.4647 4.02962C24.9032 5.37247 24.8588 6.89944 25.3412 8.27734C24.3127 9.41535 23.7368 10.9388 23.7353 12.5251C23.7353 18.6312 27.0706 20.0913 30.5294 20.4895C29.7882 21.286 29.7882 22.0824 29.9118 23.1444V27.7903" stroke="url(#paint0_linear_477_886)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M46.3486 34.7127L23.9019 44.1877C22.1906 44.9013 20.2802 44.8616 18.6484 44.0687L7.58426 38.5186L6.15149 41.3333L17.2555 46.8835C18.5688 47.5178 20.0016 47.8349 21.4344 47.8349C22.7079 47.8349 23.9815 47.5971 25.1357 47.0817L47.5824 37.6464C48.7764 37.131 49.6918 36.1796 50.1694 34.9902C50.647 33.7613 50.6072 32.453 50.05 31.2637C48.9754 28.9643 46.1497 27.894 43.7219 28.9247L42.3289 29.5194L35.5631 32.3737L36.7968 35.3074L43.5627 32.453L44.9557 31.8584C45.7915 31.5016 46.7864 31.8187 47.1446 32.6116C47.3436 33.008 47.3436 33.4441 47.1844 33.8406C47.0252 34.237 46.7466 34.5542 46.3486 34.7127Z" fill="url(#paint1_linear_477_886)"/>
<path d="M3.68393 32.3341L7.42506 29.2418C9.57421 27.6164 12.201 26.9028 14.8675 27.22C15.9421 27.3389 16.9371 27.6164 17.8922 28.0525L28.2002 32.6116C28.4788 32.7305 28.7176 32.9287 28.8768 33.2062C29.1554 33.6423 29.1952 34.1973 28.9962 34.7127C28.9166 34.8713 28.837 34.9902 28.7574 35.1091C28.2798 35.6245 27.5634 35.7831 26.9266 35.5056L18.9668 31.9773L17.6534 34.8713L25.6133 38.3996C26.2501 38.6771 26.9266 38.8357 27.5634 38.8357C28.9166 38.8357 30.1902 38.2807 31.1454 37.2103C31.4638 36.8535 31.7423 36.457 31.9413 36.021C32.5781 34.5541 32.4587 32.8891 31.6229 31.5412C31.1056 30.7483 30.3892 30.114 29.5534 29.7572L19.2056 25.1585C17.9718 24.6035 16.6187 24.2467 15.2655 24.0881C11.7632 23.6917 8.30064 24.6431 5.5147 26.7442L0.5 30.8276V48.2313H3.68393V32.3341Z" fill="url(#paint2_linear_477_886)"/>
<defs>
<linearGradient id="paint0_linear_477_886" x1="43.5" y1="4" x2="18.2393" y2="9.527" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint1_linear_477_886" x1="50.5" y1="28.5315" x2="9.3398" y2="53.1628" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint2_linear_477_886" x1="32.3465" y1="24" x2="-3.58438" y2="36.3004" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,14 @@
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.2 21.4914C5.7535 22.1833 4 24.0555 4 26.2543V42.9491C4 45.7389 6.8203 48 10.3 48C17.5723 48 32.4277 48 39.7 48C43.1797 48 46 45.7389 46 42.9491V26.2543C46 24.0555 44.2465 22.1833 41.8 21.4914V14.3999C41.8 6.99875 34.3177 1 25.0861 1H24.9139C15.6823 1 8.2 6.99875 8.2 14.3999V21.4914ZM39.7 24.5707C40.8592 24.5707 41.8 25.325 41.8 26.2543V42.9491C41.8 43.8785 40.8592 44.6328 39.7 44.6328H10.3C9.1408 44.6328 8.2 43.8785 8.2 42.9491V26.2543C8.2 25.325 9.1408 24.5707 10.3 24.5707H39.7ZM37.6 21.2035H12.4V14.3999C12.4 8.85915 18.0028 4.36724 24.9139 4.36724H25.0861C31.9972 4.36724 37.6 8.85915 37.6 14.3999V21.2035Z" fill="url(#paint0_linear_477_769)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.8959 37.6791V39.723C22.8959 40.6524 23.8367 41.4066 24.9959 41.4066C26.1551 41.4066 27.0959 40.6524 27.0959 39.723V37.6825C29.5445 36.9888 31.3001 35.1166 31.3001 32.9178C31.3001 30.1297 28.4777 27.8669 25.0001 27.8669C21.5225 27.8669 18.7001 30.1297 18.7001 32.9178C18.7001 35.1133 20.4515 36.9854 22.8959 37.6791V37.6791ZM25.0001 31.2342C26.1593 31.2342 27.1001 31.9885 27.1001 32.9178C27.1001 33.8472 26.1593 34.6014 25.0001 34.6014C23.8409 34.6014 22.9001 33.8472 22.9001 32.9178C22.9001 31.9885 23.8409 31.2342 25.0001 31.2342Z" fill="url(#paint1_linear_477_769)"/>
<defs>
<linearGradient id="paint0_linear_477_769" x1="46" y1="1.00001" x2="-4.21909" y2="12.6892" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint1_linear_477_769" x1="31.3001" y1="27.8669" x2="16.2995" y2="31.503" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,269 @@
<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M36.3201 31.833C36.264 31.833 36.2079 31.8238 36.1518 31.8044L33.8844 31.0157C33.6181 30.9228 33.4783 30.632 33.5701 30.3657C33.662 30.0993 33.9538 29.9595 34.2201 30.0514L36.4875 30.8402C36.7538 30.933 36.8936 31.2238 36.8018 31.4902C36.7283 31.7014 36.5314 31.833 36.3201 31.833Z" fill="url(#paint0_linear_477_778)"/>
<path d="M38.0599 27.9829C37.9762 27.9829 37.8925 27.9625 37.814 27.9196C37.567 27.7839 37.4772 27.4737 37.6129 27.2268L39.5109 23.7768L34.465 22.936L33.0548 25.6666C32.9252 25.9166 32.618 26.0135 32.367 25.886C32.117 25.7564 32.0191 25.4482 32.1476 25.1982L33.7293 22.137C33.8313 21.94 34.0487 21.8319 34.266 21.8676L40.3885 22.888C40.5517 22.9156 40.6915 23.0196 40.764 23.1686C40.8364 23.3176 40.8313 23.4921 40.7517 23.637L38.5068 27.7186C38.415 27.887 38.2405 27.9829 38.0599 27.9829Z" fill="url(#paint1_linear_477_778)"/>
<path d="M15.816 6.55431C15.5343 6.55431 15.3058 6.32574 15.3058 6.04411C15.3058 4.2339 13.5088 2.34411 12.7547 1.62982C12.0006 2.34411 10.2037 4.2339 10.2037 6.04411C10.2037 6.32574 9.97513 6.55431 9.69349 6.55431C9.41186 6.55431 9.18329 6.32574 9.18329 6.04411C9.18329 3.28594 12.2955 0.660434 12.4282 0.55023C12.618 0.393087 12.8925 0.393087 13.0823 0.55023C13.2139 0.660434 16.3262 3.28594 16.3262 6.04411C16.3262 6.32574 16.0976 6.55431 15.816 6.55431Z" fill="url(#paint2_linear_477_778)"/>
<path d="M10.7139 12.6767C10.4854 12.6767 10.2772 12.5227 10.2201 12.29L9.19964 8.20838C9.16087 8.05634 9.19556 7.8941 9.2925 7.77063C9.38842 7.64716 9.53638 7.57471 9.69352 7.57471H12.7548C14.1609 7.57471 15.3058 8.71961 15.3058 10.1257C15.3058 11.5319 14.1609 12.6767 12.7548 12.6767C12.4731 12.6767 12.2445 12.4482 12.2445 12.1665C12.2445 11.8849 12.4731 11.6563 12.7548 11.6563C13.5986 11.6563 14.2854 10.9696 14.2854 10.1257C14.2854 9.28185 13.5986 8.59512 12.7548 8.59512H10.3476L11.2088 12.0431C11.2772 12.3165 11.1109 12.5931 10.8374 12.6614C10.7966 12.6716 10.7547 12.6767 10.7139 12.6767Z" fill="url(#paint3_linear_477_778)"/>
<path d="M16.8364 8.59512H8.67311C8.39147 8.59512 8.1629 8.36654 8.1629 8.08491C8.1629 7.80328 8.39147 7.57471 8.67311 7.57471H16.8364C17.118 7.57471 17.3466 7.80328 17.3466 8.08491C17.3466 8.36654 17.118 8.59512 16.8364 8.59512Z" fill="url(#paint4_linear_477_778)"/>
<path d="M13.7751 20.8399C13.5302 20.8399 13.3139 20.6634 13.2721 20.4134L12.2782 14.4522L10.3527 12.5267C10.1537 12.3277 10.1537 12.0042 10.3527 11.8052C10.5516 11.6063 10.8751 11.6063 11.0741 11.8052L13.1149 13.8461C13.1904 13.9216 13.2404 14.0175 13.2578 14.1226L14.2782 20.245C14.3241 20.5226 14.1364 20.7859 13.8588 20.8318C13.8302 20.8379 13.8027 20.8399 13.7751 20.8399Z" fill="url(#paint5_linear_477_778)"/>
<path d="M16.1558 18.4596C15.9343 18.4596 15.7303 18.3136 15.666 18.0902L15.1792 16.3891C15.1017 16.1177 15.2588 15.8361 15.5292 15.7575C15.8007 15.6851 16.0823 15.8371 16.1609 16.1075L16.6476 17.8085C16.7252 18.08 16.568 18.3616 16.2976 18.4402C16.2496 18.4524 16.2027 18.4596 16.1558 18.4596Z" fill="url(#paint6_linear_477_778)"/>
<path d="M15.6691 16.7583C15.4476 16.7583 15.2435 16.6124 15.1793 16.3879L14.3048 13.3267C14.2537 13.1492 14.3037 12.9573 14.4344 12.8257L16.3262 10.9338V10.1257C16.3262 9.84405 16.5548 9.61548 16.8364 9.61548C17.118 9.61548 17.3466 9.84405 17.3466 10.1257V11.1461C17.3466 11.2818 17.2925 11.4114 17.1976 11.5073L15.3691 13.3359L16.1609 16.1083C16.2384 16.3798 16.0813 16.6614 15.8099 16.7389C15.7629 16.7522 15.716 16.7583 15.6691 16.7583Z" fill="url(#paint7_linear_477_778)"/>
<path d="M12.7547 21.8605H11.7343C11.4527 21.8605 11.2241 21.6319 11.2241 21.3503V18.2891C11.2241 18.1533 11.2782 18.0238 11.3731 17.9278L12.8313 16.4697C13.0302 16.2707 13.3537 16.2707 13.5527 16.4697C13.7517 16.6686 13.7517 16.9921 13.5527 17.1911L12.2445 18.5003V20.8401H12.5435L16.3262 17.0574V16.7584H15.816C15.5343 16.7584 15.3058 16.5299 15.3058 16.2482C15.3058 15.9666 15.5343 15.738 15.816 15.738H16.8364C17.118 15.738 17.3466 15.9666 17.3466 16.2482V17.2686C17.3466 17.4044 17.2925 17.534 17.1976 17.6299L13.116 21.7115C13.02 21.8064 12.8905 21.8605 12.7547 21.8605Z" fill="url(#paint8_linear_477_778)"/>
<path d="M13.7751 23.9013H12.7547C12.619 23.9013 12.4894 23.8472 12.3935 23.7523L11.3731 22.7319C11.2782 22.636 11.2241 22.5064 11.2241 22.3707V21.3503C11.2241 21.0687 11.4527 20.8401 11.7343 20.8401C12.016 20.8401 12.2445 21.0687 12.2445 21.3503V22.1595L12.966 22.8809H13.7751C14.0568 22.8809 14.2854 23.1095 14.2854 23.3911C14.2854 23.6727 14.0568 23.9013 13.7751 23.9013Z" fill="url(#paint9_linear_477_778)"/>
<path d="M17.6017 19.8198C17.5609 19.8198 17.5191 19.8146 17.4772 19.8044C17.2037 19.7361 17.0374 19.4595 17.1058 19.1861L17.315 18.3483L16.3793 16.4769C16.2527 16.2249 16.3558 15.9187 16.6078 15.7922C16.8599 15.6667 17.166 15.7687 17.2925 16.0208L18.3129 18.0616C18.367 18.1708 18.3813 18.2953 18.3517 18.4136L18.0966 19.434C18.0384 19.6657 17.8313 19.8198 17.6017 19.8198Z" fill="url(#paint10_linear_477_778)"/>
<path d="M31.1221 12.6769C30.9895 12.6769 30.8589 12.6249 30.7609 12.5279C27.8497 9.61567 26.6548 9.61567 24.9997 9.61567C23.3446 9.61567 22.1497 9.61567 19.2384 12.5279C19.0925 12.6749 18.8731 12.7177 18.6823 12.6381C18.4915 12.5595 18.367 12.3728 18.367 12.1667V10.1259C18.367 9.99016 18.4211 9.86057 18.516 9.76465C21.7272 6.55444 23.2435 6.55444 24.9997 6.55444C26.7558 6.55444 28.2721 6.55444 31.4834 9.76465C31.5783 9.86057 31.6324 9.99016 31.6324 10.1259V12.1667C31.6324 12.3728 31.5079 12.5595 31.317 12.6381C31.2538 12.6646 31.1875 12.6769 31.1221 12.6769ZM24.9997 8.59526C26.5885 8.59526 27.9823 8.59526 30.6119 10.9749V10.3381C27.8078 7.57485 26.6252 7.57485 24.9997 7.57485C23.3742 7.57485 22.1915 7.57485 19.3874 10.3381V10.9749C22.017 8.59526 23.4109 8.59526 24.9997 8.59526Z" fill="url(#paint11_linear_477_778)"/>
<path d="M26.0201 7.57474H23.9793C23.8293 7.57474 23.6864 7.50943 23.5905 7.39413C23.4936 7.27984 23.4517 7.12882 23.4762 6.98086L24.4966 0.858416C24.5374 0.612497 24.7497 0.431885 24.9997 0.431885C25.2497 0.431885 25.4619 0.612497 25.5028 0.858416L26.5232 6.98086C26.5477 7.12882 26.5058 7.27984 26.4089 7.39413C26.313 7.50943 26.1701 7.57474 26.0201 7.57474ZM24.5813 6.55433H25.417L24.9997 4.04617L24.5813 6.55433Z" fill="url(#paint12_linear_477_778)"/>
<path d="M30.1017 9.61544C30.0231 9.61544 29.9456 9.59708 29.8731 9.56136L29.7191 9.48381C29.6813 9.46442 29.6456 9.44096 29.6129 9.4134C29.0242 8.90422 28.5027 8.52157 28.0191 8.24402C27.8915 8.17157 27.8027 8.0481 27.7731 7.90422C27.7435 7.76034 27.7772 7.61136 27.865 7.49504L30.714 3.69708C30.8568 3.50524 31.1129 3.43994 31.3303 3.53687C31.5476 3.63381 31.6691 3.86953 31.6221 4.1032L30.6017 9.20524C30.5711 9.36136 30.4691 9.49402 30.3252 9.5634C30.2548 9.5981 30.1782 9.61544 30.1017 9.61544ZM29.015 7.6634C29.2548 7.82361 29.5027 8.00524 29.7599 8.21034L30.1803 6.10932L29.015 7.6634Z" fill="url(#paint13_linear_477_778)"/>
<path d="M19.8976 9.61544C19.8211 9.61544 19.7445 9.5981 19.6731 9.5634C19.5303 9.49402 19.4282 9.36136 19.3966 9.20524L18.3762 4.1032C18.3292 3.86953 18.4507 3.63483 18.668 3.53687C18.8854 3.43994 19.1415 3.50524 19.2854 3.69708L22.1343 7.49606C22.2221 7.61238 22.2558 7.76136 22.2262 7.90524C22.1966 8.0481 22.1068 8.17259 21.9803 8.24504C21.4956 8.52259 20.9752 8.90524 20.3854 9.41443C20.3527 9.44198 20.318 9.46544 20.2792 9.48483L20.1252 9.56238C20.0537 9.59708 19.9762 9.61544 19.8976 9.61544ZM19.818 6.1083L20.2384 8.20932C20.4966 8.00524 20.7445 7.82361 20.9843 7.66238L19.818 6.1083Z" fill="url(#paint14_linear_477_778)"/>
<path d="M18.8772 15.7379H17.8568C17.5751 15.7379 17.3466 15.5093 17.3466 15.2277C17.3466 14.9461 17.5751 14.7175 17.8568 14.7175H18.8772C22.5864 14.7175 24.5241 10.9553 24.5435 10.9175C24.67 10.6655 24.9762 10.5634 25.2282 10.691C25.4803 10.8175 25.5823 11.1226 25.4558 11.3746C25.367 11.5522 23.2241 15.7379 18.8772 15.7379Z" fill="url(#paint15_linear_477_778)"/>
<path d="M24.9997 19.8195C22.468 19.8195 20.4078 17.7593 20.4078 15.2277V14.8634C20.4078 14.6501 20.5415 14.4583 20.7425 14.3848C23.2323 13.4706 24.5313 10.942 24.5446 10.9175C24.6181 10.7716 24.7578 10.6695 24.9191 10.643C25.0793 10.6175 25.2456 10.6706 25.3609 10.7848C25.3793 10.8042 27.2793 12.6767 29.0813 12.6767C29.363 12.6767 29.5915 12.9053 29.5915 13.1869V15.2277C29.5915 17.7593 27.5313 19.8195 24.9997 19.8195ZM21.4282 15.2093V15.2277C21.4282 17.1971 23.0303 18.7991 24.9997 18.7991C26.9691 18.7991 28.5711 17.1971 28.5711 15.2277V13.6614C27.1374 13.4675 25.8099 12.5144 25.1242 11.942C24.5772 12.794 23.3548 14.3808 21.4282 15.2093Z" fill="url(#paint16_linear_477_778)"/>
<path d="M20.918 19.8198C20.7874 19.8198 20.6568 19.7698 20.5568 19.6708C18.3915 17.5045 18.367 12.383 18.367 12.1667C18.367 11.8851 18.5956 11.6565 18.8772 11.6565C19.1588 11.6565 19.3874 11.8851 19.3874 12.1667C19.3874 12.2157 19.4119 17.082 21.2793 18.9483C21.4782 19.1473 21.4782 19.4708 21.2793 19.6698C21.1793 19.7698 21.0486 19.8198 20.918 19.8198Z" fill="url(#paint17_linear_477_778)"/>
<path d="M29.0813 19.8197C28.9507 19.8197 28.8201 19.7697 28.7201 19.6707C28.5211 19.4718 28.5211 19.1483 28.7201 18.9493C29.3793 18.2901 29.8823 17.1799 30.2181 15.6462C30.2783 15.3697 30.5477 15.1952 30.8252 15.2575C31.1007 15.3177 31.2742 15.5891 31.214 15.8646C30.8364 17.5911 30.2395 18.8728 29.4405 19.6707C29.3425 19.7697 29.2119 19.8197 29.0813 19.8197Z" fill="url(#paint18_linear_477_778)"/>
<path d="M30.9915 14.6085C30.9711 14.6085 30.9517 14.6075 30.9313 14.6055C30.6517 14.5728 30.4517 14.3187 30.4844 14.0391C30.6099 12.9728 30.6119 12.1749 30.6119 12.1667C30.6119 11.8851 30.8405 11.6565 31.1221 11.6565C31.4038 11.6565 31.6324 11.8851 31.6324 12.1667C31.6324 12.2014 31.6313 13.0279 31.4977 14.1575C31.467 14.4177 31.2466 14.6085 30.9915 14.6085Z" fill="url(#paint19_linear_477_778)"/>
<path d="M29.5915 16.7584H28.9364C28.7782 16.7584 28.6293 16.6849 28.5323 16.5604C28.4354 16.4359 28.4027 16.2727 28.4425 16.1196C28.5303 15.7839 28.5711 15.5002 28.5711 15.2278V13.187C28.5711 12.9053 28.7997 12.6768 29.0813 12.6768H29.5915C30.717 12.6768 31.6323 13.5921 31.6323 14.7176C31.6323 15.8431 30.717 16.7584 29.5915 16.7584ZM29.5578 15.738H29.5915C30.1538 15.738 30.6119 15.2798 30.6119 14.7176C30.6119 14.1553 30.1538 13.6972 29.5915 13.6972V15.2278C29.5915 15.3951 29.5803 15.5635 29.5578 15.738Z" fill="url(#paint20_linear_477_778)"/>
<path d="M24.9997 22.8809C23.5936 22.8809 22.4487 21.736 22.4487 20.3299V18.7432C22.4487 18.5605 22.5466 18.3921 22.7048 18.3003C22.864 18.2095 23.0589 18.2105 23.215 18.3013C24.3466 18.9605 25.6517 18.9605 26.7834 18.3013C26.9405 18.2095 27.1354 18.2085 27.2936 18.3003C27.4517 18.3921 27.5497 18.5595 27.5497 18.7432V20.3299C27.5497 20.6115 27.3211 20.8401 27.0395 20.8401C26.7579 20.8401 26.5293 20.6115 26.5293 20.3299V19.5462C25.5405 19.9085 24.4568 19.9085 23.4681 19.5462V20.3299C23.4681 21.1738 24.1548 21.8605 24.9987 21.8605C25.1048 21.8605 25.2089 21.8493 25.3079 21.8289C25.5885 21.7779 25.8538 21.9523 25.9099 22.2279C25.966 22.5044 25.7875 22.7738 25.5109 22.8299C25.3466 22.8625 25.1752 22.8809 24.9997 22.8809Z" fill="url(#paint21_linear_477_778)"/>
<path d="M17.8568 18.7993C17.666 18.7993 17.4833 18.6921 17.3956 18.5085C17.2742 18.2533 17.3823 17.9493 17.6374 17.8278L19.5384 16.9227C19.7935 16.8023 20.0966 16.9105 20.2191 17.1646C20.3405 17.4197 20.2323 17.7238 19.9772 17.8452L18.0762 18.7503C18.0058 18.7829 17.9303 18.7993 17.8568 18.7993Z" fill="url(#paint22_linear_477_778)"/>
<path d="M16.6823 29.5911C16.4721 29.5911 16.2761 29.4605 16.2017 29.2513L15.268 26.6227C15.1741 26.3574 15.3119 26.0656 15.5782 25.9707C15.8415 25.8758 16.1353 26.0156 16.2302 26.2809L17.1639 28.9094C17.2578 29.1748 17.12 29.4666 16.8537 29.5615C16.7966 29.5809 16.7394 29.5911 16.6823 29.5911Z" fill="url(#paint23_linear_477_778)"/>
<path d="M39.2855 32.0644H37.2446C35.8385 32.0644 34.6936 30.9195 34.6936 29.5134C34.6936 28.1073 35.8385 26.9624 37.2446 26.9624H39.2855C39.5671 26.9624 39.7957 27.191 39.7957 27.4726V31.5542C39.7957 31.8359 39.5671 32.0644 39.2855 32.0644ZM37.2446 27.9828C36.4008 27.9828 35.714 28.6695 35.714 29.5134C35.714 30.3573 36.4008 31.044 37.2446 31.044H38.7752V27.9828H37.2446Z" fill="url(#paint24_linear_477_778)"/>
<path d="M14.7956 33.0849C14.7435 33.0849 14.6915 33.0767 14.6415 33.0614C14.5099 33.0196 14.4007 32.9267 14.3395 32.8032L13.319 30.7624C13.2374 30.5981 13.2497 30.4032 13.3507 30.2512L14.7109 28.2104C14.867 27.9767 15.1823 27.9124 15.418 28.0685C15.6527 28.2247 15.716 28.542 15.5599 28.7757L14.3639 30.5706L15.017 31.8757L27.6773 25.0583L29.6456 21.1216C29.7722 20.8696 30.0773 20.7675 30.3303 20.893C30.5824 21.0196 30.6844 21.3257 30.5589 21.5777L28.5181 25.6594C28.4711 25.7532 28.3956 25.8308 28.3038 25.8808L15.0384 33.0236C14.9629 33.0645 14.8793 33.0849 14.7956 33.0849Z" fill="url(#paint25_linear_477_778)"/>
<path d="M26.0201 24.9216C25.8895 24.9216 25.7589 24.8716 25.6589 24.7727C25.4599 24.5737 25.4599 24.2502 25.6589 24.0512L26.6793 23.0308C26.8783 22.8318 27.2017 22.8318 27.4007 23.0308C27.5997 23.2298 27.5997 23.5533 27.4007 23.7523L26.3803 24.7727C26.2813 24.8716 26.1507 24.9216 26.0201 24.9216Z" fill="url(#paint26_linear_477_778)"/>
<path d="M15.816 30.0238H14.4558C14.1741 30.0238 13.9456 29.7952 13.9456 29.5136C13.9456 29.232 14.1741 29.0034 14.4558 29.0034H15.6956L17.6292 28.0371C17.8813 27.9116 18.1864 28.0136 18.3139 28.2656C18.4405 28.5177 18.3374 28.8238 18.0854 28.9503L16.0445 29.9707C15.9731 30.0054 15.8956 30.0238 15.816 30.0238Z" fill="url(#paint27_linear_477_778)"/>
<path d="M13.7751 25.9422C13.7364 25.9422 13.6966 25.9381 13.6578 25.9289C13.5098 25.8942 13.3864 25.7962 13.318 25.6605L12.2976 23.6197C12.1711 23.3677 12.2741 23.0615 12.5262 22.935C12.7792 22.8085 13.0843 22.9116 13.2109 23.1636L13.9578 24.6575L17.4803 22.0156L18.7925 20.0473C18.9486 19.8136 19.2639 19.7493 19.4997 19.9054C19.7343 20.0615 19.7976 20.3789 19.6415 20.6126L18.2813 22.6534C18.2497 22.7013 18.2088 22.7442 18.1629 22.7789L14.0813 25.8401C13.9915 25.9064 13.8843 25.9422 13.7751 25.9422Z" fill="url(#paint28_linear_477_778)"/>
<path d="M16.8364 37.1665C16.7037 37.1665 16.5731 37.1145 16.4752 37.0176L15.4548 35.9972C15.3599 35.9012 15.3058 35.7716 15.3058 35.6359V32.0247C15.3058 31.7431 15.5344 31.5145 15.816 31.5145C16.0976 31.5145 16.3262 31.7431 16.3262 32.0247V35.4247L16.9527 36.0512L23.6874 33.1645L27.0721 29.7808C27.2711 29.5818 27.5946 29.5818 27.7936 29.7808C27.9926 29.9798 27.9926 30.3033 27.7936 30.5023L24.3395 33.9563C24.2936 34.0023 24.2395 34.039 24.1793 34.0645L17.0364 37.1257C16.9721 37.1533 16.9037 37.1665 16.8364 37.1665Z" fill="url(#paint29_linear_477_778)"/>
<path d="M17.8568 34.1053C17.669 34.1053 17.4894 34.0022 17.3996 33.8237C17.2731 33.5716 17.3762 33.2655 17.6282 33.139L21.7099 31.0982L25.714 28.0849C25.9395 27.9155 26.2589 27.9614 26.4282 28.1869C26.5976 28.4125 26.5517 28.7318 26.3262 28.9012L22.2446 31.9625L18.0854 34.0512C18.0119 34.088 17.9343 34.1053 17.8568 34.1053Z" fill="url(#paint30_linear_477_778)"/>
<path d="M33.1629 35.1258C33.0303 35.1258 32.8997 35.0737 32.8017 34.9768L31.668 33.8431C31.4691 33.6442 31.4691 33.3207 31.668 33.1217C31.867 32.9227 32.1905 32.9227 32.3895 33.1217L33.3007 34.0329L35.9487 33.1503L37.9048 31.1942C38.1038 30.9952 38.4272 30.9952 38.6262 31.1942C38.8252 31.3931 38.8252 31.7166 38.6262 31.9156L36.5854 33.9564C36.5293 34.0125 36.4609 34.0544 36.3864 34.0799L33.3252 35.1003C33.2711 35.1176 33.217 35.1258 33.1629 35.1258Z" fill="url(#paint31_linear_477_778)"/>
<path d="M34.1834 33.0849H31.9385C31.6569 33.0849 31.4283 32.8563 31.4283 32.5747C31.4283 32.293 31.6569 32.0645 31.9385 32.0645H34.1834C34.465 32.0645 34.6936 32.293 34.6936 32.5747C34.6936 32.8563 34.465 33.0849 34.1834 33.0849Z" fill="url(#paint32_linear_477_778)"/>
<path d="M18.8772 42.2685C18.8292 42.2685 18.7813 42.2624 18.7343 42.2481C18.5976 42.2083 18.4843 42.1134 18.42 41.9869L17.3996 39.9461C17.3649 39.8747 17.3466 39.7971 17.3466 39.7175V36.2185C17.3466 35.9369 17.5751 35.7083 17.8568 35.7083C18.1384 35.7083 18.367 35.9369 18.367 36.2185V39.5971L19.0874 41.0379L23.6425 38.3043L26.3405 35.0665C26.5211 34.8502 26.8425 34.8216 27.0599 35.0012C27.2762 35.1818 27.3058 35.5032 27.1252 35.7206L24.3721 39.0247C24.3354 39.0685 24.2915 39.1063 24.2425 39.1349L19.1404 42.1961C19.0598 42.2441 18.969 42.2685 18.8772 42.2685Z" fill="url(#paint33_linear_477_778)"/>
<path d="M19.8976 38.1869C19.7099 38.1869 19.5303 38.0839 19.4405 37.9053C19.3139 37.6533 19.417 37.3471 19.669 37.2206L23.7507 35.1798C24.0038 35.0533 24.3089 35.1553 24.4354 35.4084C24.5619 35.6604 24.4589 35.9665 24.2068 36.0931L20.1252 38.1339C20.0527 38.1696 19.9752 38.1869 19.8976 38.1869Z" fill="url(#paint34_linear_477_778)"/>
<path d="M30.1017 42.2685C30.0599 42.2685 30.0191 42.2634 29.9782 42.2532L25.8966 41.2328C25.6446 41.1696 25.4803 40.9277 25.5139 40.6706L27.5548 25.3645C27.5925 25.0849 27.8486 24.8889 28.1282 24.9257C28.4078 24.9634 28.6037 25.2196 28.567 25.4991L26.5864 40.3532L29.9456 41.193L30.7619 40.3767C30.8568 40.2818 30.9864 40.2277 31.1221 40.2277H31.6323V34.6155L30.6201 24.5185L29.6986 21.7532L27.217 20.9257L23.3578 25.7502C23.2956 25.8267 23.2139 25.8838 23.1211 25.9155L18.019 27.6165C17.7507 27.7063 17.4629 27.5614 17.3741 27.294C17.2853 27.0267 17.4292 26.7379 17.6966 26.6491L22.6558 24.9961L26.6435 20.0114C26.7772 19.8451 26.9997 19.7787 27.2037 19.8461L30.265 20.8665C30.417 20.9165 30.5374 21.0369 30.5874 21.1889L31.6078 24.2502C31.6201 24.2859 31.6282 24.3236 31.6313 24.3604L32.6517 34.5645L32.6527 40.7379C32.6527 41.0196 32.4242 41.2481 32.1425 41.2481H31.3333L30.4619 42.1196C30.366 42.2155 30.2354 42.2685 30.1017 42.2685Z" fill="url(#paint35_linear_477_778)"/>
<path d="M31.1221 41.2483C30.9344 41.2483 30.7548 41.1452 30.665 40.9667C30.316 40.2667 28.5711 36.7218 28.5711 35.6361C28.5711 35.1555 28.7731 33.4157 29.1711 30.4657C29.2099 30.1871 29.467 29.9922 29.7456 30.0279C30.0252 30.0657 30.2201 30.3228 30.1834 30.6024C29.668 34.4116 29.5915 35.3912 29.5915 35.6361C29.5915 36.2565 30.7538 38.8595 31.5783 40.5095C31.7048 40.7616 31.6017 41.0677 31.3497 41.1942C31.2772 41.231 31.1997 41.2483 31.1221 41.2483Z" fill="url(#paint36_linear_477_778)"/>
<path d="M23.4691 42.2687C23.4415 42.2687 23.4129 42.2667 23.3844 42.2616C23.1068 42.2157 22.918 41.9524 22.965 41.6748L23.4752 38.6136C23.5211 38.3361 23.7844 38.1432 24.0619 38.1942C24.3395 38.2402 24.5283 38.5034 24.4813 38.781L23.9711 41.8422C23.9313 42.0922 23.715 42.2687 23.4691 42.2687Z" fill="url(#paint37_linear_477_778)"/>
<path d="M38.265 50.4319C37.9834 50.4319 37.7548 50.2033 37.7548 49.9217V46.3502H12.2445V49.9217C12.2445 50.2033 12.016 50.4319 11.7343 50.4319C11.4527 50.4319 11.2241 50.2033 11.2241 49.9217V45.84C11.2241 45.5584 11.4527 45.3298 11.7343 45.3298H38.265C38.5466 45.3298 38.7752 45.5584 38.7752 45.84V49.9217C38.7752 50.2033 38.5466 50.4319 38.265 50.4319Z" fill="url(#paint38_linear_477_778)"/>
<path d="M36.2242 46.3503H13.7752C13.4935 46.3503 13.265 46.1217 13.265 45.8401V43.7993C13.265 43.5176 13.4935 43.2891 13.7752 43.2891H36.2242C36.5058 43.2891 36.7344 43.5176 36.7344 43.7993V45.8401C36.7344 46.1217 36.5058 46.3503 36.2242 46.3503ZM14.2854 45.3299H35.714V44.3095H14.2854V45.3299Z" fill="url(#paint39_linear_477_778)"/>
<path d="M32.1425 42.2686C31.8609 42.2686 31.6323 42.04 31.6323 41.7584V40.738C31.6323 40.4564 31.8609 40.2278 32.1425 40.2278C32.4242 40.2278 32.6527 40.4564 32.6527 40.738V41.7584C32.6527 42.04 32.4242 42.2686 32.1425 42.2686Z" fill="url(#paint40_linear_477_778)"/>
<path d="M37.2446 25.6869C37.2038 25.6869 37.1619 25.6818 37.1201 25.6716L35.0793 25.1614C34.8058 25.0931 34.6395 24.8165 34.7079 24.5431C34.7762 24.2696 35.0507 24.1002 35.3262 24.1716L37.3671 24.6818C37.6405 24.7502 37.8069 25.0267 37.7385 25.3002C37.6813 25.5329 37.4742 25.6869 37.2446 25.6869Z" fill="url(#paint41_linear_477_778)"/>
<path d="M41.5997 11.6564C41.3181 11.6564 41.0895 11.4279 41.0895 11.1462C41.0895 10.3024 40.4028 9.61562 39.5589 9.61562C39.014 9.61562 38.5058 9.90848 38.2334 10.3809C38.0925 10.6238 37.7803 10.7075 37.5364 10.5666C37.2925 10.4258 37.2089 10.1136 37.3507 9.8697C37.8048 9.08297 38.6517 8.59521 39.5599 8.59521C40.966 8.59521 42.1109 9.74011 42.1109 11.1462C42.1099 11.4279 41.8813 11.6564 41.5997 11.6564Z" fill="url(#paint42_linear_477_778)"/>
<path d="M41.5997 11.6564C41.3181 11.6564 41.0895 11.4279 41.0895 11.1462C41.0895 9.74011 42.2344 8.59521 43.6406 8.59521C44.5487 8.59521 45.3957 9.08399 45.8498 9.8697C45.9916 10.1136 45.9079 10.4258 45.664 10.5666C45.4191 10.7075 45.1079 10.6238 44.9671 10.3809C44.6936 9.90848 44.1855 9.61562 43.6406 9.61562C42.7967 9.61562 42.1099 10.3024 42.1099 11.1462C42.1099 11.4279 41.8814 11.6564 41.5997 11.6564Z" fill="url(#paint43_linear_477_778)"/>
<path d="M42.6201 11.6564H40.5793C40.2977 11.6564 40.0691 11.4278 40.0691 11.1462C40.0691 10.8646 40.2977 10.636 40.5793 10.636H42.6201C42.9018 10.636 43.1303 10.8646 43.1303 11.1462C43.1303 11.4278 42.9018 11.6564 42.6201 11.6564Z" fill="url(#paint44_linear_477_778)"/>
<path d="M10.7139 32.0646H5.61183C5.3302 32.0646 5.10162 31.836 5.10162 31.5544C5.10162 31.2728 5.3302 31.0442 5.61183 31.0442H10.7139C10.9955 31.0442 11.2241 31.2728 11.2241 31.5544C11.2241 31.836 10.9955 32.0646 10.7139 32.0646Z" fill="url(#paint45_linear_477_778)"/>
<path d="M44.3875 39.2074H42.3466C42.065 39.2074 41.8364 38.9788 41.8364 38.6972C41.8364 38.4156 42.065 38.187 42.3466 38.187H44.3875C44.6691 38.187 44.8977 38.4156 44.8977 38.6972C44.8977 38.9788 44.6691 39.2074 44.3875 39.2074Z" fill="url(#paint46_linear_477_778)"/>
<path d="M19.8976 24.5818C19.6843 24.5818 19.4853 24.4471 19.4139 24.2328C19.3251 23.9654 19.469 23.6767 19.7364 23.5879L21.7772 22.9073C22.0486 22.8165 22.3333 22.9634 22.4221 23.2297C22.5109 23.4971 22.367 23.7859 22.0996 23.8746L20.0588 24.5552C20.0047 24.5726 19.9507 24.5818 19.8976 24.5818Z" fill="url(#paint47_linear_477_778)"/>
<path d="M10.7139 43.7666C10.6445 43.7666 10.5731 43.7523 10.5047 43.7217C9.32105 43.1891 7.54145 42.6748 5.7741 43.2636C2.55062 44.3401 0.374083 43.2819 0.282246 43.236C0.0302048 43.1095 -0.0718363 42.8034 0.0536743 42.5513C0.181226 42.2993 0.486329 42.1983 0.73837 42.3227C0.754697 42.3309 2.65062 43.2299 5.45063 42.2952C7.52921 41.6013 9.57513 42.1819 10.9241 42.7911C11.1813 42.9064 11.2955 43.2095 11.1792 43.4656C11.0935 43.6544 10.9078 43.7666 10.7139 43.7666Z" fill="url(#paint48_linear_477_778)"/>
<path d="M47.0528 45.2115C46.211 45.2115 45.213 44.9626 44.1048 44.2238C42.312 43.0289 40.5273 42.9442 39.3456 43.0819C39.062 43.1115 38.812 42.9146 38.7793 42.635C38.7467 42.3554 38.9467 42.1013 39.2262 42.0687C40.5814 41.9095 42.6212 42.0075 44.6712 43.3748C47.3528 45.1615 49.112 43.4564 49.1293 43.4391C49.3283 43.2401 49.6518 43.2401 49.8508 43.4391C50.0497 43.6381 50.0497 43.9615 49.8508 44.1605C49.8344 44.1758 48.7691 45.2115 47.0528 45.2115Z" fill="url(#paint49_linear_477_778)"/>
<path d="M45.4079 48.732C45.3742 48.732 45.3405 48.7289 45.3069 48.7218C44.8885 48.6371 44.5028 48.5085 44.1589 48.3371C43.0711 47.7932 41.9783 47.5565 41.2538 47.4534C40.9752 47.4136 40.7813 47.1555 40.8201 46.8769C40.8609 46.5983 41.1222 46.4065 41.3967 46.4432C42.1967 46.5565 43.4038 46.8187 44.614 47.4238C44.8763 47.5544 45.1773 47.6555 45.5069 47.7218C45.7834 47.7769 45.962 48.0463 45.9069 48.3228C45.8589 48.5647 45.6467 48.732 45.4079 48.732Z" fill="url(#paint50_linear_477_778)"/>
<path d="M8.67306 47.9687C8.61592 47.9687 8.55776 47.9595 8.50163 47.9391C7.77714 47.6799 6.68836 47.3707 5.61183 47.3707C5.3302 47.3707 5.10162 47.1422 5.10162 46.8605C5.10162 46.5789 5.3302 46.3503 5.61183 46.3503C6.8353 46.3503 8.04551 46.6922 8.84449 46.9789C9.1098 47.0738 9.24857 47.3656 9.15266 47.631C9.07817 47.8391 8.88225 47.9687 8.67306 47.9687Z" fill="url(#paint51_linear_477_778)"/>
<path d="M34.1834 48.391H16.8364C16.5547 48.391 16.3262 48.1624 16.3262 47.8808C16.3262 47.5992 16.5547 47.3706 16.8364 47.3706H34.1834C34.465 47.3706 34.6936 47.5992 34.6936 47.8808C34.6936 48.1624 34.465 48.391 34.1834 48.391Z" fill="url(#paint52_linear_477_778)"/>
<defs>
<linearGradient id="paint0_linear_477_778" x1="36.83" y1="30.0232" x2="33.4438" y2="31.6256" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint1_linear_477_778" x1="40.8151" y1="21.8608" x2="31.1502" y2="25.4482" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint2_linear_477_778" x1="16.3262" y1="0.432374" x2="8.08402" y2="2.93727" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint3_linear_477_778" x1="15.3058" y1="7.57471" x2="8.27616" y2="9.77168" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint4_linear_477_778" x1="17.3466" y1="7.57471" x2="15.5645" y2="11.7524" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint5_linear_477_778" x1="14.2851" y1="11.656" x2="9.2083" y2="12.2437" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint6_linear_477_778" x1="16.6674" y1="15.7395" x2="14.8055" y2="16.0084" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint7_linear_477_778" x1="17.3466" y1="9.61548" x2="13.5352" y2="10.041" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint8_linear_477_778" x1="17.3466" y1="15.738" x2="10.1197" y2="17.6205" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint9_linear_477_778" x1="14.2854" y1="20.8401" x2="10.6719" y2="21.7813" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint10_linear_477_778" x1="18.3668" y1="15.7385" x2="15.8363" y2="16.0683" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint11_linear_477_778" x1="31.6324" y1="6.55444" x2="18.9502" y2="13.711" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint12_linear_477_778" x1="26.53" y1="0.431886" x2="22.7196" y2="0.85717" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint13_linear_477_778" x1="31.6322" y1="3.49243" x2="26.8834" y2="4.27412" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint14_linear_477_778" x1="22.2367" y1="3.49243" x2="17.4867" y2="4.27452" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint15_linear_477_778" x1="25.5101" y1="10.636" x2="16.7431" y2="14.2899" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint16_linear_477_778" x1="29.5915" y1="10.6367" x2="18.7513" y2="13.4606" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint17_linear_477_778" x1="21.4285" y1="11.6565" x2="17.606" y2="12.0299" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint18_linear_477_778" x1="31.2259" y1="15.2449" x2="27.9541" y2="15.7395" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint19_linear_477_778" x1="31.6324" y1="11.6565" x2="30.1958" y2="11.8024" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint20_linear_477_778" x1="31.6323" y1="12.6768" x2="27.7532" y2="13.4705" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint21_linear_477_778" x1="27.5497" y1="18.2319" x2="21.6055" y2="19.9308" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint22_linear_477_778" x1="20.2689" y1="16.8735" x2="17.0825" y2="18.1334" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint23_linear_477_778" x1="17.1934" y1="25.9409" x2="14.7764" y2="26.2781" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint24_linear_477_778" x1="39.7957" y1="26.9624" x2="33.7733" y2="28.5311" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint25_linear_477_778" x1="30.6126" y1="20.8394" x2="11.3672" y2="27.9407" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint26_linear_477_778" x1="27.55" y1="22.8816" x2="25.1416" y2="23.509" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint27_linear_477_778" x1="18.3681" y1="27.9834" x2="14.1409" y2="30.3699" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint28_linear_477_778" x1="19.7271" y1="19.8201" x2="11.1625" y2="22.5471" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint29_linear_477_778" x1="27.9428" y1="29.6316" x2="14.5668" y2="35.4749" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint30_linear_477_778" x1="26.5305" y1="27.9827" x2="16.4867" y2="31.9073" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint31_linear_477_778" x1="38.7755" y1="31.0449" x2="31.2443" y2="34.5332" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint32_linear_477_778" x1="34.6936" y1="32.0645" x2="32.265" y2="34.0887" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint33_linear_477_778" x1="27.2435" y1="34.8833" x2="16.1235" y2="38.7648" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint34_linear_477_778" x1="24.4895" y1="35.1255" x2="19.0774" y2="37.4754" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint35_linear_477_778" x1="32.6527" y1="19.8201" x2="13.9512" y2="23.1412" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint36_linear_477_778" x1="31.6324" y1="30.0237" x2="27.7931" y2="30.2964" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint37_linear_477_778" x1="24.4885" y1="38.186" x2="22.5774" y2="38.3727" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint38_linear_477_778" x1="38.7752" y1="45.3298" x2="27.1156" y2="61.7299" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint39_linear_477_778" x1="36.7344" y1="43.2891" x2="30.8035" y2="55.1329" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint40_linear_477_778" x1="32.6527" y1="40.2278" x2="31.388" y2="40.3925" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint41_linear_477_778" x1="37.7538" y1="24.1553" x2="34.7179" y2="25.7358" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint42_linear_477_778" x1="42.1109" y1="8.59522" x2="36.9031" y2="10.7352" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint43_linear_477_778" x1="45.9188" y1="8.59522" x2="40.711" y2="10.7352" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint44_linear_477_778" x1="43.1303" y1="10.636" x2="40.7346" y2="12.5081" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint45_linear_477_778" x1="11.2241" y1="31.0442" x2="8.98235" y2="34.5477" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint46_linear_477_778" x1="44.8977" y1="38.187" x2="42.5019" y2="40.0591" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint47_linear_477_778" x1="22.4483" y1="22.8804" x2="19.285" y2="24.3626" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint48_linear_477_778" x1="11.2247" y1="41.9797" x2="7.37719" y2="48.2752" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint49_linear_477_778" x1="50" y1="42.0117" x2="42.2893" y2="49.0569" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint50_linear_477_778" x1="45.9168" y1="46.4387" x2="41.1028" y2="49.2283" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint51_linear_477_778" x1="9.18305" y1="46.3503" x2="5.58929" y2="48.7111" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
<linearGradient id="paint52_linear_477_778" x1="34.6936" y1="47.3706" x2="33.6862" y2="52.0937" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 35 KiB

9
public/assets/heart.svg Normal file
View File

@ -0,0 +1,9 @@
<svg width="29" height="26" viewBox="0 0 29 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20.9444 9.30558e-08C19.6939 9.30558e-08 18.4604 0.293677 17.3419 0.857774C16.2233 1.42187 15.2504 2.24089 14.5 3.24998C13.4856 1.88575 12.0713 0.878036 10.4575 0.369575C8.84365 -0.138885 7.11212 -0.122313 5.50816 0.416946C3.90421 0.956205 2.50913 1.99081 1.52055 3.37421C0.531967 4.75761 0 6.41967 0 8.12495C0 17.8614 13.4125 25.5394 13.9764 25.8644C14.1362 25.955 14.3167 26.0017 14.5 25.9998C14.6834 26.003 14.8643 25.9562 15.0236 25.8644C17.4936 24.408 19.8103 22.702 21.938 20.7728C26.6236 16.5207 29 12.2687 29 8.12495C29 5.97008 28.1513 3.90347 26.6406 2.37974C25.1299 0.856019 23.0809 9.30558e-08 20.9444 9.30558e-08Z" fill="url(#paint0_linear_91_1223)"/>
<defs>
<linearGradient id="paint0_linear_91_1223" x1="29" y1="2.97481e-06" x2="-4.70852" y2="9.79331" gradientUnits="userSpaceOnUse">
<stop stop-color="#4FC5EB"/>
<stop offset="1" stop-color="#5D52D9"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1005 B

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
width="603"
height="182"
style="fill:#221f1f"
id="svg1936">
<path
d="m 374.00642,142.18404 c -34.99948,25.79739 -85.72909,39.56123 -129.40634,39.56123 -61.24255,0 -116.37656,-22.65135 -158.08757,-60.32496 -3.2771,-2.96252 -0.34083,-6.9999 3.59171,-4.69283 45.01431,26.19064 100.67269,41.94697 158.16623,41.94697 38.774689,0 81.4295,-8.02237 120.6499,-24.67006 5.92501,-2.51683 10.87999,3.88009 5.08607,8.17965"
id="path8"
style="fill:#ff9900" />
<path
d="m 388.55678,125.53635 c -4.45688,-5.71527 -29.57261,-2.70033 -40.84585,-1.36327 -3.43442,0.41947 -3.95874,-2.56925 -0.86517,-4.71905 20.00346,-14.07844 52.82696,-10.01483 56.65462,-5.2958 3.82764,4.74526 -0.99624,37.64741 -19.79373,53.35128 -2.88385,2.41195 -5.63662,1.12734 -4.35198,-2.07113 4.2209,-10.53917 13.68519,-34.16054 9.20211,-39.90203"
id="path10"
style="fill:#ff9900" />
<path
d="M 348.49744,20.06598 V 6.38079 c 0,-2.07113 1.57301,-3.46062 3.46062,-3.46062 h 61.26875 c 1.96628,0 3.53929,1.41571 3.53929,3.46062 v 11.71893 c -0.0262,1.96626 -1.67788,4.53551 -4.61418,8.59912 l -31.74859,45.32893 c 11.79759,-0.28837 24.25059,1.46814 34.94706,7.49802 2.41195,1.36327 3.06737,3.35575 3.25089,5.32203 V 99.4506 c 0,1.99248 -2.20222,4.32576 -4.5093,3.1198 -18.84992,-9.88376 -43.887,-10.95865 -64.72939,0.10487 -2.12356,1.15354 -4.35199,-1.15354 -4.35199,-3.14602 V 85.66054 c 0,-2.22843 0.0262,-6.02989 2.25463,-9.41186 l 36.78224,-52.74829 h -32.01076 c -1.96626,0 -3.53927,-1.38948 -3.53927,-3.43441"
id="path12" />
<path
d="m 124.99883,105.45424 h -18.64017 c -1.78273,-0.13107 -3.19845,-1.46813 -3.32954,-3.17224 V 6.61676 c 0,-1.91383 1.59923,-3.43442 3.59171,-3.43442 h 17.38176 c 1.80898,0.0786 3.25089,1.46814 3.38199,3.19845 v 12.50545 h 0.34082 c 4.53551,-12.08598 13.05597,-17.7226 24.53896,-17.7226 11.66649,0 18.95477,5.63662 24.19814,17.7226 4.5093,-12.08598 14.76008,-17.7226 25.74495,-17.7226 7.81262,0 16.35931,3.22467 21.57646,10.46052 5.89879,8.04857 4.69281,19.74128 4.69281,29.99208 l -0.0262,60.37739 c 0,1.91383 -1.59923,3.46061 -3.59171,3.46061 h -18.61397 c -1.86138,-0.13107 -3.35574,-1.62543 -3.35574,-3.46061 V 51.29025 c 0,-4.03739 0.36702,-14.10466 -0.52434,-17.93233 -1.38949,-6.42311 -5.55797,-8.23209 -10.95865,-8.23209 -4.5093,0 -9.22833,3.01494 -11.14216,7.83885 -1.91383,4.8239 -1.73031,12.89867 -1.73031,18.32557 v 50.70338 c 0,1.91383 -1.59923,3.46061 -3.59171,3.46061 h -18.61395 c -1.88761,-0.13107 -3.35576,-1.62543 -3.35576,-3.46061 L 152.946,51.29025 c 0,-10.67025 1.75651,-26.37415 -11.48298,-26.37415 -13.39682,0 -12.87248,15.31063 -12.87248,26.37415 v 50.70338 c 0,1.91383 -1.59923,3.46061 -3.59171,3.46061"
id="path14" />
<path
d="m 469.51439,1.16364 c 27.65877,0 42.62858,23.75246 42.62858,53.95427 0,29.17934 -16.54284,52.32881 -42.62858,52.32881 -27.16066,0 -41.94697,-23.75246 -41.94697,-53.35127 0,-29.78234 14.96983,-52.93181 41.94697,-52.93181 m 0.15729,19.53156 c -13.73761,0 -14.60278,18.71881 -14.60278,30.38532 0,11.69271 -0.18352,36.65114 14.44549,36.65114 14.44548,0 15.12712,-20.13452 15.12712,-32.40403 0,-8.07477 -0.34082,-17.72257 -2.779,-25.3779 -2.09735,-6.65906 -6.26581,-9.25453 -12.19083,-9.25453"
id="path16" />
<path
d="M 548.00762,105.45424 H 529.4461 c -1.86141,-0.13107 -3.35577,-1.62543 -3.35577,-3.46061 l -0.0262,-95.69149 c 0.1573,-1.75653 1.7041,-3.1198 3.59171,-3.1198 h 17.27691 c 1.62543,0.0786 2.96249,1.17976 3.32954,2.67412 v 14.62899 h 0.3408 c 5.21717,-13.0822 12.53165,-19.32181 25.40412,-19.32181 8.36317,0 16.51662,3.01494 21.75999,11.27324 4.87633,7.65532 4.87633,20.5278 4.87633,29.78233 v 60.22011 c -0.20973,1.67786 -1.75653,3.01492 -3.59169,3.01492 h -18.69262 c -1.70411,-0.13107 -3.11982,-1.38948 -3.30332,-3.01492 V 50.47753 c 0,-10.46052 1.20597,-25.77117 -11.66651,-25.77117 -4.5355,0 -8.70399,3.04117 -10.77512,7.65532 -2.62167,5.84637 -2.96249,11.66651 -2.96249,18.11585 v 51.5161 c -0.0262,1.91383 -1.65166,3.46061 -3.64414,3.46061"
id="path18" />
<use
xlink:href="#path30"
transform="translate(244.36719)"
id="use28" />
<path
d="M 55.288261,59.75829 V 55.7209 c -13.475471,0 -27.711211,2.88385 -27.711211,18.77125 0,8.04857 4.16847,13.50169 11.32567,13.50169 5.24337,0 9.93618,-3.22467 12.8987,-8.46805 3.670341,-6.44935 3.486841,-12.50544 3.486841,-19.7675 m 18.79747,45.43378 c -1.23219,1.10111 -3.01495,1.17976 -4.40444,0.4457 -6.18716,-5.1385 -7.28828,-7.52423 -10.69647,-12.42678 -10.224571,10.4343 -17.460401,13.55409 -30.726141,13.55409 -15.67768,0 -27.89471,-9.67401 -27.89471,-29.04824 0,-15.12713 8.20587,-25.43035 19.87236,-30.46398 10.1197,-4.45688 24.25058,-5.24337 35.051931,-6.47556 v -2.41195 c 0,-4.43066 0.34082,-9.67403 -2.25465,-13.50167 -2.280881,-3.43442 -6.632861,-4.85013 -10.460531,-4.85013 -7.10475,0 -13.44924,3.64414 -14.99603,11.19459 -0.31461,1.67789 -1.5468,3.32955 -3.22467,3.4082 L 6.26276,32.67628 C 4.74218,32.33548 3.0643,31.10327 3.48377,28.76999 7.65225,6.85271 27.44596,0.24605 45.16856,0.24605 c 9.071011,0 20.921021,2.41195 28.078221,9.28076 9.07104,8.46804 8.20587,19.7675 8.20587,32.06321 v 29.04826 c 0,8.73022 3.61794,12.55786 7.02613,17.27691 1.20597,1.67786 1.46814,3.69656 -0.05244,4.95497 -3.80144,3.17225 -10.56538,9.07104 -14.28819,12.37436 l -0.05242,-0.0525"
id="path30" />
</svg>

After

Width:  |  Height:  |  Size: 5.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,709 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 539.1 137.2" style="enable-background:new 0 0 539.1 137.2;" xml:space="preserve">
<style type="text/css">
.st0{fill:#B31B1B;}
.st1{fill:none;stroke:#47BD9D;stroke-width:1.1494;stroke-miterlimit:10;}
</style>
<g>
<g>
<g>
<g>
<path class="st0" d="M198.5,80.6l-0.9,2.2c-1.8,0.9-3.7,1.5-5.5,2s-3.7,0.7-5.7,0.7c-2.4,0-4.6-0.2-6.8-0.9
c-2.2-0.7-4-1.5-5.5-2.6s-2.9-2.4-3.7-3.7s-1.8-2.9-2.2-4.6c-0.4-1.8-0.9-3.5-0.9-5.5c0-5.1,1.8-9.3,5.3-12.6s8.4-4.9,14.3-4.9
c1.5,0,2.9,0,4,0.2c1.3,0.2,2.6,0.4,4.4,0.9c1.8,0.4,2.9,0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4c-1.6,0-2.4,1.6-3.2,3.1l-1.2,2.2l8.7,4.7L19.6,45z M14.4,41.9l-0.1,0.2
l-1.6-0.8l0.1-0.2c0.4-0.7,0.8-1.4,1.5-1c0.2,0.1,0.4,0.2,0.5,0.5C14.8,41,14.6,41.5,14.4,41.9z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="25,36.3 20.5,32.6 26.9,34.1 28.6,31.9 21.1,25.5 19.4,27.4 24,31.2 17.6,29.7 15.8,31.9
23.5,38.2 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="36.1,25.5 34.7,24 32,26.1 30.7,24.7 33.2,22.6 31.9,21 29.4,23 28.4,21.8 31.2,19.6
29.8,17.9 25.1,21.7 31.3,29.4 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="44.3,20.6 43.3,18.8 40.1,20.5 36.4,13.7 34.2,15 39,23.6 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="52.7,17.4 51.9,15.5 48.6,16.6 46,9.4 43.6,10.2 46.9,19.5 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M62.7,15.8c0.2,0,0.4,0,0.6,0c1.4-0.1,2.4-0.6,3-1.3c0.6-0.7,0.8-1.7,0.7-2.9l-0.5-6.2L64,5.5l0.5,5.6
c0.1,1.9-0.7,2.3-1.4,2.4c-0.1,0-0.1,0-0.2,0c-0.6,0-1.4-0.2-1.6-2.2l-0.5-5.6L58.3,6l0.5,6.2
C59.1,14.5,60.4,15.8,62.7,15.8z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="74,9.9 76.1,16 79,16.5 80.2,6.6 77.8,6.3 77.1,12.1 75,5.9 72.2,5.6 70.8,15.4 73.2,15.7
"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="87.7,8.8 85.3,8 82.3,17.4 84.7,18.2 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="100.2,14.3 98,13.2 93.2,18.1 94.1,11.3 91.7,10 90.3,20.5 92.8,21.7 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="102.7,28.6 103.9,26.9 101.2,24.7 102.3,23.1 104.9,25.1 106.2,23.4 103.7,21.4 104.6,20.2
107.4,22.4 108.8,20.6 103.9,16.9 97.9,24.8 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M106.8,32.7l2.9-2.5l0.1,0.2c0.4,0.5,0.4,0.6,0.1,1.1l-1.6,3l1.8,2.1l1.9-3.9c0.1-0.1,0.2-0.5,0.2-0.8
c0.8,0.4,1.8,0.2,2.7-0.5c2.2-1.8,0.5-3.8-0.8-5.3l-1.6-1.8l-7.5,6.5L106.8,32.7z M112.7,27.5l0.1,0.2
c0.4,0.5,0.7,0.9,0.7,1.3c0,0.2-0.1,0.4-0.4,0.5c-0.1,0.2-0.4,0.2-0.5,0.2c-0.5,0-0.9-0.5-1.1-0.8l-0.1-0.2L112.7,27.5z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M116,40.6c-0.5,0.4-1.1-0.2-1.4-0.7c-0.4-0.6-0.5-1.1-0.5-1.9v-0.6l-2.3,1L112,39
c0.2,0.8,0.4,1.3,0.8,2.1c0.8,1.4,1.8,2.1,3,2.1c0.6,0,1-0.1,1.6-0.5c1.7-1,1.5-2.7,1.3-3.9c-0.1-0.8-0.2-1.4,0.1-1.6
c0.2-0.1,0.4-0.1,0.5-0.1c0.5,0,0.8,0.5,0.9,0.6c0.4,0.5,0.5,1,0.6,1.6l0.1,0.5l2.1-0.9v-0.2c-0.1-0.7-0.5-1.4-0.9-2.2
c-1-1.8-2.9-2.4-4.5-1.4c-1.7,1-1.5,2.7-1.3,3.8C116.4,39.8,116.5,40.4,116,40.6z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="116.3" y="45.3" transform="matrix(0.9259 -0.3777 0.3777 0.9259 -8.6086 49.2392)" class="st0" width="9.9" height="2.5"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="126.3,52.9 118.9,54.8 119.4,57.2 127.1,55.3 127.6,57.9 129.7,57.4 127.8,49.8 125.8,50.4
"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="120.5,64.4 120.6,67 124.5,66.7 130.7,70 130.6,67.2 126.9,65.5 130.4,63.3 130.1,60.3
124.4,64.3 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="11.2,87.6 13.3,87 12.4,84.1 14,83.6 14.8,86.8 16.9,86.2 15.3,80.6 5.8,83.4 6.5,85.8
10.4,84.6 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M20,95.9c0.4-1.1,0.2-2.4-0.4-3.7c-0.9-1.8-2.3-2.8-4.1-2.8c-0.8,0-1.7,0.2-2.7,0.7
c-1.5,0.7-2.4,1.7-2.9,3c-0.4,1.1-0.2,2.4,0.4,3.7c0.9,1.7,2.3,2.8,4.1,2.8c0.8,0,1.7-0.2,2.7-0.7
C18.7,98.1,19.7,97.2,20,95.9z M16.1,96.5c-0.6,0.4-1.3,0.5-1.8,0.5c-0.9,0-1.5-0.4-1.8-1.1c-0.2-0.6-0.4-1-0.1-1.5
c0.2-0.7,0.9-1.4,1.8-1.8c0.6-0.2,1.1-0.5,1.7-0.5c0.9,0,1.5,0.4,1.8,1.1c0.2,0.6,0.4,1,0.1,1.5C17.6,95.3,17,96,16.1,96.5z
"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M26.9,103.6l-4.5,3.6c-1.1,0.9-2.1,1-2.8,0.2c-0.2-0.4-0.4-0.7-0.4-1c0.1-0.5,0.5-1,1.1-1.6l4.5-3.6
l-1.6-1.9l-5,3.9c-1,0.8-1.6,1.7-1.6,2.8c0,0.9,0.4,1.8,1.1,2.9c0.9,1.3,1.9,1.8,3.1,1.8c0.8,0,1.6-0.4,2.4-1l5-4
L26.9,103.6z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="35.3,111.6 31.7,116.2 33,109.8 30.8,108 24.5,115.7 26.5,117.3 30.1,112.7 28.8,119.1
30.9,120.9 37.3,113.3 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M42.7,116.3l-2.5-1.3l-4.5,8.8l2.5,1.3c1.3,0.6,2.3,0.9,3.3,0.9c1.7,0,3.1-0.9,4-2.8
C47,120.4,46,118.1,42.7,116.3z M43.2,122.3c-0.5,1-1.4,1.6-2.4,1.6c-0.5,0-0.8-0.1-1.3-0.4l-0.6-0.4l2.5-5.1l0.6,0.4
c0.7,0.4,1.1,0.9,1.4,1.5C43.6,120.7,43.5,121.4,43.2,122.3z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="48.2,129.5 54.1,131.1 54.6,129 51.2,128.1 51.6,126.3 54.9,127.1 55.4,125 52.2,124.2
52.6,122.6 56.1,123.5 56.6,121.4 50.7,120 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M62.8,122.3l-2.9-0.1l-0.6,9.9l2.9,0.1c0.2,0,0.5,0,0.7,0c3.3,0,5.1-1.6,5.3-4.7c0.1-1.5-0.2-2.8-1-3.7
C66.2,122.9,64.8,122.4,62.8,122.3z M62.7,130H62l0.4-5.6h0.7c1.4,0.1,2.7,1.1,2.5,3C65.4,129.3,64.1,130,62.7,130z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M76.9,121.4l-1.7,10.4l2.7-0.6l0.4-2.2l3.2-0.7l1.3,1.9l2.8-0.6l-5.9-8.8L76.9,121.4z M78.5,127
l0.4-2.7l1.4,2.2L78.5,127z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="86.4,126.6 87.3,129 89.5,128.1 88.8,125.8 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M91.2,116.6l-2.5,1.4l4.7,8.7l2.5-1.4c3.3-1.8,4.1-4.1,2.7-7C97,115.4,94.5,114.8,91.2,116.6z
M95.2,123.2l-0.6,0.4l-2.7-5l0.6-0.4c0.4-0.2,0.8-0.4,1.3-0.4c1,0,1.8,0.6,2.4,1.5C97.2,121.1,96.3,122.6,95.2,123.2z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="100.5,119.7 101.9,121.8 103.9,120.3 102.6,118.2 "/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<polygon class="st0" points="104.4,106.9 103.9,110.9 106.1,111.2 106.4,109.6 111.1,114.3 112.9,112.6 105.9,105.4
"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M117.9,101.8c-0.8-0.6-1.7-0.7-2.8-0.4c0-0.9-0.5-1.8-1.1-2.3c-1.3-0.9-2.9-0.4-4.1,1.3
c-1.1,1.6-1,3.2,0.4,4.2c0.7,0.5,1.6,0.6,2.4,0.4c-0.1,1,0.2,1.8,1,2.4c0.6,0.5,1.1,0.6,1.7,0.6c1,0,1.9-0.6,2.9-1.7
c0.7-0.9,1-1.8,0.9-2.8C119,102.9,118.5,102.3,117.9,101.8z M113.1,102.5c-0.4,0.2-0.7,0.5-1,0.5c-0.1,0-0.4,0-0.5-0.1
c-0.5-0.4-0.2-0.9,0-1.3c0.1-0.2,0.4-0.4,0.6-0.4c0.1,0,0.4,0.1,0.6,0.2C113.1,101.7,113.3,102.1,113.1,102.5z M116.6,105.2
c-0.4,0.5-0.9,0.6-1.4,0.2c-0.4-0.4-0.6-0.7-0.5-1.4c0.7-0.5,1.3-0.6,1.7-0.2c0.2,0.1,0.4,0.4,0.4,0.6
S116.7,105,116.6,105.2z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M122.3,92.1c-1.7-0.8-3.3-0.4-4.1,1.3c-0.2,0.5-0.4,0.9-0.2,1.4c-0.6-0.5-1.1-1.3-0.7-2.3
c0.2-0.5,0.6-0.8,0.9-1.1l0.4-0.2l-1.8-1.3l-0.2,0.2c-0.5,0.5-0.9,1-1.3,1.7c-0.5,1-0.6,1.9-0.2,2.9
c0.6,1.6,2.2,2.8,3.4,3.3c1.1,0.6,2.1,0.8,2.9,0.8c1.3,0,2.2-0.6,2.9-1.8C125.1,94.9,124.4,93.2,122.3,92.1z M122.3,95.8
c-0.1,0.4-0.5,0.5-0.8,0.5c-0.2,0-0.6-0.1-0.8-0.2c-0.5-0.2-0.8-0.6-0.9-0.8c-0.1-0.2,0-0.4,0-0.6c0.1-0.4,0.4-0.5,0.8-0.5
c0.2,0,0.6,0.1,0.9,0.2c0.5,0.2,0.7,0.5,0.8,0.8C122.5,95.5,122.3,95.7,122.3,95.8z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M125.9,82c-1.9-0.6-3.6,0.4-4.1,2.2c0,0.2-0.1,0.4-0.1,0.5l-1.1-0.4l1-3.4l-1.9-0.6L118,86l5.5,1.7
v-0.5c0-0.6,0.1-1,0.2-1.6c0.1-0.5,0.7-1.6,1.7-1.4c1.1,0.4,0.9,1.6,0.8,1.9c-0.2,0.7-0.6,1.1-0.9,1.6l-0.4,0.4l2.3,0.8
l0.1-0.2c0.4-0.7,0.7-1.5,0.9-2.1c0.4-1.1,0.4-2.2-0.1-3.1C127.6,82.9,126.8,82.3,125.9,82z"/>
</g>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M53.2,58l-0.5-0.3c-2.8-1.5-7.5-4.3-7.5-6.4V40.4h16.3v11c0,1.8-4.3,4.4-7.8,6.3L53.2,58z M47.2,47.5
v3.9c0.2,0.7,2.9,2.7,6,4.3c3.2-1.7,6-3.6,6.3-4.3v-3.9H47.2z M47.2,45.5h12.3v-3.1H47.2V45.5z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M67.3,137.2c-37.8,0-68.6-30.8-68.6-68.6S29.5,0,67.3,0s68.6,30.8,68.6,68.6S105.1,137.2,67.3,137.2z
M67.3,2C30.6,2,0.7,31.9,0.7,68.6s29.9,66.6,66.6,66.6s66.6-29.9,66.6-66.6S104,2,67.3,2z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M67.3,118.7c-27.6,0-50.1-22.5-50.1-50.1s22.5-50.1,50.1-50.1s50.1,22.5,50.1,50.1
S94.9,118.7,67.3,118.7z M67.3,20.5c-26.5,0-48.1,21.6-48.1,48.1s21.6,48.1,48.1,48.1s48.1-21.6,48.1-48.1
S93.8,20.5,67.3,20.5z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st1" d="M67.3,44.5"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M81.3,58l-0.5-0.3c-2.9-1.5-7.7-4.3-7.7-6.4V40.4h16.3v11c0,1.5-2.6,3.6-7.7,6.3L81.3,58z M75.1,51.3
c0.3,0.7,3,2.7,6.2,4.4c3.1-1.7,5.8-3.6,6.2-4.3V50l-6.2-4l-6.2,4V51.3z M87.5,51.4L87.5,51.4L87.5,51.4z M81.3,43.6l6.2,4
v-5.2H75.2v5.2L81.3,43.6z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="56.8" y="74.1" transform="matrix(0.999 -4.550020e-02 4.550020e-02 0.999 -3.3617 2.8193)" class="st0" width="6.9" height="2.3"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="56.8" y="80.5" transform="matrix(0.999 -4.528096e-02 4.528096e-02 0.999 -3.6356 2.8121)" class="st0" width="6.9" height="2.3"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="56.8" y="86.8" transform="matrix(0.999 -4.528096e-02 4.528096e-02 0.999 -3.9208 2.8185)" class="st0" width="6.9" height="2.3"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="48.9" y="75.3" class="st0" width="4" height="3.2"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="48.9" y="84.4" class="st0" width="4" height="3.2"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M66.4,94.4c-0.1-0.1-1.4-1-2.2-0.9C60,94.2,53.3,94,53,94h-1V69.3l1.1,0.1c0.1,0,5.3,0.6,10-0.3
c1.6-0.4,3.3,0,4.1,0.3c0.8-0.3,2.7-0.7,4.3-0.3c4.7,0.8,9.9,0.3,10,0.3l1.1-0.1V94h-1c-0.3,0-7.2,0.2-11.3-0.5
c-0.9-0.2-2,0.7-2.3,0.9L67.2,95L66.4,94.4z M64.6,91.5c1.1-0.1,2,0.5,2.6,0.9c0.7-0.5,2.2-1.1,3.6-0.9
c3,0.5,7.8,0.5,9.9,0.5V71.5c-1.9,0.2-5.7,0.3-9.5-0.4h-0.1c-1.5-0.4-3.4,0.3-3.4,0.3l-0.5,0.1h-0.1c0,0-1.9-0.8-3.4-0.4
h-0.1c-3.7,0.7-7.6,0.5-9.5,0.4v20.6c2,0,6.8,0,9.9-0.5C64.4,91.5,64.4,91.5,64.6,91.5z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="73.3" y="78.2" transform="matrix(4.537401e-02 -0.999 0.999 4.537401e-02 -10.4278 152.3425)" class="st0" width="2.3" height="6.9"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="73.3" y="84.5" transform="matrix(4.537401e-02 -0.999 0.999 4.537401e-02 -16.7655 158.3547)" class="st0" width="2.3" height="6.9"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="82" y="75.3" class="st0" width="3.7" height="3.2"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="82" y="84.4" class="st0" width="3.7" height="3.2"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<rect x="73.4" y="72" transform="matrix(3.784794e-02 -0.9993 0.9993 3.784794e-02 -3.6649 147.0134)" class="st0" width="2.3" height="6.9"/>
</g>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<path class="st0" d="M67.2,114.3l-0.4-0.2c-0.3-0.2-7.8-3.5-15.4-9.4c-10.2-7.9-15.8-16.6-15.9-25.2
c0.4-18.3,0.1-42.6,0.1-42.9v-1h63.7v1c0,0.3-0.1,24.9-0.1,42.9c0,8.6-5.5,17.2-15.9,25.2c-7.7,5.9-15.4,9.3-15.7,9.4
L67.2,114.3z M68.2,62.5v49.1c6-2.9,28.9-15.3,28.9-32.1c0-5.3,0-11.3,0-17H68.2L68.2,62.5z M37.6,62.5c0,5.7-0.1,11.6-0.2,17
c0.2,9.9,8.4,18.3,15.2,23.6c5.5,4.3,11.1,7.3,13.6,8.5V62.5H37.6z M37.6,60.6h59.5c0-10.5,0.1-19.9,0.1-22.9H37.5
C37.5,40.6,37.6,50,37.6,60.6z"/>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 20.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1000 196.9" style="enable-background:new 0 0 1000 196.9;" xml:space="preserve">
<style type="text/css">
.st0{fill:#0061FF;}
.st1{display:none;}
.st2{display:inline;}
.st3{fill:none;}
</style>
<path class="st0" d="M116,37l-58,37l58,37l-58,37L0,110.8l58-37L0,37L58,0L116,37z M57.7,159.9l58-37l58,37l-58,37L57.7,159.9z
M116,110.8l58-37L116,37l57.7-37l58,37l-58,37l58,37l-58,37L116,110.8z"/>
<path d="M277.2,37h46.9c29.9,0,54.6,17.3,54.6,56.8v8.3c0,39.8-23.1,57.7-53.7,57.7h-47.8V37z M303.4,59.3v78.1h20.1
c17,0,28.4-11.1,28.4-35.8v-6.5c0-24.7-12-35.8-29.3-35.8H303.4z M392.6,60.5h21l3.4,23.1c4-15.7,14.2-24.1,32.7-24.1h6.5v26.5
h-10.8c-21.3,0-26.5,7.4-26.5,28.4v45.7h-25.9V60.5H392.6z M461.4,112.3v-2.8c0-33.3,21.3-51.5,50.3-51.5
c29.6,0,50.3,18.2,50.3,51.5v2.8c0,32.7-20.1,50.3-50.3,50.3C479.6,162.3,461.4,145.1,461.4,112.3z M535.5,112v-2.5
c0-18.5-9.3-29.6-24.1-29.6c-14.5,0-24.1,10.2-24.1,29.6v2.5c0,17.9,9.3,28.1,24.1,28.1C526.2,139.8,535.5,129.9,535.5,112z
M575.6,60.5h21.6l2.5,18.8C604.9,66.7,616,58,632.4,58c25.3,0,42,18.2,42,51.9v2.8c0,32.7-18.5,50-42,50
c-15.7,0-26.5-7.1-31.8-18.5v50.3h-25.3L575.6,60.5L575.6,60.5z M648.1,112v-2.2c0-19.8-10.2-29.6-23.8-29.6
c-14.5,0-24.1,11.1-24.1,29.6v1.9c0,17.6,9.3,28.7,23.8,28.7C638.9,140.1,648.1,130.6,648.1,112z M712.7,141.7l-2.2,18.2h-22.2V27.2
h25.3v50.9c5.6-13,16.7-20.1,32.4-20.1c23.8,0.3,41.4,16.7,41.4,49.7v3.1c0,33-16.7,51.9-42,51.9
C728.7,162.3,717.9,154.6,712.7,141.7z M760.8,110.8v-2.5c0-18.2-9.9-28.4-23.8-28.4c-14.2,0-24.1,11.4-24.1,28.7v2.2
c0,18.5,9.6,29.3,23.8,29.3C751.9,140.1,760.8,130.6,760.8,110.8z M798.5,112.3v-2.8c0-33.3,21.3-51.5,50.3-51.5
c29.6,0,50.3,18.2,50.3,51.5v2.8c0,32.7-20.4,50.3-50.3,50.3C816.7,162.3,798.5,145.1,798.5,112.3z M872.8,112v-2.5
c0-18.5-9.3-29.6-24.1-29.6c-14.5,0-24.1,10.2-24.1,29.6v2.5c0,17.9,9.3,28.1,24.1,28.1C863.6,139.8,872.8,129.9,872.8,112z
M933,108.3l-34.9-47.8h29.9l20.1,29.9l20.4-29.9h29.6L962.7,108l37.3,51.9h-29.3l-22.8-33l-22.2,33h-30.6L933,108.3z"/>
<g id="Editble" class="st1">
<g class="st2">
<rect x="233" y="71.6" class="st3" width="506" height="71.8"/>
<path d="M338.2,80.2h16.3c10.4,0,19,6.1,19,19.8v2.9c0,13.8-8,20-18.7,20h-16.6V80.2z M347.4,87.9v27.2h7c5.9,0,9.9-3.9,9.9-12.5
v-2.2c0-8.6-4.1-12.5-10.2-12.5H347.4z M378.4,88.4h7.3l1.1,8c1.4-5.5,4.9-8.3,11.3-8.3h2.2v9.2h-3.7c-7.4,0-9.2,2.6-9.2,9.9V123
h-9C378.4,123,378.4,88.4,378.4,88.4z M402.3,106.4v-1c0-11.6,7.4-17.9,17.5-17.9c10.3,0,17.5,6.4,17.5,17.9v1
c0,11.4-7,17.5-17.5,17.5C408.6,123.9,402.3,117.8,402.3,106.4z M428.1,106.3v-0.8c0-6.5-3.2-10.3-8.3-10.3c-5,0-8.4,3.5-8.4,10.3
v0.8c0,6.2,3.2,9.7,8.3,9.7C424.9,116,428.1,112.6,428.1,106.3z M442,88.4h7.6l0.9,6.6c1.9-4.4,5.7-7.4,11.4-7.4
c8.8,0,14.6,6.4,14.6,18v1c0,11.4-6.4,17.3-14.6,17.3c-5.5,0-9.2-2.5-11-6.5v17.5H442V88.4z M467.3,106.4v-0.8
c0-6.9-3.5-10.3-8.3-10.3c-5,0-8.4,3.8-8.4,10.3v0.7c0,6.1,3.2,10,8.2,10C464,116.1,467.3,112.7,467.3,106.4z M489.7,116.7
L489,123h-7.8V76.8h8.8v17.8c1.9-4.5,5.8-7,11.2-7c8.2,0.1,14.3,5.8,14.3,17.3v1c0,11.5-5.8,18-14.6,18
C495.3,123.9,491.5,121.1,489.7,116.7z M506.5,105.9v-0.8c0-6.4-3.5-9.8-8.3-9.8c-5,0-8.4,4-8.4,10v0.7c0,6.5,3.3,10.2,8.3,10.2
C503.3,116.1,506.5,112.7,506.5,105.9z M519.6,106.4v-1c0-11.6,7.4-17.9,17.5-17.9c10.3,0,17.5,6.4,17.5,17.9v1
c0,11.4-7.1,17.5-17.5,17.5C525.9,123.9,519.6,117.8,519.6,106.4z M545.4,106.3v-0.8c0-6.5-3.2-10.3-8.3-10.3
c-5,0-8.4,3.5-8.4,10.3v0.8c0,6.2,3.2,9.7,8.3,9.7C542.2,116,545.4,112.6,545.4,106.3z M566.3,105l-12.1-16.7h10.4l7,10.4
l7.1-10.4H589l-12.3,16.6l13,18h-10.2l-8-11.5l-7.7,11.5h-10.6L566.3,105z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 272 92" width="272" height="92"><path fill="#EA4335" d="M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"/><path fill="#FBBC05" d="M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"/><path fill="#4285F4" d="M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"/><path fill="#34A853" d="M225 3v65h-9.5V3h9.5z"/><path fill="#EA4335" d="M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"/><path fill="#4285F4" d="M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Binary file not shown.

BIN
public/fonts/Lato-Bold.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
public/fonts/Lora-Bold.ttf Normal file

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.

Binary file not shown.

22
public/fonts/fonts.css Normal file
View File

@ -0,0 +1,22 @@
/* Adding a new font family needs to keep "public\fonts\fonts.ts" in sync */
@font-face {font-family: "Roboto"; src: url("/fonts/Roboto-Regular.ttf");}
@font-face {font-family: "Roboto"; src: url("/fonts/Roboto-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "Lato"; src: url("/fonts/Lato-Regular.ttf");}
@font-face {font-family: "Lato"; src: url("/fonts/Lato-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "Montserrat"; src: url("/fonts/Montserrat-Regular.ttf");}
@font-face {font-family: "Montserrat"; src: url("/fonts/Montserrat-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "OpenSans"; src: url("/fonts/OpenSans-Regular.ttf");}
@font-face {font-family: "OpenSans"; src: url("/fonts/OpenSans-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "Raleway"; src: url("/fonts/Raleway-Regular.ttf");}
@font-face {font-family: "Raleway"; src: url("/fonts/Raleway-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "RobotoSlab"; src: url("/fonts/RobotoSlab-Regular.ttf");}
@font-face {font-family: "RobotoSlab"; src: url("/fonts/RobotoSlab-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "PlayfairDisplay"; src: url("/fonts/PlayfairDisplay-Regular.ttf");}
@font-face {font-family: "PlayfairDisplay"; src: url("/fonts/PlayfairDisplay-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "Merriweather"; src: url("/fonts/Merriweather-Regular.ttf");}
@font-face {font-family: "Merriweather"; src: url("/fonts/Merriweather-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "Lora"; src: url("/fonts/Lora-Regular.ttf");}
@font-face {font-family: "Lora"; src: url("/fonts/Lora-Bold.ttf"); font-weight: bold;}
@font-face {font-family: "Caladea"; src: url("/fonts/Caladea-Regular.ttf");}
@font-face {font-family: "Caladea"; src: url("/fonts/Caladea-Bold.ttf"); font-weight: bold;}

48
public/fonts/fonts.ts Normal file
View File

@ -0,0 +1,48 @@
/**
* Adding a new font family needs to keep "public\fonts\fonts.css" in sync
*
* The followings are handled automatically once the font family name is added to the variable arrays
* 1. It would register font family for React PDF at "components\Resume\ResumePDF\styles.ts"
* 2. It would load font family for React PDF Iframe at "components\Resume\ResumeIFrame.tsx"
* 3. It would add font family selection to Resume Settings at "components\ResumeForm\ThemeForm.tsx"
*
* One caveat while adding a new google font is that sometimes the font doesn't work with React PDF:
* https://github.com/diegomura/react-pdf/issues/915. The solution is to re-export the font with fontforge.
* ./fontforge -lang=ff -c 'Open($1); Generate($2); Close();' old_font.ttf new_font.ttf
* (Note that some fonts might still not work after export.)
*/
export const SANS_SERI_FONT_FAMILIES = [
"Roboto",
"Lato",
"Montserrat",
"OpenSans",
"Raleway",
] as const;
export const SERI_FONT_FAMILIES = [
"Caladea",
"Lora",
"RobotoSlab",
"PlayfairDisplay",
"Merriweather",
] as const;
export const FONT_FAMILIES = [
...SANS_SERI_FONT_FAMILIES,
...SERI_FONT_FAMILIES,
];
export type FontFamily = (typeof FONT_FAMILIES)[number];
export const FONT_FAMILY_TO_STANDARD_SIZE_IN_PT: Record<FontFamily, number> = {
Roboto: 11,
Lato: 11,
Montserrat: 10,
OpenSans: 10,
Raleway: 10,
Caladea: 11,
Lora: 11,
RobotoSlab: 10,
PlayfairDisplay: 10,
Merriweather: 10,
};

10
public/logo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>

Before

Width:  |  Height:  |  Size: 629 B

View File

@ -0,0 +1,46 @@
import { cx } from "lib/cx";
import { Tooltip } from "components/Tooltip";
type ReactButtonProps = React.ComponentProps<"button">;
type ReactAnchorProps = React.ComponentProps<"a">;
type ButtonProps = ReactButtonProps | ReactAnchorProps;
const isAnchor = (props: ButtonProps): props is ReactAnchorProps => {
return "href" in props;
};
export const Button = (props: ButtonProps) => {
if (isAnchor(props)) {
return <a {...props} />;
} else {
return <button type="button" {...props} />;
}
};
export const PrimaryButton = ({ className, ...props }: ButtonProps) => (
<Button className={cx("btn-primary", className)} {...props} />
);
type IconButtonProps = ButtonProps & {
size?: "small" | "medium";
tooltipText: string;
};
export const IconButton = ({
className,
size = "medium",
tooltipText,
...props
}: IconButtonProps) => (
<Tooltip text={tooltipText}>
<Button
type="button"
className={cx(
"rounded-full outline-none hover:bg-gray-100 focus-visible:bg-gray-100",
size === "medium" ? "p-1.5" : "p-1",
className
)}
{...props}
/>
</Tooltip>
);

View File

@ -0,0 +1,26 @@
/**
* ExpanderWithHeightTransition is a div wrapper with built-in transition animation based on height.
* If expanded is true, it slowly expands its content and vice versa.
*
* Note: There is no easy way to animate height transition in CSS: https://github.com/w3c/csswg-drafts/issues/626.
* This is a clever solution based on css grid and is borrowed from https://css-tricks.com/css-grid-can-do-auto-height-transitions/
*
*/
export const ExpanderWithHeightTransition = ({
expanded,
children,
}: {
expanded: boolean;
children: React.ReactNode;
}) => {
return (
<div
className={`grid overflow-hidden transition-all duration-300 ${
expanded ? "visible" : "invisible"
}`}
style={{ gridTemplateRows: expanded ? "1fr" : "0fr" }}
>
<div className="min-h-0">{children}</div>
</div>
);
};

View File

@ -0,0 +1,19 @@
/**
* FlexboxSpacer can be used to create empty space in flex.
* It is a div that grows to fill the available space specified by maxWidth.
* You can also set a minimum width with minWidth.
*/
export const FlexboxSpacer = ({
maxWidth,
minWidth = 0,
className = "",
}: {
maxWidth: number;
minWidth?: number;
className?: string;
}) => (
<div
className={`invisible shrink-[10000] grow ${className}`}
style={{ maxWidth: `${maxWidth}px`, minWidth: `${minWidth}px` }}
/>
);

View File

@ -0,0 +1,84 @@
"use client";
import { useEffect } from "react";
import { useSetDefaultScale } from "components/Resume/hooks";
import {
MagnifyingGlassIcon,
ArrowDownTrayIcon,
} from "@heroicons/react/24/outline";
import { usePDF } from "@react-pdf/renderer";
import dynamic from "next/dynamic";
const ResumeControlBarComponent = ({
scale,
setScale,
documentSize,
document,
fileName,
}: {
scale: number;
setScale: (scale: number) => void;
documentSize: string;
document: JSX.Element;
fileName: string;
}) => {
const { scaleOnResize, setScaleOnResize } = useSetDefaultScale({
setScale,
documentSize,
});
const [instance, update] = usePDF({ document });
// Hook to update pdf when document changes
useEffect(() => {
update();
}, [update, document]);
return (
<div className="sticky bottom-0 left-0 right-0 flex h-[var(--resume-control-bar-height)] items-center justify-between px-[var(--resume-padding)] text-gray-600">
<div className="flex items-center gap-2">
<MagnifyingGlassIcon className="h-5 w-5" aria-hidden="true" />
<input
type="range"
min={0.5}
max={1.5}
step={0.01}
value={scale}
onChange={(e) => {
setScaleOnResize(false);
setScale(Number(e.target.value));
}}
/>
<div className="w-10">{`${Math.round(scale * 100)}%`}</div>
<label className="flex items-center gap-1">
<input
type="checkbox"
className="mt-0.5 h-4 w-4"
checked={scaleOnResize}
onChange={() => setScaleOnResize((prev) => !prev)}
/>
<span className="select-none">Autoscale</span>
</label>
</div>
<a
className="ml-8 flex items-center gap-1 rounded-md border border-gray-300 px-3 py-0.5 hover:bg-gray-100"
href={instance.url!}
download={fileName}
>
<ArrowDownTrayIcon className="h-4 w-4" />
<span>Download Resume</span>
</a>
</div>
);
};
// Make ResumeControlBar dynamic to make nextjs happy
export const ResumeControlBar = dynamic(
() => Promise.resolve(ResumeControlBarComponent),
{
ssr: false,
}
);
export const ResumeControlBarBorder = () => (
<div className="absolute bottom-[var(--resume-control-bar-height)] w-full border-t-2 bg-gray-50" />
);

View File

@ -0,0 +1,108 @@
"use client";
import { FONT_FAMILIES } from "public/fonts/fonts";
import Frame from "react-frame-component";
import {
A4_HEIGHT_PX,
A4_WIDTH_PX,
LETTER_HEIGHT_PX,
LETTER_WIDTH_PT,
LETTER_WIDTH_PX,
} from "lib/constants";
import dynamic from "next/dynamic";
const IFRAME_INITIAL_CONTENT_FONT_FAMILIES_PRELOAD_LINKS = FONT_FAMILIES.map(
(
font
) => `<link rel="preload" as="font" href="/fonts/${font}-Regular.ttf" type="font/ttf" crossorigin="anonymous">
<link rel="preload" as="font" href="/fonts/${font}-Bold.ttf" type="font/ttf" crossorigin="anonymous">`
).join("");
const IFRAME_INITIAL_CONTENT_FONT_FAMILIES_FONT_FACE = FONT_FAMILIES.map(
(
font
) => `@font-face {font-family: "${font}"; src: url("/fonts/${font}-Regular.ttf");}
@font-face {font-family: "${font}"; src: url("/fonts/${font}-Bold.ttf"); font-weight: bold;}`
).join("");
const IFRAME_INITIAL_CONTENT = `<!DOCTYPE html>
<html>
<head>
${IFRAME_INITIAL_CONTENT_FONT_FAMILIES_PRELOAD_LINKS}
<style>
${IFRAME_INITIAL_CONTENT_FONT_FAMILIES_FONT_FACE}
</style>
</head>
<body style='overflow: hidden; width: ${LETTER_WIDTH_PT}pt; margin: 0; padding: 0;'>
<div></div>
</body>
</html>`;
/**
* IFrame is used here for style isolation, since react pdf uses pt unit.
* It creates a sandbox document body that uses letter/A4 size as width.
*/
const ResumeIFrameComponent = ({
documentSize,
scale,
children,
enablePDFViewer = false,
}: {
documentSize: string;
scale: number;
children: React.ReactNode;
enablePDFViewer?: boolean;
}) => {
if (enablePDFViewer) {
return (
<DynamicPDFViewer className="h-full w-full">
{children as any}
</DynamicPDFViewer>
);
}
const width = documentSize === "A4" ? A4_WIDTH_PX : LETTER_WIDTH_PX;
const height = documentSize === "A4" ? A4_HEIGHT_PX : LETTER_HEIGHT_PX;
return (
<div
style={{
maxWidth: `${width * scale}px`,
maxHeight: `${height * scale}px`,
}}
>
{/* There is an outer div and an inner div here. The inner div sets the iframe width and uses transform scale to zoom in/out the resume iframe.
While zooming out or scaling down via transform, the element appears smaller but still occupies the same width/height. Therefore, we use the
outer div to restrict the max width & height proportionally */}
<div
style={{
width: `${width}px`,
height: `${height}px`,
transform: `scale(${scale})`,
}}
className={`origin-top-left bg-white shadow-lg`}
>
<Frame
style={{ width: "100%", height: "100%" }}
initialContent={IFRAME_INITIAL_CONTENT}
>
{children}
</Frame>
</div>
</div>
);
};
// Iframe can't be server side rendered, so we use dynamic import to load it only on client side
export const ResumeIFrame = dynamic(
() => Promise.resolve(ResumeIFrameComponent),
{
ssr: false,
}
);
// PDFViewer is only used for debugging. Its size is quite large, so we make it dynamic import
const DynamicPDFViewer = dynamic(
() => import("@react-pdf/renderer").then((module) => module.PDFViewer),
{
ssr: false,
}
);

View File

@ -0,0 +1,32 @@
import { View } from "@react-pdf/renderer";
import {
ResumePDFSection,
ResumePDFBulletList,
} from "components/Resume/ResumePDF/common";
import { styles } from "components/Resume/ResumePDF/styles";
import type { ResumeCustom } from "lib/redux/types";
export const ResumePDFCustom = ({
heading,
custom,
themeColor,
showBulletPoints,
}: {
heading: string;
custom: ResumeCustom;
themeColor: string;
showBulletPoints: boolean;
}) => {
const { descriptions } = custom;
return (
<ResumePDFSection themeColor={themeColor} heading={heading}>
<View style={{ ...styles.flexCol }}>
<ResumePDFBulletList
items={descriptions}
showBulletPoints={showBulletPoints}
/>
</View>
</ResumePDFSection>
);
};

View File

@ -0,0 +1,64 @@
import { View } from "@react-pdf/renderer";
import {
ResumePDFBulletList,
ResumePDFSection,
ResumePDFText,
} from "components/Resume/ResumePDF/common";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import type { ResumeEducation } from "lib/redux/types";
export const ResumePDFEducation = ({
heading,
educations,
themeColor,
showBulletPoints,
}: {
heading: string;
educations: ResumeEducation[];
themeColor: string;
showBulletPoints: boolean;
}) => {
return (
<ResumePDFSection themeColor={themeColor} heading={heading}>
{educations.map(
({ school, degree, date, gpa, descriptions = [] }, idx) => {
// Hide school name if it is the same as the previous school
const hideSchoolName =
idx > 0 && school === educations[idx - 1].school;
const showDescriptions = descriptions.join() !== "";
return (
<View key={idx}>
{!hideSchoolName && (
<ResumePDFText bold={true}>{school}</ResumePDFText>
)}
<View
style={{
...styles.flexRowBetween,
marginTop: hideSchoolName
? "-" + spacing["1"]
: spacing["1.5"],
}}
>
<ResumePDFText>{`${
gpa
? `${degree} - ${Number(gpa) ? gpa + " GPA" : gpa}`
: degree
}`}</ResumePDFText>
<ResumePDFText>{date}</ResumePDFText>
</View>
{showDescriptions && (
<View style={{ ...styles.flexCol, marginTop: spacing["1.5"] }}>
<ResumePDFBulletList
items={descriptions}
showBulletPoints={showBulletPoints}
/>
</View>
)}
</View>
);
}
)}
</ResumePDFSection>
);
};

View File

@ -0,0 +1,88 @@
import { View } from "@react-pdf/renderer";
import {
ResumePDFIcon,
type IconType,
} from "components/Resume/ResumePDF/common/ResumePDFIcon";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import {
ResumePDFLink,
ResumePDFSection,
ResumePDFText,
} from "components/Resume/ResumePDF/common";
import type { ResumeProfile } from "lib/redux/types";
export const ResumePDFProfile = ({
profile,
themeColor,
isPDF,
}: {
profile: ResumeProfile;
themeColor: string;
isPDF: boolean;
}) => {
const { name, email, phone, url, summary, location } = profile;
const iconProps = { email, phone, location, url };
return (
<ResumePDFSection style={{ marginTop: spacing["4"] }}>
<ResumePDFText
bold={true}
themeColor={themeColor}
style={{ fontSize: "20pt" }}
>
{name}
</ResumePDFText>
{summary && <ResumePDFText>{summary}</ResumePDFText>}
<View
style={{
...styles.flexRowBetween,
flexWrap: "wrap",
marginTop: spacing["0.5"],
}}
>
{Object.entries(iconProps).map(([key, value]) => {
if (!value) return null;
let iconType = key as IconType;
if (key === "url") {
if (value.includes("github")) {
iconType = "url_github";
} else if (value.includes("linkedin")) {
iconType = "url_linkedin";
}
}
const shouldUseLinkWrapper = ["email", "url"].includes(key);
const Wrapper = ({ children }: { children: React.ReactNode }) => {
if (!shouldUseLinkWrapper) return <>{children}</>;
return (
<ResumePDFLink
src={key === "email" ? `mailto:${value}` : `https://${value}`}
isPDF={isPDF}
>
{children}
</ResumePDFLink>
);
};
return (
<View
key={key}
style={{
...styles.flexRow,
alignItems: "center",
gap: spacing["1"],
}}
>
<ResumePDFIcon type={iconType} isPDF={isPDF} />
<Wrapper>
<ResumePDFText>{value}</ResumePDFText>
</Wrapper>
</View>
);
})}
</View>
</ResumePDFSection>
);
};

View File

@ -0,0 +1,39 @@
import { View } from "@react-pdf/renderer";
import {
ResumePDFSection,
ResumePDFBulletList,
ResumePDFText,
} from "components/Resume/ResumePDF/common";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import type { ResumeProject } from "lib/redux/types";
export const ResumePDFProject = ({
heading,
projects,
themeColor,
}: {
heading: string;
projects: ResumeProject[];
themeColor: string;
}) => {
return (
<ResumePDFSection themeColor={themeColor} heading={heading}>
{projects.map(({ project, date, descriptions }, idx) => (
<View key={idx}>
<View
style={{
...styles.flexRowBetween,
marginTop: spacing["0.5"],
}}
>
<ResumePDFText bold={true}>{project}</ResumePDFText>
<ResumePDFText>{date}</ResumePDFText>
</View>
<View style={{ ...styles.flexCol, marginTop: spacing["0.5"] }}>
<ResumePDFBulletList items={descriptions} />
</View>
</View>
))}
</ResumePDFSection>
);
};

View File

@ -0,0 +1,66 @@
import { View } from "@react-pdf/renderer";
import {
ResumePDFSection,
ResumePDFBulletList,
ResumeFeaturedSkill,
} from "components/Resume/ResumePDF/common";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import type { ResumeSkills } from "lib/redux/types";
export const ResumePDFSkills = ({
heading,
skills,
themeColor,
showBulletPoints,
}: {
heading: string;
skills: ResumeSkills;
themeColor: string;
showBulletPoints: boolean;
}) => {
const { descriptions, featuredSkills } = skills;
const featuredSkillsWithText = featuredSkills.filter((item) => item.skill);
const featuredSkillsPair = [
[featuredSkillsWithText[0], featuredSkillsWithText[3]],
[featuredSkillsWithText[1], featuredSkillsWithText[4]],
[featuredSkillsWithText[2], featuredSkillsWithText[5]],
];
return (
<ResumePDFSection themeColor={themeColor} heading={heading}>
{featuredSkillsWithText.length > 0 && (
<View style={{ ...styles.flexRowBetween, marginTop: spacing["0.5"] }}>
{featuredSkillsPair.map((pair, idx) => (
<View
key={idx}
style={{
...styles.flexCol,
}}
>
{pair.map((featuredSkill, idx) => {
if (!featuredSkill) return null;
return (
<ResumeFeaturedSkill
key={idx}
skill={featuredSkill.skill}
rating={featuredSkill.rating}
themeColor={themeColor}
style={{
justifyContent: "flex-end",
}}
/>
);
})}
</View>
))}
</View>
)}
<View style={{ ...styles.flexCol }}>
<ResumePDFBulletList
items={descriptions}
showBulletPoints={showBulletPoints}
/>
</View>
</ResumePDFSection>
);
};

View File

@ -0,0 +1,50 @@
import { View } from "@react-pdf/renderer";
import {
ResumePDFSection,
ResumePDFBulletList,
ResumePDFText,
} from "components/Resume/ResumePDF/common";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import type { ResumeWorkExperience } from "lib/redux/types";
export const ResumePDFWorkExperience = ({
heading,
workExperiences,
themeColor,
}: {
heading: string;
workExperiences: ResumeWorkExperience[];
themeColor: string;
}) => {
return (
<ResumePDFSection themeColor={themeColor} heading={heading}>
{workExperiences.map(({ company, jobTitle, date, descriptions }, idx) => {
// Hide company name if it is the same as the previous company
const hideCompanyName =
idx > 0 && company === workExperiences[idx - 1].company;
return (
<View key={idx} style={idx !== 0 ? { marginTop: spacing["2"] } : {}}>
{!hideCompanyName && (
<ResumePDFText bold={true}>{company}</ResumePDFText>
)}
<View
style={{
...styles.flexRowBetween,
marginTop: hideCompanyName
? "-" + spacing["1"]
: spacing["1.5"],
}}
>
<ResumePDFText>{jobTitle}</ResumePDFText>
<ResumePDFText>{date}</ResumePDFText>
</View>
<View style={{ ...styles.flexCol, marginTop: spacing["1.5"] }}>
<ResumePDFBulletList items={descriptions} />
</View>
</View>
);
})}
</ResumePDFSection>
);
};

View File

@ -0,0 +1,67 @@
import { Svg, Path } from "@react-pdf/renderer";
import { styles } from "components/Resume/ResumePDF/styles";
/**
* Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License
* - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc.
*/
const EMAIL_PATH_D =
"M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z";
const PHONE_PATH_D =
"M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";
const LOCATION_PATH_D =
"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z";
const URL_PATH_D =
"M256 64C256 46.33 270.3 32 288 32H415.1C415.1 32 415.1 32 415.1 32C420.3 32 424.5 32.86 428.2 34.43C431.1 35.98 435.5 38.27 438.6 41.3C438.6 41.35 438.6 41.4 438.7 41.44C444.9 47.66 447.1 55.78 448 63.9C448 63.94 448 63.97 448 64V192C448 209.7 433.7 224 416 224C398.3 224 384 209.7 384 192V141.3L214.6 310.6C202.1 323.1 181.9 323.1 169.4 310.6C156.9 298.1 156.9 277.9 169.4 265.4L338.7 96H288C270.3 96 256 81.67 256 64V64zM0 128C0 92.65 28.65 64 64 64H160C177.7 64 192 78.33 192 96C192 113.7 177.7 128 160 128H64V416H352V320C352 302.3 366.3 288 384 288C401.7 288 416 302.3 416 320V416C416 451.3 387.3 480 352 480H64C28.65 480 0 451.3 0 416V128z";
const GITHUB_PATH_D =
"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z";
const LINKEDIN_PATH_D =
"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z";
const TYPE_TO_PATH_D = {
email: EMAIL_PATH_D,
phone: PHONE_PATH_D,
location: LOCATION_PATH_D,
url: URL_PATH_D,
url_github: GITHUB_PATH_D,
url_linkedin: LINKEDIN_PATH_D,
} as const;
export type IconType =
| "email"
| "phone"
| "location"
| "url"
| "url_github"
| "url_linkedin";
export const ResumePDFIcon = ({
type,
isPDF,
}: {
type: IconType;
isPDF: boolean;
}) => {
const pathD = TYPE_TO_PATH_D[type];
if (isPDF) {
return <PDFIcon pathD={pathD} />;
}
return <SVGIcon pathD={pathD} />;
};
const { width, height, fill } = styles.icon;
const PDFIcon = ({ pathD }: { pathD: string }) => (
<Svg viewBox="0 0 512 512" style={{ width, height }}>
<Path d={pathD} fill={fill} />
</Svg>
);
const SVGIcon = ({ pathD }: { pathD: string }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
style={{ width, height, fill }}
>
<path d={pathD} />
</svg>
);

View File

@ -0,0 +1,19 @@
"use client";
/**
* Suppress ResumePDF development errors.
* See ResumePDF doc string for context.
*/
if (typeof window !== "undefined" && window.location.hostname === "localhost") {
const consoleError = console.error;
const SUPPRESSED_WARNINGS = ["DOCUMENT", "PAGE", "TEXT", "VIEW"];
console.error = function filterWarnings(msg, ...args) {
if (!SUPPRESSED_WARNINGS.some((entry) => args[0]?.includes(entry))) {
consoleError(msg, ...args);
}
};
}
export const SuppressResumePDFErrorMessage = () => {
return <></>;
};

View File

@ -0,0 +1,175 @@
import { Text, View, Link } from "@react-pdf/renderer";
import type { Style } from "@react-pdf/types";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import { DEBUG_RESUME_PDF_FLAG } from "lib/constants";
import { DEFAULT_FONT_COLOR } from "lib/redux/settingsSlice";
export const ResumePDFSection = ({
themeColor,
heading,
style = {},
children,
}: {
themeColor?: string;
heading?: string;
style?: Style;
children: React.ReactNode;
}) => (
<View
style={{
...styles.flexCol,
gap: spacing["2"],
marginTop: spacing["5"],
...style,
}}
>
{heading && (
<View style={{ ...styles.flexRow, alignItems: "center" }}>
{themeColor && (
<View
style={{
height: "3.75pt",
width: "30pt",
backgroundColor: themeColor,
marginRight: spacing["3.5"],
}}
debug={DEBUG_RESUME_PDF_FLAG}
/>
)}
<Text
style={{
fontWeight: "bold",
letterSpacing: "0.3pt", // tracking-wide -> 0.025em * 12 pt = 0.3pt
}}
debug={DEBUG_RESUME_PDF_FLAG}
>
{heading}
</Text>
</View>
)}
{children}
</View>
);
export const ResumePDFText = ({
bold = false,
themeColor,
style = {},
children,
}: {
bold?: boolean;
themeColor?: string;
style?: Style;
children: React.ReactNode;
}) => {
return (
<Text
style={{
color: themeColor || DEFAULT_FONT_COLOR,
fontWeight: bold ? "bold" : "normal",
...style,
}}
debug={DEBUG_RESUME_PDF_FLAG}
>
{children}
</Text>
);
};
export const ResumePDFBulletList = ({
items,
showBulletPoints = true,
}: {
items: string[];
showBulletPoints?: boolean;
}) => {
return (
<>
{items.map((item) => (
<View style={{ ...styles.flexRow }} key={item}>
{showBulletPoints && (
<ResumePDFText
style={{
paddingLeft: spacing["2"],
paddingRight: spacing["2"],
lineHeight: "1.3",
}}
bold={true}
>
{"•"}
</ResumePDFText>
)}
{/* A breaking change was introduced causing text layout to be wider than node's width
https://github.com/diegomura/react-pdf/issues/2182. flexGrow & flexBasis fixes it */}
<ResumePDFText
style={{ lineHeight: "1.3", flexGrow: 1, flexBasis: 0 }}
>
{item}
</ResumePDFText>
</View>
))}
</>
);
};
export const ResumePDFLink = ({
src,
isPDF,
children,
}: {
src: string;
isPDF: boolean;
children: React.ReactNode;
}) => {
if (isPDF) {
return (
<Link src={src} style={{ textDecoration: "none" }}>
{children}
</Link>
);
}
return (
<a
href={src}
style={{ textDecoration: "none" }}
target="_blank"
rel="noreferrer"
>
{children}
</a>
);
};
export const ResumeFeaturedSkill = ({
skill,
rating,
themeColor,
style = {},
}: {
skill: string;
rating: number;
themeColor: string;
style?: Style;
}) => {
const numCircles = 5;
return (
<View style={{ ...styles.flexRow, alignItems: "center", ...style }}>
<ResumePDFText style={{ marginRight: spacing[0.5] }}>
{skill}
</ResumePDFText>
{[...Array(numCircles)].map((_, idx) => (
<View
key={idx}
style={{
height: "9pt",
width: "9pt",
marginLeft: "2.25pt",
backgroundColor: rating >= idx ? themeColor : "#d9d9d9",
borderRadius: "100%",
}}
/>
))}
</View>
);
};

View File

@ -0,0 +1,137 @@
import { Page, View, Document } from "@react-pdf/renderer";
import { styles, spacing } from "components/Resume/ResumePDF/styles";
import { ResumePDFProfile } from "components/Resume/ResumePDF/ResumePDFProfile";
import { ResumePDFWorkExperience } from "components/Resume/ResumePDF/ResumePDFWorkExperience";
import { ResumePDFEducation } from "components/Resume/ResumePDF/ResumePDFEducation";
import { ResumePDFProject } from "components/Resume/ResumePDF/ResumePDFProject";
import { ResumePDFSkills } from "components/Resume/ResumePDF/ResumePDFSkills";
import { ResumePDFCustom } from "components/Resume/ResumePDF/ResumePDFCustom";
import { DEFAULT_FONT_COLOR } from "lib/redux/settingsSlice";
import type { Settings, ShowForm } from "lib/redux/settingsSlice";
import type { Resume } from "lib/redux/types";
import { SuppressResumePDFErrorMessage } from "components/Resume/ResumePDF/common/SuppressResumePDFErrorMessage";
/**
* Note: ResumePDF is supposed to be rendered inside PDFViewer. However,
* PDFViewer is rendered too slow and has noticeable delay as you enter
* the resume form, so we render it without PDFViewer to make it render
* instantly. There are 2 drawbacks with this approach:
* 1. Not everything works out of box if not rendered inside PDFViewer,
* e.g. svg doesn't work, so it takes in a isPDF flag that maps react
* pdf element to the correct dom element.
* 2. It throws a lot of errors in console log, e.g. "<VIEW /> is using incorrect
* casing. Use PascalCase for React components, or lowercase for HTML elements."
* in development, causing a lot of noises. We can possibly workaround this by
* mapping every react pdf element to a dom element, but for now, we simply
* suppress these messages in <SuppressResumePDFErrorMessage />.
* https://github.com/diegomura/react-pdf/issues/239#issuecomment-487255027
*/
export const ResumePDF = ({
resume,
settings,
isPDF = false,
}: {
resume: Resume;
settings: Settings;
isPDF?: boolean;
}) => {
const { profile, workExperiences, educations, projects, skills, custom } =
resume;
const { name } = profile;
const {
fontFamily,
fontSize,
documentSize,
formToHeading,
formToShow,
formsOrder,
showBulletPoints,
} = settings;
const themeColor = settings.themeColor || DEFAULT_FONT_COLOR;
const showFormsOrder = formsOrder.filter((form) => formToShow[form]);
const formTypeToComponent: { [type in ShowForm]: () => JSX.Element } = {
workExperiences: () => (
<ResumePDFWorkExperience
heading={formToHeading["workExperiences"]}
workExperiences={workExperiences}
themeColor={themeColor}
/>
),
educations: () => (
<ResumePDFEducation
heading={formToHeading["educations"]}
educations={educations}
themeColor={themeColor}
showBulletPoints={showBulletPoints["educations"]}
/>
),
projects: () => (
<ResumePDFProject
heading={formToHeading["projects"]}
projects={projects}
themeColor={themeColor}
/>
),
skills: () => (
<ResumePDFSkills
heading={formToHeading["skills"]}
skills={skills}
themeColor={themeColor}
showBulletPoints={showBulletPoints["skills"]}
/>
),
custom: () => (
<ResumePDFCustom
heading={formToHeading["custom"]}
custom={custom}
themeColor={themeColor}
showBulletPoints={showBulletPoints["custom"]}
/>
),
};
return (
<>
<Document title={`${name} Resume`} author={name} producer={"OpenResume"}>
<Page
size={documentSize === "A4" ? "A4" : "LETTER"}
style={{
...styles.flexCol,
color: DEFAULT_FONT_COLOR,
fontFamily,
fontSize: fontSize + "pt",
}}
>
{Boolean(settings.themeColor) && (
<View
style={{
width: spacing["full"],
height: spacing[3.5],
backgroundColor: themeColor,
}}
/>
)}
<View
style={{
...styles.flexCol,
padding: `${spacing[0]} ${spacing[20]}`,
}}
>
<ResumePDFProfile
profile={profile}
themeColor={themeColor}
isPDF={isPDF}
/>
{showFormsOrder.map((form) => {
const Component = formTypeToComponent[form];
return <Component key={form} />;
})}
</View>
</Page>
</Document>
<SuppressResumePDFErrorMessage />
</>
);
};

View File

@ -0,0 +1,81 @@
import { StyleSheet, Font } from "@react-pdf/renderer";
import { FONT_FAMILIES } from "public/fonts/fonts";
FONT_FAMILIES.forEach((fontFamily) => {
Font.register({
family: fontFamily,
fonts: [
{
src: `fonts/${fontFamily}-Regular.ttf`,
},
{
src: `fonts/${fontFamily}-Bold.ttf`,
fontWeight: "bold",
},
],
});
});
// Disable hyphenation https://github.com/diegomura/react-pdf/issues/311#issuecomment-548301604
Font.registerHyphenationCallback((word) => [word]);
// Tailwindcss Spacing Design System: https://tailwindcss.com/docs/theme#spacing
// It is converted from rem to pt (1rem = 12pt) since https://react-pdf.org/styling only accepts pt unit
export const spacing = {
0: "0",
0.5: "1.5pt",
1: "3pt",
1.5: "4.5pt",
2: "6pt",
2.5: "7.5pt",
3: "9pt",
3.5: "10.5pt",
4: "12pt",
5: "15pt",
6: "18pt",
7: "21pt",
8: "24pt",
9: "27pt",
10: "30pt",
11: "33pt",
12: "36pt",
14: "42pt",
16: "48pt",
20: "60pt",
24: "72pt",
28: "84pt",
32: "96pt",
36: "108pt",
40: "120pt",
44: "132pt",
48: "144pt",
52: "156pt",
56: "168pt",
60: "180pt",
64: "192pt",
72: "216pt",
80: "240pt",
96: "288pt",
full: "100%",
} as const;
export const styles = StyleSheet.create({
flexRow: {
display: "flex",
flexDirection: "row",
},
flexRowBetween: {
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
},
flexCol: {
display: "flex",
flexDirection: "column",
},
icon: {
width: "13pt",
height: "13pt",
fill: "#525252", // text-neutral-600
},
});

View File

@ -0,0 +1,63 @@
import { useEffect, useState } from "react";
import { A4_HEIGHT_PX, LETTER_HEIGHT_PX } from "lib/constants";
import { getPxPerRem } from "lib/get-px-per-rem";
import { CSS_VARIABLES } from "globals-css";
/**
* useSetDefaultScale sets the default scale of the resume on load.
*
* It computes the scale based on current screen height and derives the default
* resume height by subtracting the screen height from the total heights of top
* nav bar, resume control bar, and resume top & bottom padding.
*/
export const useSetDefaultScale = ({
setScale,
documentSize,
}: {
setScale: (scale: number) => void;
documentSize: string;
}) => {
const [scaleOnResize, setScaleOnResize] = useState(true);
useEffect(() => {
const getDefaultScale = () => {
const screenHeightPx = window.innerHeight;
const PX_PER_REM = getPxPerRem();
const screenHeightRem = screenHeightPx / PX_PER_REM;
const topNavBarHeightRem = parseFloat(
CSS_VARIABLES["--top-nav-bar-height"]
);
const resumeControlBarHeight = parseFloat(
CSS_VARIABLES["--resume-control-bar-height"]
);
const resumePadding = parseFloat(CSS_VARIABLES["--resume-padding"]);
const topAndBottomResumePadding = resumePadding * 2;
const defaultResumeHeightRem =
screenHeightRem -
topNavBarHeightRem -
resumeControlBarHeight -
topAndBottomResumePadding;
const resumeHeightPx = defaultResumeHeightRem * PX_PER_REM;
const height = documentSize === "A4" ? A4_HEIGHT_PX : LETTER_HEIGHT_PX;
const defaultScale = Math.round((resumeHeightPx / height) * 100) / 100;
return defaultScale;
};
const setDefaultScale = () => {
const defaultScale = getDefaultScale();
setScale(defaultScale);
};
setDefaultScale();
if (scaleOnResize) {
window.addEventListener("resize", setDefaultScale);
}
return () => {
window.removeEventListener("resize", setDefaultScale);
};
}, [setScale, scaleOnResize, documentSize]);
return { scaleOnResize, setScaleOnResize };
};

View File

@ -0,0 +1,56 @@
"use client";
import { useState, useMemo } from "react";
import { ResumeIFrame } from "components/Resume/ResumeIFrame";
import { ResumePDF } from "components/Resume/ResumePDF";
import {
ResumeControlBar,
ResumeControlBarBorder,
} from "components/Resume/ResumeControlBar";
import { FlexboxSpacer } from "components/FlexboxSpacer";
import { useAppSelector } from "lib/redux/hooks";
import { selectResume } from "lib/redux/resumeSlice";
import { selectSettings } from "lib/redux/settingsSlice";
import { DEBUG_RESUME_PDF_FLAG } from "lib/constants";
const Resume = () => {
const [scale, setScale] = useState(0.8);
const resume = useAppSelector(selectResume);
const settings = useAppSelector(selectSettings);
const document = useMemo(
() => <ResumePDF resume={resume} settings={settings} isPDF={true} />,
[resume, settings]
);
return (
<div className="relative flex">
<FlexboxSpacer maxWidth={50} />
<div className="relative">
<section
className={`h-[calc(100vh-var(--top-nav-bar-height)-var(--resume-control-bar-height))] overflow-hidden p-[var(--resume-padding)]`}
>
<ResumeIFrame
documentSize={settings.documentSize}
scale={scale}
enablePDFViewer={DEBUG_RESUME_PDF_FLAG}
>
<ResumePDF
resume={resume}
settings={settings}
isPDF={DEBUG_RESUME_PDF_FLAG}
/>
</ResumeIFrame>
</section>
<ResumeControlBar
scale={scale}
setScale={setScale}
documentSize={settings.documentSize}
document={document}
fileName={resume.profile.name + " - Resume"}
/>
</div>
<ResumeControlBarBorder />
</div>
);
};
export default Resume;

View File

@ -0,0 +1,188 @@
import { useState } from "react";
import { LockClosedIcon } from "@heroicons/react/24/solid";
import { XMarkIcon } from "@heroicons/react/24/outline";
import { parseResumeFromPdf } from "lib/parse-resume-from-pdf";
import { saveStateToLocalStorage } from "lib/redux/local-storage";
import { initialSettings } from "lib/redux/settingsSlice";
import { useRouter } from "next/navigation";
import addPdfSrc from "public/assets/add-pdf.svg";
import Image from "next/image";
import { cx } from "lib/cx";
const defaultFileState = {
name: "",
size: 0,
fileUrl: "",
};
export const ResumeDropzone = ({
onFileUrlChange,
className,
playgroundView = false,
}: {
onFileUrlChange: (fileUrl: string) => void;
className?: string;
playgroundView?: boolean;
}) => {
const [file, setFile] = useState(defaultFileState);
const [isHoveredOnDropzone, setIsHoveredOnDropzone] = useState(false);
const [hasNonPdfFile, setHasNonPdfFile] = useState(false);
const router = useRouter();
const hasFile = Boolean(file.name);
const setNewFile = (newFile: File) => {
if (file.fileUrl) {
URL.revokeObjectURL(file.fileUrl);
}
const { name, size } = newFile;
const fileUrl = URL.createObjectURL(newFile);
setFile({ name, size, fileUrl });
onFileUrlChange(fileUrl);
};
const onDrop = (event: React.DragEvent<HTMLDivElement>) => {
event.preventDefault();
const newFile = event.dataTransfer.files[0];
if (newFile.name.endsWith(".pdf")) {
setHasNonPdfFile(false);
setNewFile(newFile);
} else {
setHasNonPdfFile(true);
}
setIsHoveredOnDropzone(false);
};
const onInputChange = async (event: React.ChangeEvent<HTMLInputElement>) => {
const files = event.target.files;
if (!files) return;
const newFile = files[0];
setNewFile(newFile);
};
const onRemove = () => {
setFile(defaultFileState);
onFileUrlChange("");
};
const onImportClick = async () => {
const resume = await parseResumeFromPdf(file.fileUrl);
saveStateToLocalStorage({ resume, settings: initialSettings });
router.push("/resume-builder");
};
return (
<div
className={cx(
"flex justify-center rounded-md border-2 border-dashed border-gray-300 px-6 ",
isHoveredOnDropzone && "border-sky-400",
playgroundView ? "pb-6 pt-4" : "py-12",
className
)}
onDragOver={(event) => {
event.preventDefault();
setIsHoveredOnDropzone(true);
}}
onDragLeave={() => setIsHoveredOnDropzone(false)}
onDrop={onDrop}
>
<div
className={cx(
"text-center",
playgroundView ? "space-y-2" : "space-y-3"
)}
>
{!playgroundView && (
<Image
src={addPdfSrc}
className="mx-auto h-14 w-14"
alt="Add pdf"
aria-hidden="true"
priority
/>
)}
{!hasFile ? (
<>
<p
className={cx(
"pt-3 text-gray-700",
!playgroundView && "text-lg font-semibold"
)}
>
Browse a pdf file or drop it here
</p>
<p className="flex items-center justify-center text-sm text-gray-500">
<LockClosedIcon className="mr-1 h-3 w-3 text-gray-400" />
File data is used locally and never leaves your browser
</p>
</>
) : (
<div className="flex items-center justify-center gap-3 pt-3">
<div className="pl-7 font-semibold text-gray-900">
{file.name} - {getFileSizeString(file.size)}
</div>
<button
type="button"
className="outline-theme-blue rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-500"
title="Remove file"
onClick={onRemove}
>
<XMarkIcon className="h-6 w-6" />
</button>
</div>
)}
<div className="pt-4">
{!hasFile ? (
<>
<label
className={cx(
"within-outline-theme-purple cursor-pointer rounded-full px-6 pb-2.5 pt-2 font-semibold shadow-sm",
playgroundView ? "border" : "bg-primary"
)}
>
Browse file
<input
type="file"
className="sr-only"
accept=".pdf"
onChange={onInputChange}
/>
</label>
{hasNonPdfFile && (
<p className="mt-6 text-red-400">Only pdf file is supported</p>
)}
</>
) : (
<>
{!playgroundView && (
<button
type="button"
className="btn-primary"
onClick={onImportClick}
>
Import and Continue <span aria-hidden="true"></span>
</button>
)}
<p className={cx(" text-gray-500", !playgroundView && "mt-6")}>
Note: {!playgroundView ? "Import" : "Parser"} works best on
single column resume
</p>
</>
)}
</div>
</div>
</div>
);
};
const getFileSizeString = (fileSizeB: number) => {
const fileSizeKB = fileSizeB / 1024;
const fileSizeMB = fileSizeKB / 1024;
if (fileSizeKB < 1000) {
return fileSizeKB.toPrecision(3) + " KB";
} else {
return fileSizeMB.toPrecision(3) + " MB";
}
};

View File

@ -0,0 +1,49 @@
import { Form } from "components/ResumeForm/Form";
import { BulletListIconButton } from "components/ResumeForm/Form/IconButton";
import { BulletListTextarea } from "components/ResumeForm/Form/InputGroup";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import { changeCustom, selectCustom } from "lib/redux/resumeSlice";
import {
selectShowBulletPoints,
changeShowBulletPoints,
} from "lib/redux/settingsSlice";
export const CustomForm = () => {
const custom = useAppSelector(selectCustom);
const dispatch = useAppDispatch();
const { descriptions } = custom;
const form = "custom";
const showBulletPoints = useAppSelector(selectShowBulletPoints(form));
const handleCustomChange = (field: "descriptions", value: string[]) => {
dispatch(changeCustom({ field, value }));
};
const handleShowBulletPoints = (value: boolean) => {
dispatch(changeShowBulletPoints({ field: form, value }));
};
return (
<Form form={form}>
<div className="col-span-full grid grid-cols-6 gap-3">
<div className="relative col-span-full">
<BulletListTextarea
label="Custom Textbox"
labelClassName="col-span-full"
name="descriptions"
placeholder="Bullet points"
value={descriptions}
onChange={handleCustomChange}
showBulletPoints={showBulletPoints}
/>
<div className="absolute left-[7.7rem] top-[0.07rem]">
<BulletListIconButton
showBulletPoints={showBulletPoints}
onClick={handleShowBulletPoints}
/>
</div>
</div>
</div>
</Form>
);
};

View File

@ -0,0 +1,106 @@
import { Form, FormSection } from "components/ResumeForm/Form";
import {
BulletListTextarea,
Input,
} from "components/ResumeForm/Form/InputGroup";
import { BulletListIconButton } from "components/ResumeForm/Form/IconButton";
import type { CreateHandleChangeArgsWithDescriptions } from "components/ResumeForm/types";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import { changeEducations, selectEducations } from "lib/redux/resumeSlice";
import type { ResumeEducation } from "lib/redux/types";
import {
changeShowBulletPoints,
selectShowBulletPoints,
} from "lib/redux/settingsSlice";
export const EducationsForm = () => {
const educations = useAppSelector(selectEducations);
const dispatch = useAppDispatch();
const showDelete = educations.length > 1;
const form = "educations";
const showBulletPoints = useAppSelector(selectShowBulletPoints(form));
return (
<Form form={form} addButtonText="Add School">
{educations.map(({ school, degree, gpa, date, descriptions }, idx) => {
const handleEducationChange = (
...[
field,
value,
]: CreateHandleChangeArgsWithDescriptions<ResumeEducation>
) => {
dispatch(changeEducations({ idx, field, value } as any));
};
const handleShowBulletPoints = (value: boolean) => {
dispatch(changeShowBulletPoints({ field: form, value }));
};
const showMoveUp = idx !== 0;
const showMoveDown = idx !== educations.length - 1;
return (
<FormSection
key={idx}
form="educations"
idx={idx}
showMoveUp={showMoveUp}
showMoveDown={showMoveDown}
showDelete={showDelete}
deleteButtonTooltipText="Delete school"
>
<Input
label="School"
labelClassName="col-span-4"
name="school"
placeholder="Cornell University"
value={school}
onChange={handleEducationChange}
/>
<Input
label="Date"
labelClassName="col-span-2"
name="date"
placeholder="May 2018"
value={date}
onChange={handleEducationChange}
/>
<Input
label="Degree & Major"
labelClassName="col-span-4"
name="degree"
placeholder="Bachelor of Science in Computer Engineering"
value={degree}
onChange={handleEducationChange}
/>
<Input
label="GPA"
labelClassName="col-span-2"
name="gpa"
placeholder="3.81"
value={gpa}
onChange={handleEducationChange}
/>
<div className="relative col-span-full">
<BulletListTextarea
label="Additional Information (Optional)"
labelClassName="col-span-full"
name="descriptions"
placeholder="Free paragraph space to list out additional activities, courses, awards etc"
value={descriptions}
onChange={handleEducationChange}
showBulletPoints={showBulletPoints}
/>
<div className="absolute left-[15.6rem] top-[0.07rem]">
<BulletListIconButton
showBulletPoints={showBulletPoints}
onClick={handleShowBulletPoints}
/>
</div>
</div>
</FormSection>
);
})}
</Form>
);
};

View File

@ -0,0 +1,73 @@
import React, { useState } from "react";
import { INPUT_CLASS_NAME } from "components/ResumeForm/Form/InputGroup";
export const FeaturedSkillInput = ({
skill,
rating,
setSkillRating,
placeholder,
className,
circleColor,
}: {
skill: string;
rating: number;
setSkillRating: (skill: string, rating: number) => void;
placeholder: string;
className?: string;
circleColor?: string;
}) => {
return (
<div className={`flex ${className}`}>
<input
type="text"
value={skill}
placeholder={placeholder}
onChange={(e) => setSkillRating(e.target.value, rating)}
className={INPUT_CLASS_NAME}
/>
<CircleRating
rating={rating}
setRating={(newRating) => setSkillRating(skill, newRating)}
circleColor={circleColor}
/>
</div>
);
};
const CircleRating = ({
rating,
setRating,
circleColor = "#38bdf8",
}: {
rating: number;
setRating: (rating: number) => void;
circleColor?: string;
}) => {
const numCircles = 5;
const [hoverRating, setHoverRating] = useState<number | null>(null);
return (
<div className="flex items-center p-2">
{[...Array(numCircles)].map((_, idx) => (
<div
className={`cursor-pointer p-0.5`}
key={idx}
onClick={() => setRating(idx)}
onMouseEnter={() => setHoverRating(idx)}
onMouseLeave={() => setHoverRating(null)}
>
<div
className="h-5 w-5 rounded-full transition-transform duration-200 hover:scale-[120%] "
style={{
backgroundColor:
(hoverRating !== null && hoverRating >= idx) ||
(hoverRating === null && rating >= idx)
? circleColor
: "#d1d5db", //gray-300
}}
/>
</div>
))}
</div>
);
};

View File

@ -0,0 +1,100 @@
import { IconButton } from "components/Button";
import {
EyeIcon,
EyeSlashIcon,
ArrowSmallUpIcon,
ArrowSmallDownIcon,
TrashIcon,
ListBulletIcon,
} from "@heroicons/react/24/outline";
export const ShowIconButton = ({
show,
setShow,
}: {
show: boolean;
setShow: (show: boolean) => void;
}) => {
const tooltipText = show ? "Hide section" : "Show section";
const onClick = () => {
setShow(!show);
};
const Icon = show ? EyeIcon : EyeSlashIcon;
return (
<IconButton onClick={onClick} tooltipText={tooltipText}>
<Icon className="h-6 w-6 text-gray-400" aria-hidden="true" />
<span className="sr-only">{tooltipText}</span>
</IconButton>
);
};
type MoveIconButtonType = "up" | "down";
export const MoveIconButton = ({
type,
size = "medium",
onClick,
}: {
type: MoveIconButtonType;
size?: "small" | "medium";
onClick: (type: MoveIconButtonType) => void;
}) => {
const tooltipText = type === "up" ? "Move up" : "Move down";
const sizeClassName = size === "medium" ? "h-6 w-6" : "h-4 w-4";
const Icon = type === "up" ? ArrowSmallUpIcon : ArrowSmallDownIcon;
return (
<IconButton
onClick={() => onClick(type)}
tooltipText={tooltipText}
size={size}
>
<Icon className={`${sizeClassName} text-gray-400`} aria-hidden="true" />
<span className="sr-only">{tooltipText}</span>
</IconButton>
);
};
export const DeleteIconButton = ({
onClick,
tooltipText,
}: {
onClick: () => void;
tooltipText: string;
}) => {
return (
<IconButton onClick={onClick} tooltipText={tooltipText} size="small">
<TrashIcon className="h-4 w-4 text-gray-400" aria-hidden="true" />
<span className="sr-only">{tooltipText}</span>
</IconButton>
);
};
export const BulletListIconButton = ({
onClick,
showBulletPoints,
}: {
onClick: (newShowBulletPoints: boolean) => void;
showBulletPoints: boolean;
}) => {
const tooltipText = showBulletPoints
? "Hide bullet points"
: "Show bullet points";
return (
<IconButton
onClick={() => onClick(!showBulletPoints)}
tooltipText={tooltipText}
size="small"
className={showBulletPoints ? "!bg-sky-100" : ""}
>
<ListBulletIcon
className={`h-4 w-4 ${
showBulletPoints ? "text-gray-700" : "text-gray-400"
}`}
aria-hidden="true"
/>
<span className="sr-only">{tooltipText}</span>
</IconButton>
);
};

View File

@ -0,0 +1,162 @@
import ContentEditable from "react-contenteditable";
import { useAutosizeTextareaHeight } from "lib/hooks/useAutosizeTextareaHeight";
interface InputProps<K extends string, V extends string | string[]> {
label: string;
labelClassName?: string;
// name is passed in as a const string. Therefore, we make it a generic type so its type can
// be more restricted as a const for the first argument in onChange
name: K;
value?: V;
placeholder: string;
onChange: (name: K, value: V) => void;
}
/**
* InputGroupWrapper wraps a label element around a input children. This is preferable
* than having input as a sibling since it makes clicking label auto focus input children
*/
export const InputGroupWrapper = ({
label,
className,
children,
}: {
label: string;
className?: string;
children?: React.ReactNode;
}) => (
<label className={`text-base font-medium text-gray-700 ${className}`}>
{label}
{children}
</label>
);
export const INPUT_CLASS_NAME =
"mt-1 px-3 py-2 block w-full rounded-md border border-gray-300 text-gray-900 shadow-sm outline-none font-normal text-base";
export const Input = <K extends string>({
name,
value = "",
placeholder,
onChange,
label,
labelClassName,
}: InputProps<K, string>) => {
return (
<InputGroupWrapper label={label} className={labelClassName}>
<input
type="text"
name={name}
value={value}
placeholder={placeholder}
onChange={(e) => onChange(name, e.target.value)}
className={INPUT_CLASS_NAME}
/>
</InputGroupWrapper>
);
};
export const Textarea = <T extends string>({
label,
labelClassName: wrapperClassName,
name,
value = "",
placeholder,
onChange,
}: InputProps<T, string>) => {
const textareaRef = useAutosizeTextareaHeight({ value });
return (
<InputGroupWrapper label={label} className={wrapperClassName}>
<textarea
ref={textareaRef}
name={name}
className={`${INPUT_CLASS_NAME} resize-none overflow-hidden`}
placeholder={placeholder}
value={value}
onChange={(e) => onChange(name, e.target.value)}
/>
</InputGroupWrapper>
);
};
/**
* BulletListTextarea is a textarea where each new line starts with a bullet point.
*
* In its core, it uses a div with contentEditable set to True. However, when
* contentEditable is True, user can paste in any arbitrary html and it would
* render. So to make it behaves like a textarea, it strips down all html while
* keeping only the text part.
*
* Reference: https://stackoverflow.com/a/74998090/7699841
*/
export const BulletListTextarea = <T extends string>({
label,
labelClassName: wrapperClassName,
name,
value: bulletListStrings = [],
placeholder,
onChange,
showBulletPoints = true,
}: InputProps<T, string[]> & { showBulletPoints?: boolean }) => {
const html = getHTMLFromBulletListStrings(bulletListStrings);
return (
<InputGroupWrapper label={label} className={wrapperClassName}>
<ContentEditable
contentEditable={true}
className={`${INPUT_CLASS_NAME} cursor-text [&>div]:list-item ${
showBulletPoints ? "pl-7" : "[&>div]:list-['']"
}`}
// Note: placeholder currently doesn't work
placeholder={placeholder}
onChange={(e) => {
if (e.type === "input") {
const { innerText } = e.currentTarget;
const newBulletListStrings =
getBulletListStringsFromInnerText(innerText);
onChange(name, newBulletListStrings);
}
}}
html={html}
/>
</InputGroupWrapper>
);
};
const NORMALIZED_LINE_BREAK = "\n";
/**
* Normalize line breaks to be \n since different OS uses different line break
* Windows -> \r\n (CRLF)
* Unix -> \n (LF)
* Mac -> \n (LF), or \r (CR) for earlier versions
*/
const normalizeLineBreak = (str: string) =>
str.replace(/\r?\n/g, NORMALIZED_LINE_BREAK);
const dedupeLineBreak = (str: string) =>
str.replace(/\n\n/g, NORMALIZED_LINE_BREAK);
const getStringsByLineBreak = (str: string) => str.split(NORMALIZED_LINE_BREAK);
const getBulletListStringsFromInnerText = (innerText: string) => {
const innerTextWithNormalizedLineBreak = normalizeLineBreak(innerText);
// In Windows Chrome, pressing enter creates 2 line breaks "\n\n"
// This dedupes it into 1 line break "\n"
let newInnerText = dedupeLineBreak(innerTextWithNormalizedLineBreak);
// Handle the special case when content is empty
if (newInnerText === NORMALIZED_LINE_BREAK) {
newInnerText = "";
}
return getStringsByLineBreak(newInnerText);
};
const getHTMLFromBulletListStrings = (bulletListStrings: string[]) => {
// If bulletListStrings is an empty array, make it an empty div
if (bulletListStrings.length === 0) {
return "<div></div>";
}
return bulletListStrings.map((text) => `<div>${text}</div>`).join("");
};

View File

@ -0,0 +1,205 @@
import { ExpanderWithHeightTransition } from "components/ExpanderWithHeightTransition";
import {
DeleteIconButton,
MoveIconButton,
ShowIconButton,
} from "components/ResumeForm/Form/IconButton";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import {
changeFormHeading,
changeFormOrder,
changeShowForm,
selectHeadingByForm,
selectIsFirstForm,
selectIsLastForm,
selectShowByForm,
ShowForm,
} from "lib/redux/settingsSlice";
import {
BuildingOfficeIcon,
AcademicCapIcon,
LightBulbIcon,
WrenchIcon,
PlusSmallIcon,
} from "@heroicons/react/24/outline";
import {
addSectionInForm,
deleteSectionInFormByIdx,
moveSectionInForm,
} from "lib/redux/resumeSlice";
/**
* BaseForm is the bare bone form, i.e. just the outline with no title and no control buttons.
* ProfileForm uses this to compose its outline.
*/
export const BaseForm = ({
children,
className,
}: {
children: React.ReactNode;
className?: string;
}) => (
<section
className={`flex flex-col gap-3 rounded-md bg-white p-6 pt-4 shadow transition-opacity duration-200 ${className}`}
>
{children}
</section>
);
const FORM_TO_ICON: { [section in ShowForm]: typeof BuildingOfficeIcon } = {
workExperiences: BuildingOfficeIcon,
educations: AcademicCapIcon,
projects: LightBulbIcon,
skills: WrenchIcon,
custom: WrenchIcon,
};
export const Form = ({
form,
addButtonText,
children,
}: {
form: ShowForm;
addButtonText?: string;
children: React.ReactNode;
}) => {
const showForm = useAppSelector(selectShowByForm(form));
const heading = useAppSelector(selectHeadingByForm(form));
const dispatch = useAppDispatch();
const setShowForm = (showForm: boolean) => {
dispatch(changeShowForm({ field: form, value: showForm }));
};
const setHeading = (heading: string) => {
dispatch(changeFormHeading({ field: form, value: heading }));
};
const isFirstForm = useAppSelector(selectIsFirstForm(form));
const isLastForm = useAppSelector(selectIsLastForm(form));
const handleMoveClick = (type: "up" | "down") => {
dispatch(changeFormOrder({ form, type }));
};
const Icon = FORM_TO_ICON[form];
return (
<BaseForm
className={`transition-opacity duration-200 ${
showForm ? "pb-6" : "pb-2 opacity-60"
}`}
>
<div className="flex items-center justify-between gap-4">
<div className="flex grow items-center gap-2">
<Icon className="h-6 w-6 text-gray-600" aria-hidden="true" />
<input
type="text"
className="block w-full border-b border-transparent text-lg font-semibold tracking-wide text-gray-900 outline-none hover:border-gray-300 hover:shadow-sm focus:border-gray-300 focus:shadow-sm"
value={heading}
onChange={(e) => setHeading(e.target.value)}
/>
</div>
<div className="flex items-center gap-0.5">
{!isFirstForm && (
<MoveIconButton type="up" onClick={handleMoveClick} />
)}
{!isLastForm && (
<MoveIconButton type="down" onClick={handleMoveClick} />
)}
<ShowIconButton show={showForm} setShow={setShowForm} />
</div>
</div>
<ExpanderWithHeightTransition expanded={showForm}>
{children}
</ExpanderWithHeightTransition>
{showForm && addButtonText && (
<div className="mt-2 flex justify-end">
<button
type="button"
onClick={() => {
dispatch(addSectionInForm({ form }));
}}
className="flex items-center rounded-md bg-white py-2 pl-3 pr-4 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
>
<PlusSmallIcon
className="-ml-0.5 mr-1.5 h-5 w-5 text-gray-400"
aria-hidden="true"
/>
{addButtonText}
</button>
</div>
)}
</BaseForm>
);
};
export const FormSection = ({
form,
idx,
showMoveUp,
showMoveDown,
showDelete,
deleteButtonTooltipText,
children,
}: {
form: ShowForm;
idx: number;
showMoveUp: boolean;
showMoveDown: boolean;
showDelete: boolean;
deleteButtonTooltipText: string;
children: React.ReactNode;
}) => {
const dispatch = useAppDispatch();
const handleDeleteClick = () => {
dispatch(deleteSectionInFormByIdx({ form, idx }));
};
const handleMoveClick = (direction: "up" | "down") => {
dispatch(moveSectionInForm({ form, direction, idx }));
};
return (
<>
{idx !== 0 && (
<div className="mb-4 mt-6 border-t-2 border-dotted border-gray-200" />
)}
<div className="relative grid grid-cols-6 gap-3">
{children}
<div className={`absolute right-0 top-0 flex gap-0.5 `}>
<div
className={`transition-all duration-300 ${
showMoveUp ? "" : "invisible opacity-0"
} ${showMoveDown ? "" : "-mr-6"}`}
>
<MoveIconButton
type="up"
size="small"
onClick={() => handleMoveClick("up")}
/>
</div>
<div
className={`transition-all duration-300 ${
showMoveDown ? "" : "invisible opacity-0"
}`}
>
<MoveIconButton
type="down"
size="small"
onClick={() => handleMoveClick("down")}
/>
</div>
<div
className={`transition-all duration-300 ${
showDelete ? "" : "invisible opacity-0"
}`}
>
<DeleteIconButton
onClick={handleDeleteClick}
tooltipText={deleteButtonTooltipText}
/>
</div>
</div>
</div>
</>
);
};

View File

@ -0,0 +1,70 @@
import { BaseForm } from "components/ResumeForm/Form";
import { Input, Textarea } from "components/ResumeForm/Form/InputGroup";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import { changeProfile, selectProfile } from "lib/redux/resumeSlice";
import { ResumeProfile } from "lib/redux/types";
export const ProfileForm = () => {
const profile = useAppSelector(selectProfile);
const dispatch = useAppDispatch();
const { name, email, phone, url, summary, location } = profile;
const handleProfileChange = (field: keyof ResumeProfile, value: string) => {
dispatch(changeProfile({ field, value }));
};
return (
<BaseForm>
<div className="grid grid-cols-6 gap-3">
<Input
label="Name"
labelClassName="col-span-full"
name="name"
placeholder="Sal Khan"
value={name}
onChange={handleProfileChange}
/>
<Textarea
label="Objective"
labelClassName="col-span-full"
name="summary"
placeholder="Entrepreneur and educator obsessed with making education free for anyone"
value={summary}
onChange={handleProfileChange}
/>
<Input
label="Email"
labelClassName="col-span-4"
name="email"
placeholder="hello@khanacademy.org"
value={email}
onChange={handleProfileChange}
/>
<Input
label="Phone"
labelClassName="col-span-2"
name="phone"
placeholder="(123)456-7890"
value={phone}
onChange={handleProfileChange}
/>
<Input
label="Website"
labelClassName="col-span-4"
name="url"
placeholder="linkedin.com/in/khanacademy"
value={url}
onChange={handleProfileChange}
/>
<Input
label="Location"
labelClassName="col-span-2"
name="location"
placeholder="NYC, NY"
value={location}
onChange={handleProfileChange}
/>
</div>
</BaseForm>
);
};

View File

@ -0,0 +1,69 @@
import { Form, FormSection } from "components/ResumeForm/Form";
import {
Input,
BulletListTextarea,
} from "components/ResumeForm/Form/InputGroup";
import type { CreateHandleChangeArgsWithDescriptions } from "components/ResumeForm/types";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import { selectProjects, changeProjects } from "lib/redux/resumeSlice";
import type { ResumeProject } from "lib/redux/types";
export const ProjectsForm = () => {
const projects = useAppSelector(selectProjects);
const dispatch = useAppDispatch();
const showDelete = projects.length > 1;
return (
<Form form="projects" addButtonText="Add Project">
{projects.map(({ project, date, descriptions }, idx) => {
const handleProjectChange = (
...[
field,
value,
]: CreateHandleChangeArgsWithDescriptions<ResumeProject>
) => {
dispatch(changeProjects({ idx, field, value } as any));
};
const showMoveUp = idx !== 0;
const showMoveDown = idx !== projects.length - 1;
return (
<FormSection
key={idx}
form="projects"
idx={idx}
showMoveUp={showMoveUp}
showMoveDown={showMoveDown}
showDelete={showDelete}
deleteButtonTooltipText={"Delete project"}
>
<Input
name="project"
label="Project Name"
placeholder="OpenResume"
value={project}
onChange={handleProjectChange}
labelClassName="col-span-4"
/>
<Input
name="date"
label="Date"
placeholder="Winter 2022"
value={date}
onChange={handleProjectChange}
labelClassName="col-span-2"
/>
<BulletListTextarea
name="descriptions"
label="Description"
placeholder="Bullet points"
value={descriptions}
onChange={handleProjectChange}
labelClassName="col-span-full"
/>
</FormSection>
);
})}
</Form>
);
};

View File

@ -0,0 +1,79 @@
import { Form } from "components/ResumeForm/Form";
import {
BulletListTextarea,
InputGroupWrapper,
} from "components/ResumeForm/Form/InputGroup";
import { FeaturedSkillInput } from "components/ResumeForm/Form/FeaturedSkillInput";
import { BulletListIconButton } from "components/ResumeForm/Form/IconButton";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import { selectSkills, changeSkills } from "lib/redux/resumeSlice";
import {
selectShowBulletPoints,
changeShowBulletPoints,
selectThemeColor,
} from "lib/redux/settingsSlice";
export const SkillsForm = () => {
const skills = useAppSelector(selectSkills);
const dispatch = useAppDispatch();
const { featuredSkills, descriptions } = skills;
const form = "skills";
const showBulletPoints = useAppSelector(selectShowBulletPoints(form));
const themeColor = useAppSelector(selectThemeColor) || "#38bdf8";
const handleSkillsChange = (field: "descriptions", value: string[]) => {
dispatch(changeSkills({ field, value }));
};
const handleFeaturedSkillsChange = (
idx: number,
skill: string,
rating: number
) => {
dispatch(changeSkills({ field: "featuredSkills", idx, skill, rating }));
};
const handleShowBulletPoints = (value: boolean) => {
dispatch(changeShowBulletPoints({ field: form, value }));
};
return (
<Form form={form}>
<div className="col-span-full grid grid-cols-6 gap-3">
<div className="relative col-span-full">
<BulletListTextarea
label="Skills List"
labelClassName="col-span-full"
name="descriptions"
placeholder="Bullet points"
value={descriptions}
onChange={handleSkillsChange}
showBulletPoints={showBulletPoints}
/>
<div className="absolute left-[4.5rem] top-[0.07rem]">
<BulletListIconButton
showBulletPoints={showBulletPoints}
onClick={handleShowBulletPoints}
/>
</div>
</div>
<div className="col-span-full mb-4 mt-6 border-t-2 border-dotted border-gray-200" />
<InputGroupWrapper
label="Featured Skills (Optional)"
className="col-span-full"
/>
{featuredSkills.map(({ skill, rating }, idx) => (
<FeaturedSkillInput
key={idx}
className="col-span-3"
skill={skill}
rating={rating}
setSkillRating={(newSkill, newRating) => {
handleFeaturedSkillsChange(idx, newSkill, newRating);
}}
placeholder={`Featured Skill ${idx + 1}`}
circleColor={themeColor}
/>
))}
</div>
</Form>
);
};

View File

@ -0,0 +1,36 @@
interface InputProps<K extends string, V extends string> {
label: string;
labelClassName?: string;
name: K;
value?: V;
placeholder: string;
inputStyle?: React.CSSProperties;
onChange: (name: K, value: V) => void;
}
export const InlineInput = <K extends string>({
label,
labelClassName,
name,
value = "",
placeholder,
inputStyle = {},
onChange,
}: InputProps<K, string>) => {
return (
<label
className={`flex gap-2 text-base font-medium text-gray-700 ${labelClassName}`}
>
<span className="w-28">{label}</span>
<input
type="text"
name={name}
value={value}
placeholder={placeholder}
onChange={(e) => onChange(name, e.target.value)}
className="w-[5rem] border-b border-gray-300 text-center font-semibold leading-3 outline-none"
style={inputStyle}
/>
</label>
);
};

View File

@ -0,0 +1,149 @@
import type { GeneralSetting } from "lib/redux/settingsSlice";
import { PX_PER_PT } from "lib/constants";
import {
FONT_FAMILY_TO_STANDARD_SIZE_IN_PT,
FONT_FAMILIES,
type FontFamily,
} from "public/fonts/fonts";
const Selection = ({
selectedColor,
isSelected,
style = {},
onClick,
children,
}: {
selectedColor: string;
isSelected: boolean;
style?: React.CSSProperties;
onClick: () => void;
children: React.ReactNode;
}) => {
const selectedStyle = {
color: "white",
backgroundColor: selectedColor,
borderColor: selectedColor,
...style,
};
return (
<div
className="flex w-[105px] cursor-pointer items-center justify-center rounded-md border border-gray-300 py-1.5 shadow-sm hover:border-gray-400 hover:bg-gray-100"
onClick={onClick}
style={isSelected ? selectedStyle : style}
onKeyDown={(e) => {
if (["Enter", " "].includes(e.key)) onClick();
}}
tabIndex={0}
>
{children}
</div>
);
};
const SelectionsWrapper = ({ children }: { children: React.ReactNode }) => {
return <div className="mt-2 flex flex-wrap gap-3">{children}</div>;
};
export const FontFamilySelections = ({
selectedFontFamily,
themeColor,
handleSettingsChange,
}: {
selectedFontFamily: string;
themeColor: string;
handleSettingsChange: (field: GeneralSetting, value: string) => void;
}) => {
return (
<SelectionsWrapper>
{FONT_FAMILIES.map((fontFamily, idx) => {
const isSelected = selectedFontFamily === fontFamily;
const standardSizePt = FONT_FAMILY_TO_STANDARD_SIZE_IN_PT[fontFamily];
return (
<Selection
key={idx}
selectedColor={themeColor}
isSelected={isSelected}
style={{
fontFamily,
fontSize: `${standardSizePt * PX_PER_PT}px`,
}}
onClick={() => handleSettingsChange("fontFamily", fontFamily)}
>
{fontFamily.split(/(?=[A-Z])/).join(" ")}
</Selection>
);
})}
</SelectionsWrapper>
);
};
export const FontSizeSelections = ({
selectedFontSize,
fontFamily,
themeColor,
handleSettingsChange,
}: {
fontFamily: FontFamily;
themeColor: string;
selectedFontSize: string;
handleSettingsChange: (field: GeneralSetting, value: string) => void;
}) => {
const standardSizePt = FONT_FAMILY_TO_STANDARD_SIZE_IN_PT[fontFamily];
const compactSizePt = standardSizePt - 1;
return (
<SelectionsWrapper>
{["Compact", "Standard", "Large"].map((type, idx) => {
const fontSizePt = String(compactSizePt + idx);
const isSelected = fontSizePt === selectedFontSize;
return (
<Selection
key={idx}
selectedColor={themeColor}
isSelected={isSelected}
style={{
fontFamily,
fontSize: `${Number(fontSizePt) * PX_PER_PT}px`,
}}
onClick={() => handleSettingsChange("fontSize", fontSizePt)}
>
{type}
</Selection>
);
})}
</SelectionsWrapper>
);
};
export const DocumentSizeSelections = ({
selectedDocumentSize,
themeColor,
handleSettingsChange,
}: {
themeColor: string;
selectedDocumentSize: string;
handleSettingsChange: (field: GeneralSetting, value: string) => void;
}) => {
return (
<SelectionsWrapper>
{["Letter", "A4"].map((type, idx) => {
return (
<Selection
key={idx}
selectedColor={themeColor}
isSelected={type === selectedDocumentSize}
onClick={() => handleSettingsChange("documentSize", type)}
>
<div className="flex flex-col items-center">
<div>{type}</div>
<div className="text-xs">
{type === "Letter" ? "(US, Canada)" : "(other countries)"}
</div>
</div>
</Selection>
);
})}
</SelectionsWrapper>
);
};

View File

@ -0,0 +1,14 @@
export const THEME_COLORS = [
"#f87171", // Red-400
"#ef4444", // Red-500
"#fb923c", // Orange-400
"#f97316", // Orange-500
"#fbbf24", // Amber-400
"#f59e0b", // Amber-500
"#22c55e", // Green-500
"#15803d", // Green-700
"#38bdf8", // Sky-400
"#0ea5e9", // Sky-500
"#818cf8", // Indigo-400
"#6366f1", // Indigo-500
];

View File

@ -0,0 +1,100 @@
import { BaseForm } from "components/ResumeForm/Form";
import { InputGroupWrapper } from "components/ResumeForm/Form/InputGroup";
import { THEME_COLORS } from "components/ResumeForm/ThemeForm/constants";
import { InlineInput } from "components/ResumeForm/ThemeForm/InlineInput";
import {
DocumentSizeSelections,
FontFamilySelections,
FontSizeSelections,
} from "components/ResumeForm/ThemeForm/Selection";
import {
changeSettings,
DEFAULT_THEME_COLOR,
selectSettings,
type GeneralSetting,
} from "lib/redux/settingsSlice";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import type { FontFamily } from "public/fonts/fonts";
import { Cog6ToothIcon } from "@heroicons/react/24/outline";
export const ThemeForm = () => {
const settings = useAppSelector(selectSettings);
const { fontSize, fontFamily, documentSize } = settings;
const themeColor = settings.themeColor || DEFAULT_THEME_COLOR;
const dispatch = useAppDispatch();
const handleSettingsChange = (field: GeneralSetting, value: string) => {
dispatch(changeSettings({ field, value }));
};
return (
<BaseForm>
<div className="flex flex-col gap-6">
<div className="flex items-center gap-2">
<Cog6ToothIcon className="h-6 w-6 text-gray-600" aria-hidden="true" />
<h1 className="text-lg font-semibold tracking-wide text-gray-900 ">
Resume Setting
</h1>
</div>
<div>
<InlineInput
label="Theme Color"
name="themeColor"
value={settings.themeColor}
placeholder={DEFAULT_THEME_COLOR}
onChange={handleSettingsChange}
inputStyle={{ color: themeColor }}
/>
<div className="mt-2 flex flex-wrap gap-2">
{THEME_COLORS.map((color, idx) => (
<div
className="flex h-10 w-10 cursor-pointer items-center justify-center rounded-md text-sm text-white"
style={{ backgroundColor: color }}
key={idx}
onClick={() => handleSettingsChange("themeColor", color)}
onKeyDown={(e) => {
if (["Enter", " "].includes(e.key))
handleSettingsChange("themeColor", color);
}}
tabIndex={0}
>
{settings.themeColor === color ? "✓" : ""}
</div>
))}
</div>
</div>
<div>
<InputGroupWrapper label="Font Family" />
<FontFamilySelections
selectedFontFamily={fontFamily}
themeColor={themeColor}
handleSettingsChange={handleSettingsChange}
/>
</div>
<div>
<InlineInput
label="Font Size (pt)"
name="fontSize"
value={fontSize}
placeholder="11"
onChange={handleSettingsChange}
/>
<FontSizeSelections
fontFamily={fontFamily as FontFamily}
themeColor={themeColor}
selectedFontSize={fontSize}
handleSettingsChange={handleSettingsChange}
/>
</div>
<div>
<InputGroupWrapper label="Document Size" />
<DocumentSizeSelections
themeColor={themeColor}
selectedDocumentSize={documentSize}
handleSettingsChange={handleSettingsChange}
/>
</div>
</div>
</BaseForm>
);
};

View File

@ -0,0 +1,84 @@
import { Form, FormSection } from "components/ResumeForm/Form";
import {
Input,
BulletListTextarea,
} from "components/ResumeForm/Form/InputGroup";
import type { CreateHandleChangeArgsWithDescriptions } from "components/ResumeForm/types";
import { useAppDispatch, useAppSelector } from "lib/redux/hooks";
import {
changeWorkExperiences,
selectWorkExperiences,
} from "lib/redux/resumeSlice";
import type { ResumeWorkExperience } from "lib/redux/types";
export const WorkExperiencesForm = () => {
const workExperiences = useAppSelector(selectWorkExperiences);
const dispatch = useAppDispatch();
const showDelete = workExperiences.length > 1;
return (
<Form form="workExperiences" addButtonText="Add Job">
{workExperiences.map(({ company, jobTitle, date, descriptions }, idx) => {
const handleWorkExperienceChange = (
...[
field,
value,
]: CreateHandleChangeArgsWithDescriptions<ResumeWorkExperience>
) => {
// TS doesn't support passing union type to single call signature
// https://github.com/microsoft/TypeScript/issues/54027
// any is used here as a workaround
dispatch(changeWorkExperiences({ idx, field, value } as any));
};
const showMoveUp = idx !== 0;
const showMoveDown = idx !== workExperiences.length - 1;
return (
<FormSection
key={idx}
form="workExperiences"
idx={idx}
showMoveUp={showMoveUp}
showMoveDown={showMoveDown}
showDelete={showDelete}
deleteButtonTooltipText="Delete job"
>
<Input
label="Company"
labelClassName="col-span-full"
name="company"
placeholder="Khan Academy"
value={company}
onChange={handleWorkExperienceChange}
/>
<Input
label="Job Title"
labelClassName="col-span-4"
name="jobTitle"
placeholder="Software Engineer"
value={jobTitle}
onChange={handleWorkExperienceChange}
/>
<Input
label="Date"
labelClassName="col-span-2"
name="date"
placeholder="Jun 2022 - Present"
value={date}
onChange={handleWorkExperienceChange}
/>
<BulletListTextarea
label="Description"
labelClassName="col-span-full"
name="descriptions"
placeholder="Bullet points"
value={descriptions}
onChange={handleWorkExperienceChange}
/>
</FormSection>
);
})}
</Form>
);
};

View File

@ -0,0 +1,55 @@
"use client";
import { useState } from "react";
import {
useAppSelector,
useSaveStateToLocalStorageOnChange,
useSetInitialStore,
} from "lib/redux/hooks";
import { ShowForm, selectFormsOrder } from "lib/redux/settingsSlice";
import { ProfileForm } from "components/ResumeForm/ProfileForm";
import { WorkExperiencesForm } from "components/ResumeForm/WorkExperiencesForm";
import { EducationsForm } from "components/ResumeForm/EducationsForm";
import { ProjectsForm } from "components/ResumeForm/ProjectsForm";
import { SkillsForm } from "components/ResumeForm/SkillsForm";
import { ThemeForm } from "components/ResumeForm/ThemeForm";
import { CustomForm } from "components/ResumeForm/CustomForm";
import { FlexboxSpacer } from "components/FlexboxSpacer";
import { cx } from "lib/cx";
const formTypeToComponent: { [type in ShowForm]: () => JSX.Element } = {
workExperiences: WorkExperiencesForm,
educations: EducationsForm,
projects: ProjectsForm,
skills: SkillsForm,
custom: CustomForm,
};
export const ResumeForm = () => {
useSetInitialStore();
useSaveStateToLocalStorageOnChange();
const formsOrder = useAppSelector(selectFormsOrder);
const [isHover, setIsHover] = useState(false);
return (
<div
className={cx(
"flex h-[calc(100vh-var(--top-nav-bar-height))] justify-end overflow-y-scroll scrollbar scrollbar-track-gray-100 scrollbar-w-3",
isHover && "scrollbar-thumb-gray-200"
)}
onMouseOver={() => setIsHover(true)}
onMouseLeave={() => setIsHover(false)}
>
<section className="flex max-w-2xl flex-col gap-8 p-[var(--resume-padding)]">
<ProfileForm />
{formsOrder.map((form) => {
const Component = formTypeToComponent[form];
return <Component key={form} />;
})}
<ThemeForm />
<br />
</section>
<FlexboxSpacer maxWidth={50} />
</div>
);
};

View File

@ -0,0 +1,3 @@
export type CreateHandleChangeArgsWithDescriptions<T> =
| [field: Exclude<keyof T, "descriptions">, value: string]
| [field: "descriptions", value: string[]];

View File

@ -0,0 +1,73 @@
"use client";
import { useEffect, useRef, useState } from "react";
import { createPortal } from "react-dom";
/**
* A simple Tooltip component that shows tooltip text center below children on hover and on focus
*
* @example
* <Tooltip text="Tooltip Text">
* <div>Hello</div>
* </Tooltip>
*/
export const Tooltip = ({
text,
children,
}: {
text: string;
children: React.ReactNode;
}) => {
const spanRef = useRef<HTMLSpanElement>(null);
const tooltipRef = useRef<HTMLDivElement>(null);
const [tooltipPos, setTooltipPos] = useState({ top: 0, left: 0 });
const [show, setShow] = useState(false);
const showTooltip = () => setShow(true);
const hideTooltip = () => setShow(false);
// Hook to set tooltip position to be right below children and centered
useEffect(() => {
const span = spanRef.current;
const tooltip = tooltipRef.current;
if (span && tooltip) {
const rect = span.getBoundingClientRect();
const TOP_OFFSET = 6;
const newTop = rect.top + rect.height + TOP_OFFSET;
const newLeft = rect.left - tooltip.offsetWidth / 2 + rect.width / 2;
setTooltipPos({
top: newTop,
left: newLeft,
});
}
}, [show]);
return (
<span
ref={spanRef}
onMouseEnter={showTooltip}
onMouseLeave={hideTooltip}
onFocus={showTooltip}
onBlur={hideTooltip}
// hide tooltip onClick to handle the edge case where the element position is changed after lick
onClick={hideTooltip}
>
{children}
{show &&
createPortal(
<div
ref={tooltipRef}
role="tooltip"
className="absolute left-0 top-0 z-10 w-max rounded-md bg-gray-600 px-2 py-0.5 text-sm text-white"
style={{
left: `${tooltipPos.left}px`,
top: `${tooltipPos.top}px`,
}}
>
{text}
</div>,
document.body
)}
</span>
);
};

View File

@ -0,0 +1,59 @@
"use client";
import { usePathname } from "next/navigation";
import Link from "next/link";
import Image from "next/image";
import logoSrc from "public/logo.svg";
import { cx } from "lib/cx";
export const TopNavBar = () => {
const pathName = usePathname();
const isHomePage = pathName === "/";
return (
<header
aria-label="Site Header"
className={cx(
"flex h-[var(--top-nav-bar-height)] items-center border-b-2 border-gray-100 px-3 lg:px-12",
isHomePage && "bg-dot"
)}
>
<div className="flex h-10 w-full items-center justify-between">
<Link href="/">
<span className="sr-only">OpenResume</span>
<Image
src={logoSrc}
alt="OpenResume Logo"
className="h-8 w-full"
priority
/>
</Link>
<nav
aria-label="Site Nav Bar"
className="flex items-center gap-2 text-sm font-medium"
>
{[
["/resume-builder", "Builder"],
["/resume-parser", "Parser"],
].map(([href, text]) => (
<Link
key={text}
className="rounded-md px-1.5 py-2 text-gray-500 hover:bg-gray-100 focus-visible:bg-gray-100 lg:px-4"
href={href}
>
{text}
</Link>
))}
<div className="ml-1 mt-1">
<iframe
src="https://ghbtns.com/github-btn.html?user=xitanggg&repo=open-resume&type=star&count=true"
width="100"
height="20"
className="overflow-hidden border-none"
title="GitHub"
/>
</div>
</nav>
</div>
</header>
);
};

View File

@ -0,0 +1,5 @@
export const Badge = ({ children }: { children: React.ReactNode }) => (
<span className="inline-flex rounded-md bg-blue-50 px-2 pb-0.5 align-text-bottom text-xs font-semibold text-blue-700 ring-1 ring-inset ring-blue-700/10">
{children}
</span>
);

View File

@ -0,0 +1,31 @@
import { cx } from "lib/cx";
const HEADING_CLASSNAMES = {
1: "text-2xl font-bold",
2: "text-xl font-bold",
3: "text-lg font-semibold",
};
export const Heading = ({
level = 1,
children,
className = "",
}: {
level?: 1 | 2 | 3;
smallMarginTop?: boolean;
children: React.ReactNode;
className?: string;
}) => {
const Component = `h${level}` as const;
return (
<Component
className={cx(
"mt-[2em] text-gray-900",
HEADING_CLASSNAMES[level],
className
)}
>
{children}
</Component>
);
};

View File

@ -0,0 +1,24 @@
import { cx } from "lib/cx";
export const Link = ({
href,
children,
className = "",
}: {
href: string;
children: React.ReactNode;
className?: string;
}) => {
return (
<a
href={href}
target="_blank"
className={cx(
"underline underline-offset-2 hover:decoration-2",
className
)}
>
{children}
</a>
);
};

View File

@ -0,0 +1,23 @@
import { cx } from "lib/cx";
export const Paragraph = ({
smallMarginTop = false,
children,
className = "",
}: {
smallMarginTop?: boolean;
children: React.ReactNode;
className?: string;
}) => {
return (
<p
className={cx(
smallMarginTop ? "mt-[0.8em]" : "mt-[1.5em]",
"text-lg text-gray-700",
className
)}
>
{children}
</p>
);
};

View File

@ -0,0 +1,58 @@
import { cx } from "lib/cx";
export const Table = ({
table,
title,
className,
trClassNames = [],
tdClassNames = [],
}: {
table: React.ReactNode[][];
title?: string;
className?: string;
trClassNames?: string[];
tdClassNames?: string[];
}) => {
const tableHeader = table[0];
const tableBody = table.slice(1);
return (
<table
className={cx("w-full divide-y border text-sm text-gray-900", className)}
>
<thead className="divide-y bg-gray-50 text-left align-top">
{title && (
<tr className="divide-x bg-gray-50">
<th
className="px-2 py-1.5 font-bold"
scope="colSpan"
colSpan={tableHeader.length}
>
{title}
</th>
</tr>
)}
<tr className="divide-x bg-gray-50">
{tableHeader.map((item, idx) => (
<th className="px-2 py-1.5 font-semibold" scope="col" key={idx}>
{item}
</th>
))}
</tr>
</thead>
<tbody className="divide-y text-left align-top">
{tableBody.map((row, rowIdx) => (
<tr className={cx("divide-x", trClassNames[rowIdx])} key={rowIdx}>
{row.map((item, colIdx) => (
<td
className={cx("px-2 py-1.5", tdClassNames[colIdx])}
key={colIdx}
>
{item}
</td>
))}
</tr>
))}
</tbody>
</table>
);
};

View File

@ -0,0 +1,7 @@
import { Heading } from "components/documentation/Heading";
import { Paragraph } from "components/documentation/Paragraph";
import { Link } from "components/documentation/Link";
import { Badge } from "components/documentation/Badge";
import { Table } from "components/documentation/Table";
export { Heading, Paragraph, Link, Badge, Table };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

5
src/app/globals-css.ts Normal file
View File

@ -0,0 +1,5 @@
export const CSS_VARIABLES = {
"--top-nav-bar-height": "3.5rem",
"--resume-control-bar-height": "3rem",
"--resume-padding": "1.5rem",
} as const;

View File

@ -1,27 +1,34 @@
@import url("/fonts/fonts.css");
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
@layer components {
.btn-primary {
@apply bg-primary outline-theme-purple inline-block rounded-full px-6 py-2 font-semibold shadow-sm;
}
.text-primary {
@apply bg-gradient-to-r from-[color:var(--theme-purple)] to-[color:var(--theme-blue)] bg-clip-text text-transparent !important;
}
.bg-primary {
@apply bg-gradient-to-r from-[color:var(--theme-purple)] to-[color:var(--theme-blue)] text-white;
}
.outline-theme-purple {
@apply hover:opacity-80 hover:outline-[color:var(--theme-purple)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--theme-purple)];
}
.outline-theme-blue {
@apply hover:opacity-80 hover:outline-[color:var(--theme-blue)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--theme-blue)];
}
.within-outline-theme-purple {
@apply focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-[color:var(--theme-purple)] hover:opacity-80 hover:outline-[color:var(--theme-purple)];
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
:root {
--theme-purple: #5d52d9;
--theme-blue: #4fc5eb;
/* Keep the below variable names in sync with CSS_VARIABLES in globals-css.ts */
--top-nav-bar-height: 3.5rem;
--resume-control-bar-height: 3rem;
--resume-padding: 1.5rem;
}

View File

@ -0,0 +1,84 @@
"use client";
import { useEffect, useState, useRef } from "react";
import { ResumePDF } from "components/Resume/ResumePDF";
import type { Resume } from "lib/redux/types";
import { initialResumeState } from "lib/redux/resumeSlice";
import { initialSettings } from "lib/redux/settingsSlice";
import { ResumeIFrame } from "components/Resume/ResumeIFrame";
import { START_HOME_RESUME, END_HOME_RESUME } from "home/constants";
import { makeObjectCharIterator } from "lib/make-object-char-iterator";
import { useTailwindBreakpoints } from "lib/hooks/useTailwindBreakpoints";
import { deepClone } from "lib/deep-clone";
// countObjectChar(END_HOME_RESUME) -> ~1800 chars
const INTERVAL_MS = 50; // 20 Intervals Per Second
const CHARS_PER_INTERVAL = 10;
// Auto Typing Time:
// 10 CHARS_PER_INTERVAL -> ~1800 / (20*10) = 9s (let's go with 9s so it feels fast)
// 9 CHARS_PER_INTERVAL -> ~1800 / (20*9) = 10s
// 8 CHARS_PER_INTERVAL -> ~1800 / (20*8) = 11s
const RESET_INTERVAL_MS = 60 * 1000; // 60s
export const AutoTypingResume = () => {
const [resume, setResume] = useState(deepClone(initialResumeState) as Resume);
const resumeCharIterator = useRef(
makeObjectCharIterator(START_HOME_RESUME, END_HOME_RESUME)
);
const hasSetEndResume = useRef(false);
const { isLg } = useTailwindBreakpoints();
useEffect(() => {
const intervalId = setInterval(() => {
let next = resumeCharIterator.current.next();
for (let i = 0; i < CHARS_PER_INTERVAL - 1; i++) {
next = resumeCharIterator.current.next();
}
if (!next.done) {
setResume(next.value);
} else {
// Sometimes the iterator doesn't end on the last char,
// so we manually set its end state here
if (!hasSetEndResume.current) {
setResume(END_HOME_RESUME);
hasSetEndResume.current = true;
}
}
}, INTERVAL_MS);
return () => clearInterval(intervalId);
}, []);
useEffect(() => {
const intervalId = setInterval(() => {
resumeCharIterator.current = makeObjectCharIterator(
START_HOME_RESUME,
END_HOME_RESUME
);
hasSetEndResume.current = false;
}, RESET_INTERVAL_MS);
return () => clearInterval(intervalId);
}, []);
return (
<>
<ResumeIFrame documentSize="Letter" scale={isLg ? 0.7 : 0.5}>
<ResumePDF
resume={resume}
settings={{
...initialSettings,
fontSize: "12",
formToHeading: {
workExperiences: resume.workExperiences[0].company
? "WORK EXPERIENCE"
: "",
educations: resume.educations[0].school ? "EDUCATION" : "",
projects: resume.projects[0].project ? "PROJECT" : "",
skills: resume.skills.featuredSkills[0].skill ? "SKILLS" : "",
custom: "CUSTOM SECTION",
},
}}
/>
</ResumeIFrame>
</>
);
};

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