Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devopsaci,hashicorp,digitalocean #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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: 4 additions & 0 deletions new/sites/devopsaci.cz/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["next/babel"],
"plugins": [["styled-components", { "ssr": true }]]
}
34 changes: 34 additions & 0 deletions new/sites/devopsaci.cz/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
34 changes: 34 additions & 0 deletions new/sites/devopsaci.cz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
19 changes: 19 additions & 0 deletions new/sites/devopsaci.cz/components/Copyright.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import styled from 'styled-components';

const StyledCopyright = styled.p`
font-size: 1.3rem;
text-align:center;
margin: 2rem 0;
color: ${props => props.theme.background};
@media (max-width: 520px) {
margin: 1rem 0;
}
`

const Copyright = () => {
return (
<StyledCopyright>Ondrej Sika | <span>{new Date().getFullYear()}</span></StyledCopyright>
)
}

export default Copyright
34 changes: 34 additions & 0 deletions new/sites/devopsaci.cz/components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import styled from 'styled-components';

const StyledContainer = styled.div`
padding: 6rem 0;
background-color: ${props => props.theme.background};
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
@media (max-width: 520px) {
padding: 4rem 0;
}
img {
width: 10rem;
margin-bottom: 1rem;
@media (max-width: 520px) {
width: 8rem;
}
}
span{
color: ${props => props.theme.white};
}
`

const Footer = () => {
return (
<StyledContainer>
<img src='icons/logo.svg' alt='devopsaci-logo'></img>
<h1>Devops<span>áci</span></h1>
</StyledContainer>
)
}

export default Footer
53 changes: 53 additions & 0 deletions new/sites/devopsaci.cz/components/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import styled from 'styled-components';
import Image from 'next/image';

const StyledHeader = styled.div`
background-color: ${props => props.theme.background};
text-align: center;
div {
padding: 4rem 0;
display: flex;
justify-content: center;
align-items: center;
@media (max-width: 520px) {
padding: 3rem 0;
}
img {
width: 8rem;
margin-right: 2rem;
@media (max-width: 600px) {
width: 7rem;
margin-right: 1.5rem;
}
}
}
p {
padding-bottom:4rem;
font-weight: normal;
font-size: 3rem;
color: ${props => props.theme.white};
@media (max-width: 600px) {
font-size: 2.5rem;
}
@media (max-width: 520px) {
padding-bottom: 3rem;
}
}
`

const StyledSpan = styled.span`
color: ${props => props.theme.white};
`
const Header = () => {
return (
<StyledHeader>
<div>
<img src='icons/logo.svg' alt='devopsaci-logo'></img>
<h1>Devops<StyledSpan>áci</StyledSpan></h1>
</div>
<p>česká komunita lidí z DevOps</p>
</StyledHeader>
)
}

export default Header
Loading