Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Fragment } from "react"

import Alert from "react-bootstrap/Alert"
import Container from "react-bootstrap/Container"
import Nav from "react-bootstrap/Nav"
import Navbar from "react-bootstrap/Navbar"
Expand Down Expand Up @@ -89,10 +88,7 @@ export default class App extends React.Component<unknown, AppState> {
{loggedIn ? (
<Outlet />
) : (
<div>
<Alert variant="primary">Log in to see this content.</Alert>
<Home />
</div>
)}
</Container>
</main>
Expand Down
3 changes: 3 additions & 0 deletions src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Col from "react-bootstrap/Col"
import Container from "react-bootstrap/Container"
import Image from "react-bootstrap/Image"
import Row from "react-bootstrap/Row"
import Alert from "react-bootstrap/Alert"

import BlogCard from "./home/BlogCard"
import ContributeCard from "./home/ContributeCard"
Expand All @@ -14,8 +15,10 @@ import styles from "./Home.module.scss"

export default class Home extends React.Component {
render(): React.ReactElement {
const showAlert = window.location.pathname !== "/"
return (
<Container>
{ showAlert && <Alert variant="primary">Log in to see this content.</Alert> }
<Row>
<Col className={styles.splash}>
<Image src={logo} fluid />
Expand Down