Compare commits
No commits in common. "314ab2983a5b45ecc697dc11e2ca6485a7ae509a" and "da5e733458f266579897019936e3cbc46cbfe729" have entirely different histories.
314ab2983a
...
da5e733458
5
.gitignore
vendored
5
.gitignore
vendored
@ -24,10 +24,7 @@ dist-ssr
|
|||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
# Bun
|
# Bun
|
||||||
bun.lock*
|
bun.lockb
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm-lock.yaml
|
|
||||||
|
|
||||||
# ts build info
|
# ts build info
|
||||||
tsconfig.app.tsbuildinfo
|
tsconfig.app.tsbuildinfo
|
||||||
|
41
README.md
41
README.md
@ -1,56 +1,27 @@
|
|||||||
# Giv's Website
|
# Giv's Website
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
Hey, this is my website! You will be able to know what I'm good on and how to contact me through there.
|
Hey, this is my website! You will be able to know what I'm good on and how to contact me through there.
|
||||||
|
|
||||||
## Technology Stack
|
## Used Technologies
|
||||||
|
|
||||||
- React
|
- React
|
||||||
- TypeScript
|
- TypeScript
|
||||||
- Vite
|
- Vite
|
||||||
|
|
||||||
## How to access?
|
## How to access?
|
||||||
|
|
||||||
- Thanks to NineTailed, the deploy is available [here](https://givfnz.com)
|
- Thanks to NineTailed, the deploy is available [here](https://givfnz.com)
|
||||||
- If you want to check the source code, visit the project repo on [Gitea](https://git.pontusmail.org/GivFNZ/my-website).
|
- If you want to check the source code, visit the project repo on [Gitea](https://git.pontusmail.org/GivFNZ/my-website).
|
||||||
|
|
||||||
## Contributions
|
## Contributions
|
||||||
|
Any contribution is welcome. If you want to test the website in your own machine to help on this, make sure you have node.js installed, then clone the project repo and do the command:
|
||||||
|
|
||||||
Any contribution is welcome. If you want to test the website in your own machine to help on this, make sure you have Node.js installed, then clone the project repo and run the following commands:
|
`npm i`
|
||||||
|
|
||||||
### NPM
|
Then it will be available at localhost://5173.
|
||||||
|
|
||||||
- `npm i` - Install dependencies
|
|
||||||
- `npm run dev` - Run dev server
|
|
||||||
|
|
||||||
### Bun
|
|
||||||
|
|
||||||
- `bun install` - Install dependencies
|
|
||||||
- `bun dev` - Run dev server
|
|
||||||
|
|
||||||
The development server will be available at http://localhost:5173.
|
|
||||||
|
|
||||||
### Environment Variables
|
|
||||||
|
|
||||||
**The LastFM feature is disabled, and this environment variable is not required yet.**
|
|
||||||
|
|
||||||
To run the project, you need to set up the following environment variables:
|
|
||||||
|
|
||||||
| Variable | Description |
|
|
||||||
|-----------------------------|--------------------------|
|
|
||||||
| `VITE_LASTFM_API_KEY` | Your [Last.fm API Key]() |
|
|
||||||
|
|
||||||
Create a `.env` file in the root of the project and add the required variables like so:
|
|
||||||
|
|
||||||
```env
|
|
||||||
VITE_LASTFM_API_KEY=your-lastfm-api-key-here
|
|
||||||
```
|
|
||||||
|
|
||||||
## Special Thanks
|
## Special Thanks
|
||||||
|
|
||||||
- [Aidan](https://github.com/ihatenodejs)
|
- [Aidan](https://github.com/ihatenodejs)
|
||||||
- [lucmsilva](https://github.com/lucmsilva651/)
|
- [lucmsilva](https://github.com/lucmsilva651/)
|
||||||
- NineTailedFox
|
- [NineTailedFox]
|
||||||
|
|
||||||
**Enjoy!**
|
Enjoy!
|
2097
pnpm-lock.yaml
generated
Normal file
2097
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
import { api } from "../lib/axios";
|
import { api } from "../lib/axios";
|
||||||
|
|
||||||
const api_key = null;
|
const api_key = import.meta.env.VITE_LASTFM_API_KEY
|
||||||
|
|
||||||
export interface getRecentTracksResponse {
|
export interface getRecentTracksResponse {
|
||||||
recenttracks: {
|
recenttracks: {
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
"projects": "Projects",
|
"projects": "Projects",
|
||||||
"send": "Send",
|
"send": "Send",
|
||||||
"myLast": "My Last.FM Status",
|
"myLast": "My Last.FM Status",
|
||||||
"myLastDescription": "I'm listening to:",
|
"myLastDescription": "Take a look on my last played song:",
|
||||||
"lastLink": "View on Last.FM",
|
"lastLink": "Check this song page on Last.FM",
|
||||||
"music": "Music",
|
"music": "Music",
|
||||||
"currentlyListening": "I'm currently listening to it!",
|
"currentlyListening": "I'm currently listening to it!",
|
||||||
"lastUpdate": "Last update: "
|
"lastUpdate": "Last update: "
|
||||||
|
@ -29,7 +29,7 @@ export default function Home() {
|
|||||||
return (
|
return (
|
||||||
<MainContainer>
|
<MainContainer>
|
||||||
<TopSection>
|
<TopSection>
|
||||||
<Avatar src="https://avatars.githubusercontent.com/u/53719063?v=4" alt="GitHub Profile Picture" />
|
<Avatar src="https://avatars.githubusercontent.com/u/53719063?v=4" alt="Giv's Gh picture" />
|
||||||
<Paragraph>
|
<Paragraph>
|
||||||
<span ref={typedElement} />
|
<span ref={typedElement} />
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
@ -4,7 +4,7 @@ import { useQuery } from '@tanstack/react-query'
|
|||||||
import { Paragraph } from "../../components/Paragraph/styles";
|
import { Paragraph } from "../../components/Paragraph/styles";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { IconLink } from "../home/styles";
|
import { IconLink } from "../home/styles";
|
||||||
import { MusicDescription, MusicTitle } from "./styles";
|
|
||||||
|
|
||||||
export default function Music() {
|
export default function Music() {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
@ -14,8 +14,8 @@ export default function Music() {
|
|||||||
})
|
})
|
||||||
return (
|
return (
|
||||||
<MainContainer>
|
<MainContainer>
|
||||||
<MusicTitle>{t("myLast")}</MusicTitle>
|
<h1>{t("myLast")}</h1>
|
||||||
<MusicDescription>{t("myLastDescription")}</MusicDescription>
|
<h3>{t("myLastDescription")}</h3>
|
||||||
<Paragraph>{lastResponse?.recenttracks?.track[0].name} - {lastResponse?.recenttracks?.track[0].artist["#text"]}</Paragraph>
|
<Paragraph>{lastResponse?.recenttracks?.track[0].name} - {lastResponse?.recenttracks?.track[0].artist["#text"]}</Paragraph>
|
||||||
<IconLink target="blank" href={lastResponse?.recenttracks?.track[0].url}>{t("lastLink")}</IconLink>
|
<IconLink target="blank" href={lastResponse?.recenttracks?.track[0].url}>{t("lastLink")}</IconLink>
|
||||||
{lastResponse?.recenttracks?.track[0]?.date?.["#text"] ?
|
{lastResponse?.recenttracks?.track[0]?.date?.["#text"] ?
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
import styled from "styled-components";
|
|
||||||
|
|
||||||
export const MusicTitle = styled.h1`
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const MusicDescription = styled.h3`
|
|
||||||
font-size: 1.5rem;
|
|
||||||
font-weight: 400;
|
|
||||||
`;
|
|
Loading…
x
Reference in New Issue
Block a user