This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>En HTML mal</title> | |
<link rel="stylesheet" type="text/css" href="styles.css" /> | |
</head> | |
<body> | |
<!-- Innhold som skal vises på nettsiden skal legges inn mellom body-tagene --> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav className='navbar'> | |
{ | |
userRole === 'admin' && ( | |
<AdminPanel /> | |
) || userRole === 'user' && ( | |
<UserPanel /> | |
) || ( | |
<StatusPanel /> | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render( | |
<Container> | |
<Row> | |
<Col sm={3}> | |
<MyComponent /> | |
</Col> | |
<Col sm={9}> | |
<MyComponent /> | |
</Col> | |
</Row> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC } from 'react'; | |
import cx from 'clsx'; | |
export interface FontAwesomeIconProps { | |
animate?: 'spin' | 'pulse' | undefined; | |
border?: boolean; | |
className?: string | undefined; | |
color?: string | undefined; | |
fixedWidth?: boolean; | |
flip?: 'vertical' | 'horizontal' | 'both' | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>CSS meny</title> | |
<style> | |
/* Generelle stiler */ | |
* { | |
margin: 0px; | |
padding: 0px; |