-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move the whole project to Next * Fix built files * Add description to links and fix navbar * Add aria label and custom loader
- Loading branch information
1 parent
144536b
commit 6811dce
Showing
21 changed files
with
757 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Deploy to Firebase Hosting on PR | ||
on: pull_request | ||
|
||
jobs: | ||
build_and_preview: | ||
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: yarn && yarn build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ALEX_DISHEN }}' | ||
expires: 3d | ||
projectId: alex-dishen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"useAbsolutePath": "-" | ||
} | ||
"useAbsolutePath": "-" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
module.exports = { | ||
const nextConfig = { | ||
trailingSlash: true, | ||
output: 'export', | ||
image: { | ||
loader: 'custom' | ||
}, | ||
webpack(config) { | ||
config.module.rules.push({ | ||
test: /\.svg$/, | ||
use: ["@svgr/webpack"] | ||
}); | ||
|
||
return config; | ||
const fileLoaderRule = config.module.rules.find(rule => | ||
rule.test?.test?.('.svg'), | ||
) | ||
config.module.rules.push( | ||
{ | ||
...fileLoaderRule, | ||
test: /\.svg$/i, | ||
resourceQuery: /url/, | ||
}, | ||
{ | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
resourceQuery: { not: /url/ }, | ||
use: ['@svgr/webpack'], | ||
}, | ||
) | ||
fileLoaderRule.exclude = /\.svg$/i | ||
return config | ||
}, | ||
}; | ||
} | ||
|
||
export default nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Allow: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import { Paths } from 'src/constants' | ||
import { glowingColors } from 'src/styles/palette' | ||
|
||
export const getGlowingColor = ( | ||
location: string, | ||
setGlowingColor: (a: string) => void, | ||
) => { | ||
if (location === '/') return setGlowingColor(glowingColors.blue) | ||
if (location === Paths.HOME) return setGlowingColor(glowingColors.blue) | ||
|
||
if (location === '/projects') return setGlowingColor(glowingColors.orange) | ||
if (location === Paths.PROJECTS) return setGlowingColor(glowingColors.orange) | ||
|
||
if (location === '/about') return setGlowingColor(glowingColors.red) | ||
if (location === Paths.ABOUT) return setGlowingColor(glowingColors.red) | ||
|
||
if (location === '/contact') return setGlowingColor(glowingColors.purple) | ||
if (location === Paths.CONTACT) return setGlowingColor(glowingColors.purple) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export enum Paths { | ||
HOME = '/', | ||
ABOUT = '/about/', | ||
BLOG = 'https://medium.com/@oleksandrdidyshen', | ||
PROJECTS = '/projects/', | ||
CONTACT = '/contact/', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export interface IVisibleSections { | ||
[key: string]: boolean; | ||
[key: string]: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-ExtraLight.ttf') format('truetype'); | ||
font-weight: 100; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-ExtraLight.ttf') format('truetype'); | ||
font-weight: 100; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Light.ttf') format('truetype'); | ||
font-weight: 300; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Light.ttf') format('truetype'); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype'); | ||
font-weight: normal; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype'); | ||
font-weight: 500; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype'); | ||
font-weight: 500; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype'); | ||
font-weight: 600; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype'); | ||
font-weight: 600; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype'); | ||
font-weight: bold; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype'); | ||
font-weight: bold; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-ExtraBold.ttf') format('truetype'); | ||
font-weight: 900; | ||
font-family: 'Manrope'; | ||
src: url('../assets/fonts/Manrope-ExtraBold.ttf') format('truetype'); | ||
font-weight: 900; | ||
} |
Oops, something went wrong.