Skip to content

Commit

Permalink
updated readme and build
Browse files Browse the repository at this point in the history
  • Loading branch information
donnyr5 committed Sep 12, 2024
1 parent 4ce58ed commit 36f4d36
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 62 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# PRIME Website
This repository stores the static server code for PRIME's website. The 'public' folder of this project is generated from the build command, and is uploaded to an s3 bucket in order to be hosted.

# gatsby-starter-dailybruin

How the Daily Bruin likes using [Gatsby](https://www.gatsbyjs.org). Note this starter combines a couple of other in-house DB tools, like [gatsby-source-kerckhoff](https://github.com/dailybruin/gatsby-source-kerckhoff), which draws from our site manager [Kerckhoff](https://github.com/dailybruin/kerckhoff), and [Lux](https://github.com/dailybruin/lux), our React-based design system.
Expand Down Expand Up @@ -45,3 +48,5 @@ To build:
```
yarn build
```


62 changes: 1 addition & 61 deletions src/components/Magazine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,66 +7,6 @@ interface MagazineProps {

export class Magazine extends React.Component<MagazineProps> {
render() {
return (
<div
className={css`
width: 95%;
margin: auto;
display: flex;
@media screen and (max-width: 800px) {
flex-wrap: wrap;
}
`}
>
<div
className={css`
display: inline-block;
font-family: Barlow;
font-style: italic;
font-size: 2.5rem;
font-weight: bold;
min-width: 30vw;
@media screen and (min-width: 800px) {
text-align: right;
margin: 0 2rem auto auto;
}
`}
>
<div>FULL PRINT</div>
<div
className={css`
position: relative;
z-index: 1;
`}
>
MAGAZINE
</div>
<div
className={css`
text-align: right;
width: 15rem;
margin: 0 0 auto auto;
position: relative;
z-index: 0;
background-color: #fff96b;
height: 2rem;
transform: translateY(-2rem);
@media screen and (max-width: 800px) {
width: 80vw;
}
`}
/>
</div>
<iframe
src={this.props.link}
className={css`
display: inline-block;
width: 80%;
height: 80vh;
margin: 0 auto;
`}
/>
</div>
)
return (<></>) //deleted now.
}
}
5 changes: 4 additions & 1 deletion src/components/StyledCoverPhoto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,13 @@ export class StyledCoverPhoto extends React.Component<StyledCoverPhotoProps> {
}
`}
>
{console.log(this.props.quarter)}
BY {toSentence(this.props.authors).toUpperCase()}
{this.props.photographers &&
this.props.quarter !== "spring 2024" &&
' // ART BY ' +
toSentence(this.props.photographers).toUpperCase()}
toSentence(this.props.photographers).toUpperCase()
}
</p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/templates/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Subheading = props => (
/>
)

//the same article page is used for all articles
export default ({ data, pageContext }) => {
if (typeof document == 'undefined') {
if (!data.primeArticle) {
Expand Down

0 comments on commit 36f4d36

Please sign in to comment.