Skip to content

Commit

Permalink
bunch of css
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanja Varekamp-Simonovska committed Mar 24, 2022
1 parent 646750a commit caf38dd
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 200 deletions.
20 changes: 20 additions & 0 deletions domain/core/DiagnoseWizard/DiagnoseWizard.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@800&display=swap');



.background {
height: 100%;
width: 100%;
font-family: 'Public Sans', sans-serif;
font-weight: 800;
font-size: 26px;
line-height: 36px;
initial-letter: 1.1;
color: #000000;
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
justify-content: center;

}
4 changes: 3 additions & 1 deletion domain/core/DiagnoseWizard/DiagnoseWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { MainSymptom } from './templates/MainSymptom'
import { SymptomCorrection } from './templates/SymptomCorrection'
import { Result } from './templates/Result'
import { Button } from '../Button/Button'
import styles from './DiagnoseWizard.module.css'
import backgroundShape from '../../../public/backgroundShape.svg'

export enum QuestionType {
MainSymptom = 'MainSymptom',
Expand Down Expand Up @@ -46,7 +48,7 @@ export const DiagnoseWizard = observer(() => {
const dynamicWizard = useLocalObservable(() => new DynamicWizard([ {content: 'Main symptom?', type: QuestionType.MainSymptom, id: uniqueId() }]))

return (
<div>
<div className={styles.background} style={{ backgroundImage: `url(${backgroundShape})` }}>
{renderStep()}

<Button onClick={async () => {
Expand Down
3 changes: 3 additions & 0 deletions domain/core/DiagnoseWizard/templates/MainSymptom.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.mainSymptom {

}
8 changes: 7 additions & 1 deletion domain/core/DiagnoseWizard/templates/MainSymptom.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import styles from './MainSymptom.module.css'

export const MainSymptom: React.FunctionComponent<{}> = () => {
return <p>MainSymptom</p>
return (
<div className={styles.mainSymptom}>
<h1>What is your most prevalent symptom?</h1>
</div>
)
}
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../styles/globals.css'

import type { AppProps } from 'next/app'

function MyApp({ Component, pageProps }: AppProps) {
Expand Down
3 changes: 2 additions & 1 deletion pages/diagnose-wizard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { NextPage } from 'next'
import { DiagnoseWizard } from '../../domain/core/DiagnoseWizard/DiagnoseWizard'
import styles from "../../domain/core/Button/Button.module.css";

const Home: NextPage = () => {

return (
<div >
<div className={styles.background}>
<DiagnoseWizard />
</div>
)
Expand Down
66 changes: 2 additions & 64 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,72 +1,10 @@
import type { NextPage } from 'next'
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'

const Home: NextPage = () => {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>

<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>

<p className={styles.description}>
Get started by editing{' '}
<code className={styles.code}>pages/index.tsx</code>
</p>

<div className={styles.grid}>
<a href="https://nextjs.org/docs" className={styles.card}>
<h2>Documentation &rarr;</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>

<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>

<a
href="https://github.com/vercel/next.js/tree/canary/examples"
className={styles.card}
>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</a>
</div>
</main>

<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
)
const Home: NextPage = () => {
return null;
}

export default Home
16 changes: 16 additions & 0 deletions public/backgroundShape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 0 additions & 116 deletions styles/Home.module.css

This file was deleted.

16 changes: 0 additions & 16 deletions styles/globals.css

This file was deleted.

0 comments on commit caf38dd

Please sign in to comment.