Skip to content

Commit

Permalink
feat: improve look of index page and add linkedin button
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Jan 19, 2025
1 parent b15d096 commit 4ac151e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
@import 'components/mahjong/tile';
@import 'components/trivia/game';

// Page styles
@import 'pages/index';

// Fix for carousel button alignment
.carousel {
&-control-prev {
Expand Down
20 changes: 15 additions & 5 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
faHeart
} from '@fortawesome/free-solid-svg-icons';
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
import { faGithub } from '@fortawesome/free-brands-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faGithub, faLinkedin } from '@fortawesome/free-brands-svg-icons';

import Layout from 'components/layout';
import FeaturedPost from 'components/featuredPost';
Expand All @@ -41,7 +41,7 @@ export default function IndexPage({ data }) {
return (
<Layout title="Home">
<Container>
<Card body bg="info" className="text-light">
<Card body className="text-light index-header">
<Container fluid>
<Row>
<Col xs={6} md={2} className="d-flex justify-content-center">
Expand All @@ -52,11 +52,14 @@ export default function IndexPage({ data }) {
rounded
/>
</Col>
<Col xs={6} className="d-flex flex-column">
<Col
xs={6}
className="d-flex flex-column justify-content-center ps-2"
>
<Card.Title as="h1" className="m-0">
Andrew DeLisa
</Card.Title>
<h2 className="m-0 mt-auto">Hacker, Maker, Developer</h2>
<h2 className="m-0 mt-2">Hacker, Maker, Developer</h2>
</Col>
<Col
xs={12}
Expand All @@ -71,6 +74,13 @@ export default function IndexPage({ data }) {
>
<FontAwesomeIcon icon={faGithub} /> GitHub
</Button>
<Button
variant="info"
as="a"
href="https://www.linkedin.com/in/ayan4m1"
>
<FontAwesomeIcon icon={faLinkedin} /> LinkedIn
</Button>
<Button
variant="primary"
as="a"
Expand All @@ -83,7 +93,7 @@ export default function IndexPage({ data }) {
</Row>
</Container>
</Card>
<h2 className="mt-2">Recent Articles</h2>
<h1 className="mt-4">Recent Articles</h1>
<Row className="justify-content-center">
<Col md={10}>
<Carousel
Expand Down
5 changes: 5 additions & 0 deletions src/pages/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.index-header {
background-image: url('/header-bg.jpg');
background-repeat: no-repeat;
background-size: 100% 100%;
}
Binary file added static/header-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ac151e

Please sign in to comment.