mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 05:01:49 +10:00
implement page controller
This commit is contained in:
28
src/templates/glalie/Glalie.js
Normal file
28
src/templates/glalie/Glalie.js
Normal file
@ -0,0 +1,28 @@
|
||||
import React, { useContext } from 'react';
|
||||
import AppContext from '../../context/AppContext';
|
||||
import { hexToRgb } from '../../utils';
|
||||
|
||||
const Glalie = () => {
|
||||
const context = useContext(AppContext);
|
||||
const { state } = context;
|
||||
const { data, theme } = state;
|
||||
|
||||
const { r, g, b } = hexToRgb(theme.colors.accent) || {};
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
fontFamily: theme.font.family,
|
||||
backgroundColor: theme.colors.background,
|
||||
color: theme.colors.primary,
|
||||
}}
|
||||
>
|
||||
<div className="grid grid-cols-12">
|
||||
<div className="col-span-4 bg-gray-200 py-10 px-5">Hello</div>
|
||||
<div className="col-span-8 py-10 px-5">World</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Glalie;
|
||||
5
src/templates/glalie/index.js
Normal file
5
src/templates/glalie/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
import Glalie from './Glalie';
|
||||
import image from './preview.png';
|
||||
|
||||
export const Image = image;
|
||||
export default Glalie;
|
||||
BIN
src/templates/glalie/preview.png
Normal file
BIN
src/templates/glalie/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 136 KiB |
Reference in New Issue
Block a user