Skip to content
Snippets Groups Projects
Commit e2fe54b9 authored by Planoetscher Daniel (Student Com20)'s avatar Planoetscher Daniel (Student Com20)
Browse files

Merge branch 'using-react' of...

Merge branch 'using-react' of gitlab.inf.unibz.it:Roland.Bernard/wie_202021_csbillero11 into using-react
parents 1fdb886d 1ad65347
No related branches found
No related tags found
1 merge request!2WIP: Using react
......@@ -38,8 +38,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"test": "react-scripts test"
},
"eslintConfig": {
"extends": [
......
import React from 'react';
import { render, screen } from '@testing-library/react';
import App from './components/App';
import App from './index';
test('renders learn react link', () => {
test('app renders `Home`', () => {
render(<App />);
const linkElement = screen.getByText(/Hello world!/i);
const linkElement = screen.getByText(/Home/i);
expect(linkElement).toBeInTheDocument();
});
@use 'settings.scss';
@use 'mixins.scss';
html {
scroll-behavior: smooth;
}
......@@ -11,3 +12,4 @@ body {
color: black;
}
}
......@@ -5,7 +5,7 @@ import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Home from 'components/pages/Home';
import './app.scss';
function App() {
export default function App() {
return (
<Router>
<Switch>
......@@ -15,5 +15,3 @@ function App() {
);
}
export default App;
function Home() {
export default function Home() {
return (
<div>
Home
</div>
);
}
export default Home;
@function toRem($px) {
@return ($px / 16px)+0rem;
}
......@@ -14,3 +15,4 @@
@function hoverify($color) {
@return scale-color($color, $lightness: +5%, $hue: +5%);
}
......@@ -6,3 +6,4 @@
@content;
}
}
//COLORS
// Colors
$primary: #AC42FF;
$secondary: #F15154;
$accent: #7DEFFF;
......@@ -20,7 +21,7 @@ $radial-gradient: radial-gradient(100% 115% at 0% 0%, $primary 0%, $secondary 10
$body-color: #4B4B4B;
//TYPOGRAPHY
// Typography
$weight-light: 300;
$weight-regular: 400;
$weight-medium: 500;
......@@ -28,10 +29,11 @@ $weight-semi-bold: 600;
$weight-bold: 700;
//Breakpoints
// Breakpoints
$breakpoints: (
'small': 360px,
'medium': 820px,
'large': 1280px,
'xlarge': 1420px
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment