diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d79f9c5 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,24 @@ +name: Gatsby Deploy + +on: + push: + branches: main + +env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: GitHub Config + run: | + git config --global user.email "amanda.liu@databricks.com" + git config --global user.name "asl3" + - name: Checkout + uses: actions/checkout@v2 + - name: Install dependencies + run: | + npm install --force + - name: Deploy + run: npm run deploy:ci \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 57757f4..34b0140 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" +# . "$(dirname "$0")/_/husky.sh" -npm run lint-staged +# npm run lint-staged diff --git a/README.md b/README.md index 5991578..dfb70bf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# asl3.github.io +# Amanda Liu's Personal Website -Personal website +Check out my personal website (work-in-progress!): -Theme credit: Brittany Chiang +![site preview](https://github.com/asl3/asl3.github.io/blob/main/static/og.png) + +Theme credit to [Brittany Chiang](https://github.com/bchiang7) diff --git a/content/featured/Coming Soon/index.md b/content/featured/Coming Soon/index.md deleted file mode 100644 index 2ea64e8..0000000 --- a/content/featured/Coming Soon/index.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -date: '1' -title: 'Coming Soon!' -cover: './placeholder.jpeg' -github: '' -external: '' -tech: - - blog keywords ---- - -Coming soon! diff --git a/content/featured/Coming Soon/placeholder.jpeg b/content/featured/Coming Soon/placeholder.jpeg deleted file mode 100644 index 08f6273..0000000 Binary files a/content/featured/Coming Soon/placeholder.jpeg and /dev/null differ diff --git a/content/featured/Coming Soon/demo.png b/content/featured/nonono/demo.png similarity index 100% rename from content/featured/Coming Soon/demo.png rename to content/featured/nonono/demo.png diff --git a/content/featured/nonono/index.md b/content/featured/nonono/index.md new file mode 100644 index 0000000..c2aec17 --- /dev/null +++ b/content/featured/nonono/index.md @@ -0,0 +1,11 @@ +--- +date: '1' +title: 'NONONO? More like YESYESYES' +cover: './nonono_cover.jpg' +github: '' +external: 'https://mandymade.digitalpress.blog/nonono/' +keywords: + - food +--- + +Tamago bacon yakitori and saucy ramen broth were the stars. diff --git a/content/featured/nonono/nonono_cover.jpg b/content/featured/nonono/nonono_cover.jpg new file mode 100644 index 0000000..c4c2c8b Binary files /dev/null and b/content/featured/nonono/nonono_cover.jpg differ diff --git a/content/featured/shanghai_destinations/demo.png b/content/featured/shanghai_destinations/demo.png new file mode 100644 index 0000000..055fdb9 Binary files /dev/null and b/content/featured/shanghai_destinations/demo.png differ diff --git a/content/featured/shanghai_destinations/index.md b/content/featured/shanghai_destinations/index.md new file mode 100644 index 0000000..40f227e --- /dev/null +++ b/content/featured/shanghai_destinations/index.md @@ -0,0 +1,11 @@ +--- +date: '2' +title: 'Shanghai Travel Destinations' +cover: './shanghai_cover.png' +github: '' +external: 'https://mandymade.digitalpress.blog/shanghai-destinations/' +keywords: + - travel +--- + +A collection of Shanghai must-see destinations! diff --git a/content/featured/shanghai_destinations/shanghai_cover.png b/content/featured/shanghai_destinations/shanghai_cover.png new file mode 100644 index 0000000..33a69c3 Binary files /dev/null and b/content/featured/shanghai_destinations/shanghai_cover.png differ diff --git a/content/projects/databaseslearning.md b/content/projects/databaseslearning.md new file mode 100644 index 0000000..57f53b8 --- /dev/null +++ b/content/projects/databaseslearning.md @@ -0,0 +1,14 @@ +--- +date: '2024-03-01' +title: 'Databases Learning and Knowledge Sharing' +github: '' +external: 'https://github.com/asl3/databases-learning' +tech: + - SQL + - Scala + - Spark +company: 'Independent' +showInProjects: true +--- + +A public knowledge-sharing repo for Databases notes (papers, CS186 course notes, Scala docs notes, etc.) diff --git a/gatsby-config.js b/gatsby-config.js index 9d48bea..30ea568 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,12 +1,12 @@ const config = require('./src/config'); module.exports = { + pathPrefix: '', siteMetadata: { title: 'Amanda Liu', - description: - 'Amanda Liu is a software engineer who specializes in open source development.', + description: 'Amanda Liu is a software engineer who specializes in open source development.', siteUrl: 'https://asl3.github.io', // No trailing slash allowed! - image: '/og.png', // Path to your image you placed in the 'static' folder + image: 'og.png', // Path to your image you placed in the 'static' folder twitterUsername: '', }, plugins: [ @@ -77,7 +77,7 @@ module.exports = { maxWidth: 700, linkImagesToOriginal: true, quality: 90, - tracedSVG: { color: config.colors.green }, + // tracedSVG: { color: config.colors.green }, }, }, { diff --git a/package.json b/package.json index b7cd6dd..f65ae89 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "serve": "gatsby serve", "clean": "gatsby clean", "prepare": "husky install", - "lint-staged": "lint-staged" + "lint-staged": "lint-staged", + "deploy": "gatsby build --prefix-paths && gh-pages -d public", + "deploy:ci": "gatsby build --prefix-paths && gh-pages -d public -r https://$GH_TOKEN@github.com/asl3/asl3.github.io.git" }, "lint-staged": { "*.{js,css,json,md}": [ @@ -50,6 +52,7 @@ "gatsby-source-filesystem": "^3.4.0", "gatsby-transformer-remark": "^4.1.0", "gatsby-transformer-sharp": "^3.4.0", + "gh-pages": "^6.1.1", "lodash": "^4.17.19", "prismjs": "^1.27.0", "prop-types": "^15.7.2", diff --git a/src/components/footer.js b/src/components/footer.js index be8333f..2234946 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -108,28 +108,15 @@ const Footer = () => {
Built by Amanda Liu


