Coder Social home page Coder Social logo

aloisseckar / elrhistory Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 3.28 MB

Website template/framework designed for photos/pictures and information about some historical topic (e.g. history of a town)

License: MIT License

Vue 44.16% TypeScript 54.13% JavaScript 0.99% CSS 0.72%
history nuxt3 supabase tailwindcss website

elrhistory's Introduction

ELRHistory

Website designed for photos/pictures and information about random historical topic (e.g. history of a town).

Originally a new version of StaraKrc Python project, this time in Nuxt3. However, my current goal is to make it customizable for possible re-use for other city parts etc.

Tech stack

Setting up

Right now you can just clone the repo and follow Nuxt 3 deployment instructions.

Later I plan to optimize the project for Netlify auto-deployment via GitHub Actions.

Re-branding

Configuration

Some site-related values are defined as Nuxt 3 runtime config variables. To tailor them the to your needs, use .env file.

List of variables:

  • NUXT_PUBLIC_LANG - locale for i18n messages (currently supported either en or cs)
  • NUXT_PUBLIC_DEBUG - if true, exdented information and logs are available (not meant for production - defaults to false)
  • NUXT_PUBLIC_WEB_TITLE - website name, displayed as page title in browser tab + H1 on index page + in footer
  • NUXT_PUBLIC_WEB_ABOUT - website description, displayed on index page in the About section
  • NUXT_PUBLIC_WEB_AUTHOR - website author/currator, displayed in the footer
  • NUXT_PUBLIC_WEB_LINK - link to author's website, links from author's name in the footer (if not blank)

Database

All site-specific data are being stored in Supabase database. DB schema is described in db-init.sql file and some initial data are provided in db-mock.sql.

To connect the application to your own Supabase, you need to provide unique SUPABASE_URL and SUPABASE_KEY via .env file. The rest is automatic.

Text

Static texts are served via nuxt/i18n. Translation files are served from /assets/lang/ directory. Currently en and cs messages are available.

Form validation

To change the language used in form validation messages, change default locale in formkit.config.ts on line 7. You may also need to import the corresponding source from @formkit/i18n on line 2.

Images

Replace following images in /public directory with your own content.

List of customizable images:

  • header.png - displayed in top page ribbon, set up to be 120px high, centered and repeating along x-axis
  • favicon.png - favicon displayed in browser tab

CSS

TODO

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.