Git Product home page Git Product logo

eltana.com's Introduction

eltana.com ๐Ÿฅฏ

deploy ci lint CodeQL

The public source code for the eltana.com website

homepage

About ๐Ÿ’ก

This repository contains the source code for eltana.com. It is built with Astro and Tailwind CSS. The site is hosted on GitHub Pages and deployed using GitHub Actions.

Config Files

The core way this template is different from the original is that it heavily uses .js config files to configure data and content for its site.

Here are a few common config directories and what you will find there:

Project structure

Inside AstroWind template, you'll see the following folders and files:

/
โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ robots.txt
โ”‚   โ””โ”€โ”€ favicon.ico
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ”œโ”€โ”€ images/
โ”‚   โ”‚   โ””โ”€โ”€ styles/
โ”‚   โ”‚       โ””โ”€โ”€ base.css
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ blog/
โ”‚   โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”‚   โ”œโ”€โ”€ widgets/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Header.astro
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ CustomStyles.astro
โ”‚   โ”‚   โ””โ”€โ”€ Logo.astro
โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
|   |   |   โ”œโ”€โ”€ announcement.js
|   |   |   โ”œโ”€โ”€ call-to-action.js
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ home/
|   |   |   โ”œโ”€โ”€ content.js
|   |   |   โ”œโ”€โ”€ faqs.js
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ site/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ blog.js
|   |   |   โ”œโ”€โ”€ config.js
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ content/
โ”‚   โ”‚   โ”œโ”€โ”€ post/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ post-slug-1.md
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ post-slug-2.mdx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ””-- config.ts
โ”‚   โ”œโ”€โ”€ layouts/
โ”‚   โ”‚   โ”œโ”€โ”€ BaseLayout.astro
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ [...blog]/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ [category]/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ [tag]/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ [...page].astro
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ index.astro
โ”‚   โ”‚   โ”œโ”€โ”€ index.astro
โ”‚   โ”‚   โ”œโ”€โ”€ about.md
โ”‚   โ”‚   โ”œโ”€โ”€ 404.astro
โ”‚   โ”‚   โ”œ-- rss.xml.ts
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ config.mjs
โ”‚   โ””โ”€โ”€ data.js
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ astro.config.mjs
โ””โ”€โ”€ ...

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory if they do not require any transformation or in the assets/ directory if they are imported directly.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run format Format codes with Prettier
npm run lint:eslint Run Eslint
npm run astro ... Run CLI commands like astro add, astro preview

Development

Here are some basic commands to get you up and running to develop with this template:

  1. Install npm dependencies

    npm i
  2. Start the development server

    npm run dev
  3. View your site at localhost:3000

Live reload is enabled by default, so any changes you make will be reflected in the browser.

Deployment

Deployment docs for GitHub Pages

When you push changes to your repository, GitHub will automatically build and deploy your site.

Branch Deploy

This template also comes bundled with the branch-deploy Action. Please ensure you view the branch-deploy.yml file and make any necessary changes if you wish to use it.

The branch-deploy Action will allow you to trigger branch deployments from pull requests by using comments such as .deploy.

Build Cache

This templates also uses a custom GitHub Actions build cache to help speed things up in CI when processing images. If you make any changes to images when working on a project using this template, please ensure to run npm run build before deploying to ensure your cache.json file is updated.

Making Changes

This section goes into details on how you can make changes to the template.

Live Commit Examples

Actual examples in the form of commits to this repository:

Acknowledgements

This theme is based off the template by onwidget

eltana.com's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar grantbirki avatar

Stargazers

 avatar  avatar  avatar

eltana.com's Issues

Online Order Updates

Online Order Updates

From email:

After inspection, you are correct. You do have storefront on there for both locations. One thing I would recommend is removing the verbiage (DoorDash) from the online ordering section. Storefront is unique from all the other 3rd parties out there, Storefront does not require your customers to have a DoorDash account. Therefore, your Postmates and Uber eats customers can order right from Storefront without needing DoorDash credentials. I'd actually recommend removing the alternative ordering options, and just having one Order Now button that goes to your Storefront page. This will ensure that every order that comes through your website is at 0% commission

TL;DR: Replace all "vendor" buttons with just a single "Order Now" button that links to our "Storefront" page

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.