Skip to content

Commit

Permalink
Merge pull request #1 from juanmanueldaza/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
juanmanueldaza authored Nov 28, 2024
2 parents f9616ea + da588b4 commit 2be3a77
Show file tree
Hide file tree
Showing 30 changed files with 3,500 additions and 144 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Copy CNAME and config
run: |
cp wallpapers/CNAME dist/
cp wallpapers/_config.yml dist/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: wallpapers.ultravietnamita.com.ar
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.14.0
56 changes: 53 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
#Analog Wallpapers
Pictures on 35mm film.
Shot, developed and digitalized by Juan Manuel Daza.
# Analog Wallpapers Pictures on 35mm film.
## Shot, developed and digitalized by Juan Manuel Daza.

### React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
70 changes: 4 additions & 66 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,73 +3,11 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- Primary Meta Tags -->
<title>Ultravietnamita - Analog Photography</title>
<meta name="title" content="Ultravietnamita - Analog Photography" />
<meta
name="description"
content="35mm film photography collection by Juan Manuel Daza. Shot, developed and digitalized analog pictures."
/>
<meta name="author" content="Juan Manuel Daza" />
<meta
name="keywords"
content="analog photography, 35mm film, photography, Juan Manuel Daza"
/>

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta
property="og:url"
content="https://wallpapers.ultravietnamita.com.ar/"
/>
<meta
property="og:title"
content="Ultravietnamita - Analog Photography"
/>
<meta
property="og:description"
content="35mm film photography collection by Juan Manuel Daza. Shot, developed and digitalized analog pictures."
/>
<meta
property="og:image"
content="https://wallpapers.ultravietnamita.com.ar/daza051.jpg"
/>

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta
property="twitter:url"
content="https://wallpapers.ultravietnamita.com.ar/"
/>
<meta
property="twitter:title"
content="Ultravietnamita - Analog Photography"
/>
<meta
property="twitter:description"
content="35mm film photography collection by Juan Manuel Daza. Shot, developed and digitalized analog pictures."
/>
<meta
property="twitter:image"
content="https://wallpapers.ultravietnamita.com.ar/daza051.jpg"
/>

<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="favicon.ico" />

<!-- CSS -->
<link rel="stylesheet" href="styles.css" />
<meta name="description" content="Wallpapers slideshow application" />
<title>Analog Wallpapers</title>
</head>
<body>
<div class="slideshow-container" id="slideshow">
<!-- Images will be inserted here by JavaScript -->
</div>

<div class="dots-container" id="dots">
<!-- Dots will be inserted here by JavaScript -->
</div>

<script src="script.js"></script>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 2be3a77

Please sign in to comment.