Git Product home page Git Product logo

m6v3l9 / astro-theme-stone Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 57.0 246 KB

Stone is a free and open-source Astro theme specially designed for Business, Marketing, SaaS and Startup websites.

Home Page: https://astro-theme-stone.vercel.app/

License: MIT License

JavaScript 1.75% Astro 98.25%
agency alpine alpinejs astro free landing marketing open-source tailwind tailwindcss template theme website

astro-theme-stone's People

Contributors

astrobot-houston avatar m6v3l9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

astro-theme-stone's Issues

Property 'isDark' does not exist on type '{}'.

Development environment
MacBookAirM1 & Cursor

GitHub
https://github.com/terisuke/corsweb

When I linked up with Firebase and used npm run build to deploy with Hosting, the following error occurred and I was unable to build.

Property 'isDark' does not exist on type '{}'.

What I tried

Create types folder and types.d.ts and use global scope to define dark mode using $store property

types/types.d.ts // Alpine.jsを起動するためのメソッド start: () => void; } // Alpineインターフェースのインスタンスを作成します。 const alpine: Alpine; // alpineインスタンスをエクスポートします。 export = alpine; } declare global { // Windowインターフェースを拡張します。これにより、Alpine.jsの機能をグローバルスコープで使用できます。 interface Window { // Alpine.jsの型をインポートして、WindowオブジェクトにAlpineプロパティを追加します。 Alpine: typeof import('alpinejs').Alpine; } // Alpineインターフェースを拡張します。これにより、Alpine.jsのストア機能を使用できます。 interface Alpine { // $storeプロパティを追加します。これはAlpine.jsの状態管理機能を提供します。 $store: { // themeオブジェクトを追加します。これはテーマ関連の状態を管理します。 theme: { // isDarkプロパティはダークモードが有効かどうかを示します。 isDark: boolean; // toggleメソッドはダークモードを切り替えるための機能を提供します。 toggle: () => void; }; }; } }

Reviewed tsconfig.json and rewrote the contents to reflect the types file.

tsconfig.json { "extends": "astro/tsconfigs/strict", "compilerOptions": { "typeRoots": ["./node_modules/@types", "./types", "./src"], "types": ["types"] } }
Result

The following error occurs in Layout.astro and it cannot be built.

Property 'isDark' does not exist on type '{}'. 63 toggle() { 64 this.isDark = !this.isDark; ~~~~~~ 65 localStorage.setItem('theme', this.isDark ? 'dark' : 'light');
Has anyone had a similar error? Does anyone know the solution to this error?

Issue with "sharp" module on MacOS

When trying to run the project, the following error occured for me:

...
Error:
Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-darwin-x64.node'
...

The solution was to install vips via brew, to delete the node_modules directory and to rerun npm install.

Accessibility improvements

Love the work you have done on the theme however I have noticed a few potential accessibility improvements and wondered if you are open to me creating a pull request with some suggestions?

Upgrade to astro 3.x?

I'm having some difficulty upgrading to the latest astro (eg., 3.5), is it possible to update the template to a version that works with 3.x? Although I did get it working the styles are out of sync.

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.