A simple tool to create framed profile pictures for social media in support of a cause. This project is a fork of avatar-framer.
- Dynamically generate a static site based off of configuration options and the number of frame images provided.
- Just provide the images, a logo and your copy.
- Runs entirely in the browser (no images are uploaded to a server) to minimize privacy concerns.
Before using FasticFrame, you must ensure that Node.js and Jekyll are installed on your system. Some of the commands below assume that you're using an Arch
-based distro. To install, do the following:
- Install Node.js, npm, and its dependencies.
pacman -Syu nodejs npm
npm install
- Install Ruby and Jekyll.
pacman -Syu ruby
gem install jekyll bundler
bundle config set --local path 'vendor/bundle'
bundle install
- Add your frames to
img/frames
- Add your preview images to
img/previews
- Generate the site:
jekyll build
- Create styles and and minify assets:
npm run build
- Frames should be
2000px x 2000px
for maximum resolution. - Frames should be in png format to allow for transparency.
- All the frames should be named
frame-1
,frame-2
etc.
- Previews should be at least
400px x 400px
and square. - Previews should be named
preview-1
,preview-2
etc. and match the frame numbering.
jekyll serve
will start a server with your site at localhost:4000
. See Jekyll docs for more information.
All configuration options can be found in _config.yml
. Colors can be configured in tailwind.config.js
.
title
: HTML page title
description
: meta description of the page
title-text
: main page title text. Default: "Show you’re on #TeamBartlet by helping get out the vote on social media!"
step-1
: text of step one. Default: "Upload your picture or another square image below."
step-2
: text of step two. Default: "Use the photo tools to scale, rotate, and move your image over the preview."
step-3
: text of step three. Default: "Select your frame."
step-4
: text of step four. Default: "Download your new profile image!"
step-5
: text of step five. Default: "Post on social media using the hashtag #TeamBartlet."
footer-text
: text content for the footer. Is placed under the footer nav and logo. Default: "© 2020 Campaign Works, Inc. All rights reserved."
download-button-text
: text of the download button. Default: "Download profile picture"
upload-text
: text of the upload div. Default: "Drop files here or click to upload."
nav-link
: url of the button in the header nav
nav-link-text
: text of the button in the header nav
logo
: name of the logo file in /img
directory. Default: "logo.png"
favicon
: name of the favicon file in /img
directory. Default: "favicon.ico"
footer-links
: YAML list of links for the footer nav. Example:
- text: "Awesome page 1"
link: "http://google.com"
- text: "Other page 2"
link: "http://google.com"
For more information see Open Graph and Twitter cards docs.
The following configuration options are available in _config.yml
:
og-title
og-description
og-url
og-image
og-image-width
og-image-height
twitter-card
twitter-description
twitter-image
twitter-handle
FasticFrame is setup with primary and secondary colors in tailwind.config.js
to generate the site. You can edit the primary and secondary colors directly, or add your own. All tailwind default colors are also available.
theme: {
extend: {
colors: {
primary: {
default: '#1e429f',
dark: '#233876',
},
secondary: {
default: "#e02424",
}
}
},
},
Our defult font is Rubik. You can change this by importing a different font in the top of style.css
and updating tailwind.config.js
to incorporate the font.
theme: {
extend: {
fontFamily: {
'sans': ['Rubik','Helvetica', 'Arial', 'sans-serif'],
},
},
},
The header including the top nav, and footer can be edited directly by updating nav.html
and footer.html
in the _includes
directory respectively.
After generating your site, copy the contents of _site
to your sever.