-
Theme by Brittany Chiang
- - {githubInfo.stars && githubInfo.forks && ( -
- - - {githubInfo.stars.toLocaleString()} - - - - {githubInfo.forks.toLocaleString()} - -
- )} +
Theme Inspo from Brittany Chiang
); }; -Footer.propTypes = { - githubInfo: PropTypes.object, -}; +// Footer.propTypes = { +// githubInfo: PropTypes.object, +// }; export default Footer; diff --git a/src/components/loader.js b/src/components/loader.js index 2b65492..641d33d 100644 --- a/src/components/loader.js +++ b/src/components/loader.js @@ -3,7 +3,6 @@ import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import anime from 'animejs'; import styled from 'styled-components'; -import { IconLoader } from '@components/icons'; const StyledLoader = styled.div` ${({ theme }) => theme.mixins.flexCenter}; @@ -40,7 +39,13 @@ const StyledLoader = styled.div` const Loader = ({ finishLoading }) => { const [isMounted, setIsMounted] = useState(false); - const animate = () => { + useEffect(() => { + const timeout = setTimeout(() => setIsMounted(true), 10); + animate(); + return () => clearTimeout(timeout); + }, []); + + function animate() { const loader = anime.timeline({ complete: () => finishLoading(), }); @@ -74,12 +79,21 @@ const Loader = ({ finishLoading }) => { opacity: 0, zIndex: -1, }); - }; + } + + // Typewriter effect + function typeWriter(text, i) { + if (i < text.length) { + setText(prevText => prevText + text.charAt(i)); + i++; + setTimeout(() => typeWriter(text, i), 100); + } + } + + const [text, setText] = useState(''); useEffect(() => { - const timeout = setTimeout(() => setIsMounted(true), 10); - animate(); - return () => clearTimeout(timeout); + typeWriter('welcome to my site', 0); }, []); return ( @@ -87,7 +101,7 @@ const Loader = ({ finishLoading }) => {
- welcome to my site + {text}
); diff --git a/src/components/sections/featured.js b/src/components/sections/featured.js index c39ec58..f983960 100644 --- a/src/components/sections/featured.js +++ b/src/components/sections/featured.js @@ -56,7 +56,7 @@ const StyledProject = styled.li` padding: 25px 25px 20px; } } - .project-tech-list { + .project-keywords-list { justify-content: flex-end; @media (max-width: 768px) { @@ -181,7 +181,7 @@ const StyledProject = styled.li` } } - .project-tech-list { + .project-keywords-list { display: flex; flex-wrap: wrap; position: relative; @@ -319,7 +319,7 @@ const Featured = () => { gatsbyImageData(width: 700, placeholder: BLURRED, formats: [AUTO, WEBP, AVIF]) } } - tech + keywords github external cta @@ -348,21 +348,21 @@ const Featured = () => { return (

- Blog Posts + Featured Blog Posts

{featuredProjects && featuredProjects.map(({ node }, i) => { const { frontmatter, html } = node; - const { external, title, tech, github, cover, cta } = frontmatter; + const { external, title, keywords, github, cover, cta } = frontmatter; const image = getImage(cover); return ( (revealProjects.current[i] = el)}>
-

Featured Blog

+

Blog

{title} @@ -373,10 +373,10 @@ const Featured = () => { dangerouslySetInnerHTML={{ __html: html }} /> - {tech.length && ( -