Giter Site home page Giter Site logo

fofajardo / fasticframe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jpcsapc/fasticframe

0.0 0.0 0.0 4.14 MB

A simple tool to create framed profile pictures for social media in support of a cause.

License: MIT License

JavaScript 44.46% Ruby 7.21% CSS 20.18% HTML 28.15%

fasticframe's Introduction

FasticFrame

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.

Installation

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:

  1. Install Node.js, npm, and its dependencies.
pacman -Syu nodejs npm
npm install
  1. Install Ruby and Jekyll.
pacman -Syu ruby
gem install jekyll bundler
bundle config set --local path 'vendor/bundle'
bundle install

Usage - Generate your site

  1. Add your frames to img/frames
  2. Add your preview images to img/previews
  3. Generate the site:
jekyll build
  1. Create styles and and minify assets:
npm run build

Image requirements

Frames

  • 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

  • Previews should be at least 400px x 400px and square.
  • Previews should be named preview-1, preview-2 etc. and match the frame numbering.

Run locally

jekyll serve

will start a server with your site at localhost:4000. See Jekyll docs for more information.

Configuration

All configuration options can be found in _config.yml. Colors can be configured in tailwind.config.js.

HTML Head

title: HTML page title description: meta description of the page

Copy

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

download-button-text: text of the download button. Default: "Download profile picture"

Upload Text

upload-text: text of the upload div. Default: "Drop files here or click to upload."

Header Nav Link

nav-link: url of the button in the header nav

nav-link-text: text of the button in the header nav

Logo & Favicon

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

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"

Open Graph and Twitter Cards

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

Colors

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",
      }
    }
  },
},

Fonts

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'],
    },
  },
},

Header & Footer

The header including the top nav, and footer can be edited directly by updating nav.html and footer.html in the _includes directory respectively.

Deployment

After generating your site, copy the contents of _site to your sever.

fasticframe's People

Contributors

anquinn avatar fofajardo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.